mirror of
				https://github.com/Nioux/AideDeJeu.git
				synced 2025-10-31 15:36:07 +00:00 
			
		
		
		
	Réorg création filtres
This commit is contained in:
		
							parent
							
								
									d8440d7c78
								
							
						
					
					
						commit
						cdc8ca4a2f
					
				
					 12 changed files with 103 additions and 17 deletions
				
			
		|  | @ -4,6 +4,7 @@ using System.Collections.Generic; | ||||||
| using System.Linq; | using System.Linq; | ||||||
| using System.Text; | using System.Text; | ||||||
| using AideDeJeu.Tools; | using AideDeJeu.Tools; | ||||||
|  | using AideDeJeu.ViewModels; | ||||||
| using Markdig.Syntax; | using Markdig.Syntax; | ||||||
| using Markdig.Syntax.Inlines; | using Markdig.Syntax.Inlines; | ||||||
| 
 | 
 | ||||||
|  | @ -53,5 +54,10 @@ namespace AideDeJeuLib | ||||||
|         { |         { | ||||||
|             return _Items.GetEnumerator(); |             return _Items.GetEnumerator(); | ||||||
|         } |         } | ||||||
|  | 
 | ||||||
|  |         public virtual FilterViewModel GetNewFilterViewModel() | ||||||
|  |         { | ||||||
|  |             return null; | ||||||
|  |         } | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
							
								
								
									
										10
									
								
								AideDeJeu/AideDeJeu/Models/Monsters/Monsters.cs
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								AideDeJeu/AideDeJeu/Models/Monsters/Monsters.cs
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,10 @@ | ||||||
|  | using System; | ||||||
|  | using System.Collections.Generic; | ||||||
|  | using System.Text; | ||||||
|  | 
 | ||||||
|  | namespace AideDeJeuLib | ||||||
|  | { | ||||||
|  |     public class Monsters : Items | ||||||
|  |     { | ||||||
|  |     } | ||||||
|  | } | ||||||
							
								
								
									
										15
									
								
								AideDeJeu/AideDeJeu/Models/Monsters/MonstersHD.cs
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								AideDeJeu/AideDeJeu/Models/Monsters/MonstersHD.cs
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,15 @@ | ||||||
|  | using AideDeJeu.ViewModels; | ||||||
|  | using System; | ||||||
|  | using System.Collections.Generic; | ||||||
|  | using System.Text; | ||||||
|  | 
 | ||||||
|  | namespace AideDeJeuLib | ||||||
|  | { | ||||||
|  |     public class MonstersHD : Monsters | ||||||
|  |     { | ||||||
|  |         public override FilterViewModel GetNewFilterViewModel() | ||||||
|  |         { | ||||||
|  |             return new HDSpellFilterViewModel(); | ||||||
|  |         } | ||||||
|  |     } | ||||||
|  | } | ||||||
							
								
								
									
										15
									
								
								AideDeJeu/AideDeJeu/Models/Monsters/MonstersVO.cs
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								AideDeJeu/AideDeJeu/Models/Monsters/MonstersVO.cs
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,15 @@ | ||||||
|  | using AideDeJeu.ViewModels; | ||||||
|  | using System; | ||||||
|  | using System.Collections.Generic; | ||||||
|  | using System.Text; | ||||||
|  | 
 | ||||||
|  | namespace AideDeJeuLib | ||||||
|  | { | ||||||
|  |     public class MonstersVO : Monsters | ||||||
|  |     { | ||||||
|  |         public override FilterViewModel GetNewFilterViewModel() | ||||||
|  |         { | ||||||
|  |             return new VOMonsterFilterViewModel(); | ||||||
|  |         } | ||||||
|  |     } | ||||||
|  | } | ||||||
							
								
								
									
										10
									
								
								AideDeJeu/AideDeJeu/Models/Spells/Spells.cs
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								AideDeJeu/AideDeJeu/Models/Spells/Spells.cs
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,10 @@ | ||||||
|  | using System; | ||||||
|  | using System.Collections.Generic; | ||||||
|  | using System.Text; | ||||||
|  | 
 | ||||||
