From 56dfa7a5ce15c7ea20bd6ff08801c45fdcdcffe2 Mon Sep 17 00:00:00 2001 From: nathan boileau Date: Wed, 1 Mar 2023 17:32:43 +0100 Subject: [PATCH] =?UTF-8?q?D=C3=A9but=20Many=20to=20Many?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/EFLol/ChampionEntity.cs | 5 ++++- Sources/EFLol/RuneEntity.cs | 4 +--- Sources/EFLol/RuneFamilyEntity.cs | 15 +++++++++++++++ Sources/EFLol/RunePageEntity.cs | 25 +++++++++++++++++++++++++ Sources/EFLol/SkillEntity.cs | 24 ++++++++++++++++++++++++ 5 files changed, 69 insertions(+), 4 deletions(-) create mode 100644 Sources/EFLol/RuneFamilyEntity.cs create mode 100644 Sources/EFLol/RunePageEntity.cs create mode 100644 Sources/EFLol/SkillEntity.cs diff --git a/Sources/EFLol/ChampionEntity.cs b/Sources/EFLol/ChampionEntity.cs index 7cdd4da..b73f713 100644 --- a/Sources/EFLol/ChampionEntity.cs +++ b/Sources/EFLol/ChampionEntity.cs @@ -17,7 +17,10 @@ namespace EFLol //public string Icon { get; set; } //public LargeImage Image { get; set; } //public ReadOnlyDictionary Characteristics { get; private set; } - //private HashSet skills = new HashSet(); + + private HashSet skills = new HashSet(); public Collection Skins { get; set; } + + //public List> championsAndRunePages } } diff --git a/Sources/EFLol/RuneEntity.cs b/Sources/EFLol/RuneEntity.cs index 3f099dc..934762a 100644 --- a/Sources/EFLol/RuneEntity.cs +++ b/Sources/EFLol/RuneEntity.cs @@ -11,9 +11,7 @@ namespace EFLol public int Id { get; set; } public string Name { get; set; } public string Description { get; set; } - //public RuneFamily Family { get; set; } - //public string Icon { get; set; } - //public string Image { get; set; } + public RuneFamilyEntity RuneFamily { get; set; } } } diff --git a/Sources/EFLol/RuneFamilyEntity.cs b/Sources/EFLol/RuneFamilyEntity.cs new file mode 100644 index 0000000..47618b8 --- /dev/null +++ b/Sources/EFLol/RuneFamilyEntity.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace EFLol +{ + public class RuneFamilyEntity + { + public string Name { get; set; } + public string Description { get; set; } + + } +} diff --git a/Sources/EFLol/RunePageEntity.cs b/Sources/EFLol/RunePageEntity.cs new file mode 100644 index 0000000..04fe543 --- /dev/null +++ b/Sources/EFLol/RunePageEntity.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace EFLol +{ + public class RunePageEntity + { + public String Name { get; set; } + public Dictionary Runes { get; set; } + + } + + public enum Category + { + Major, + Minor1, + Minor2, + Minor3, + OtherMinor1, + OtherMinor2 + } +} diff --git a/Sources/EFLol/SkillEntity.cs b/Sources/EFLol/SkillEntity.cs new file mode 100644 index 0000000..1f670d1 --- /dev/null +++ b/Sources/EFLol/SkillEntity.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace EFLol +{ + public class SkillEntity + { + public int Id { get; set; } + public string Name { get; set; } + public string Description { get; set; } + public SkillTypeEntity SkillType { get; set; } + } + + public enum SkillTypeEntity + { + Unknown, + Basic, + Passive, + Ultimate + } +}