From ba5afa8da05de043ee6f16eaa4d66dd7e74e0d47 Mon Sep 17 00:00:00 2001 From: Pg Date: Sat, 26 Nov 2016 03:12:20 +0100 Subject: [PATCH] Add getter and setter for module --- .../Modules/Searches/Commands/Models/PokeStats.cs | 15 +++++++++++++++ .../Services/Database/Models/PokemonType.cs | 15 +++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 src/NadekoBot/Modules/Searches/Commands/Models/PokeStats.cs create mode 100644 src/NadekoBot/Services/Database/Models/PokemonType.cs diff --git a/src/NadekoBot/Modules/Searches/Commands/Models/PokeStats.cs b/src/NadekoBot/Modules/Searches/Commands/Models/PokeStats.cs new file mode 100644 index 00000000..b9795043 --- /dev/null +++ b/src/NadekoBot/Modules/Searches/Commands/Models/PokeStats.cs @@ -0,0 +1,15 @@ +using System.Collections.Generic; + +namespace NadekoBot.Modules.Pokemon +{ + class PokeStats + { + //Health left + public int Hp { get; set; } = 500; + public int MaxHp { get; } = 500; + //Amount of moves made since last time attacked + public int MovesMade { get; set; } = 0; + //Last people attacked + public List LastAttacked { get; set; } = new List(); + } +} diff --git a/src/NadekoBot/Services/Database/Models/PokemonType.cs b/src/NadekoBot/Services/Database/Models/PokemonType.cs new file mode 100644 index 00000000..9187226a --- /dev/null +++ b/src/NadekoBot/Services/Database/Models/PokemonType.cs @@ -0,0 +1,15 @@ +using Discord; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace NadekoBot.Services.Database.Models +{ + class UserPokeTypes : DbEntity + { + public long UserId { get; set; } + public string type { get; set; } + } +}