|  | namespace AideDeJeuLib | ||||||
|  | { | ||||||
|  |     public class Spells : Items | ||||||
|  |     { | ||||||
|  |     } | ||||||
|  | } | ||||||
							
								
								
									
										15
									
								
								AideDeJeu/AideDeJeu/Models/Spells/SpellsHD.cs
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								AideDeJeu/AideDeJeu/Models/Spells/SpellsHD.cs
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,15 @@ | ||||||
|  | using AideDeJeu.ViewModels; | ||||||
|  | using System; | ||||||
|  | using System.Collections.Generic; | ||||||
|  | using System.Text; | ||||||
|  | 
 | ||||||
|  | namespace AideDeJeuLib | ||||||
|  | { | ||||||
|  |     public class SpellsHD : Items | ||||||
|  |     { | ||||||
|  |         public override FilterViewModel GetNewFilterViewModel() | ||||||
|  |         { | ||||||
|  |             return new HDSpellFilterViewModel(); | ||||||
|  |         } | ||||||
|  |     } | ||||||
|  | } | ||||||
							
								
								
									
										15
									
								
								AideDeJeu/AideDeJeu/Models/Spells/SpellsVO.cs
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								AideDeJeu/AideDeJeu/Models/Spells/SpellsVO.cs
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,15 @@ | ||||||
|  | using AideDeJeu.ViewModels; | ||||||
|  | using System; | ||||||
|  | using System.Collections.Generic; | ||||||
|  | using System.Text; | ||||||
|  | 
 | ||||||
|  | namespace AideDeJeuLib | ||||||
|  | { | ||||||
|  |     public class SpellsVO : Items | ||||||
|  |     { | ||||||
|  |         public override FilterViewModel GetNewFilterViewModel() | ||||||
|  |         { | ||||||
|  |             return new VOSpellFilterViewModel(); | ||||||
|  |         } | ||||||
|  |     } | ||||||
|  | } | ||||||
|  | @ -77,15 +77,15 @@ namespace AideDeJeu.ViewModels | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|         public List<KeyValuePair<ItemSourceType, string>> ItemsSources { get; set; } = new List<KeyValuePair<ItemSourceType, string>>() |         //public List<KeyValuePair<ItemSourceType, string>> ItemsSources { get; set; } = new List<KeyValuePair<ItemSourceType, string>>() | ||||||
|         { |         //{ | ||||||
|             new KeyValuePair<ItemSourceType, string>(ItemSourceType.SpellHD, "Sorts (H&D)"), |         //    new KeyValuePair<ItemSourceType, string>(ItemSourceType.SpellHD, "Sorts (H&D)"), | ||||||
|             new KeyValuePair<ItemSourceType, string>(ItemSourceType.SpellVO, "Spells (VO)"), |         //    new KeyValuePair<ItemSourceType, string>(ItemSourceType.SpellVO, "Spells (VO)"), | ||||||
|             new KeyValuePair<ItemSourceType, string>(ItemSourceType.MonsterHD, "Créatures (H&D)"), |         //    new KeyValuePair<ItemSourceType, string>(ItemSourceType.MonsterHD, "Créatures (H&D)"), | ||||||
|             new KeyValuePair<ItemSourceType, string>(ItemSourceType.MonsterVO, "Monsters (VO)"), |         //    new KeyValuePair<ItemSourceType, string>(ItemSourceType.MonsterVO, "Monsters (VO)"), | ||||||
|             new KeyValuePair<ItemSourceType, string>(ItemSourceType.ConditionHD, "Etats spéciaux (H&D)"), |         //    new KeyValuePair<ItemSourceType, string>(ItemSourceType.ConditionHD, "Etats spéciaux (H&D)"), | ||||||
|             new KeyValuePair<ItemSourceType, string>(ItemSourceType.ConditionVO, "Conditions (VO)"), |         //    new KeyValuePair<ItemSourceType, string>(ItemSourceType.ConditionVO, "Conditions (VO)"), | ||||||
|         }; |         //}; | ||||||
| 
 | 
 | ||||||
|         public Dictionary<ItemSourceType, Func<ItemsViewModel>> AllItemsViewModel = new Dictionary<ItemSourceType, Func<ItemsViewModel>>() |         public Dictionary<ItemSourceType, Func<ItemsViewModel>> AllItemsViewModel = new Dictionary<ItemSourceType, Func<ItemsViewModel>>() | ||||||
|         { |         { | ||||||
|  |  | ||||||
|  | @ -1,5 +1,5 @@ | ||||||
| 
 | 
 | ||||||
| [][Items] | [][MonstersHD] | ||||||
| 
 | 
 | ||||||
| # Créatures (H&D) | # Créatures (H&D) | ||||||
| - AltName: [Monsters](monsters_vo.md) | - AltName: [Monsters](monsters_vo.md) | ||||||
|  | @ -13421,5 +13421,5 @@ _Touché :_ 7 (1d8+3) dégâts tranchants ou 8 (1d10+3) dégâts tranchants si e | ||||||
| [vol]: spells_hd.md#vol | [vol]: spells_hd.md#vol | ||||||
| [zone de vérité]: spells_hd.md#zone-de-vérité | [zone de vérité]: spells_hd.md#zone-de-vérité | ||||||
| 
 | 
 | ||||||
| [Items]: # | [MonstersHD]: # | ||||||
| [MonsterHD]: # | [MonsterHD]: # | ||||||
|  |  | ||||||
|  | @ -1,5 +1,5 @@ | ||||||
| 
 | 
 | ||||||
| [][Items] | [][MonstersVO] | ||||||
| 
 | 
 | ||||||
| # Monsters (SRD) | # Monsters (SRD) | ||||||
| - AltName: [Créatures](monsters_hd.md) | - AltName: [Créatures](monsters_hd.md) | ||||||
|  | @ -12549,5 +12549,5 @@ _Hit_: 7 (1d8 + 3) piercing damage plus 13 (3d8) poison damage, and the target m | ||||||
| [wish]: spells_vo.md#wish | [wish]: spells_vo.md#wish | ||||||
| [zone of truth]: spells_vo.md#zone-of-truth | [zone of truth]: spells_vo.md#zone-of-truth | ||||||
| 
 | 
 | ||||||
| [Items]: # | [MonstersVO]: # | ||||||
| [MonsterVO]: # | [MonsterVO]: # | ||||||
|  |  | ||||||
|  | @ -1,5 +1,5 @@ | ||||||
|  |  | ||||||
| [][Items] | [][SpellsHD] | ||||||
| 
 | 
 | ||||||
| # Sorts (H&D) | # Sorts (H&D) | ||||||
| - AltName: [Spells](spells_vo.md) | - AltName: [Spells](spells_vo.md) | ||||||
|  | @ -8654,5 +8654,5 @@ Une créature affectée est consciente du sort qui la limite et peut donc soigne | ||||||
| [toiles d'araignées]: spells_hd.md#toile-daraignée | [toiles d'araignées]: spells_hd.md#toile-daraignée | ||||||
| [verrou magique]: spells_hd.md#verrou-magique | [verrou magique]: spells_hd.md#verrou-magique | ||||||
| 
 | 
 | ||||||
| [Items]: # | [SpellsHD]: # | ||||||
| [SpellHD]: # | [SpellHD]: # | ||||||
|  |  | ||||||
|  | @ -1,5 +1,5 @@ | ||||||
| 
 | 
 | ||||||
| [][Items] | [][SpellsVO] | ||||||
| 
 | 
 | ||||||
| # Spells (SRD) | # Spells (SRD) | ||||||
| - AltName: [Sorts (H&D)](spells_hd.md) | - AltName: [Sorts (H&D)](spells_hd.md) | ||||||
|  | @ -7668,5 +7668,5 @@ An affected creature is aware of the spell and can thus avoid answering question | ||||||
| [web]: spells_vo.hd#web | [web]: spells_vo.hd#web | ||||||
| [wish]: spells_vo.hd#wish | [wish]: spells_vo.hd#wish | ||||||
| 
 | 
 | ||||||
| [Items]: # | [SpellsVO]: # | ||||||
| [SpellVO]: # | [SpellVO]: # | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Yan Maniez
						Yan Maniez