mirror of
				https://github.com/Nioux/AideDeJeu.git
				synced 2025-10-31 15:36:07 +00:00 
			
		
		
		
	Début filtres
This commit is contained in:
		
							parent
							
								
									900c49e614
								
							
						
					
					
						commit
						90b643e216
					
				
					 1 changed files with 25 additions and 50 deletions
				
			
		|  | @ -99,7 +99,6 @@ class MonsterItem extends Item { | ||||||
|     this.Languages = map["Languages"]; |     this.Languages = map["Languages"]; | ||||||
|     this.Challenge = map["Challenge"]; |     this.Challenge = map["Challenge"]; | ||||||
|     this.XP = map["XP"]; |     this.XP = map["XP"]; | ||||||
| 
 |  | ||||||
|   } |   } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | @ -117,62 +116,38 @@ class FilteredItems extends Items { | ||||||
|       : super.fromMap(map) { |       : super.fromMap(map) { | ||||||
|     this.Family = map["Family"]; |     this.Family = map["Family"]; | ||||||
|   } |   } | ||||||
|  | 
 | ||||||
|  |   Map<String, dynamic> toFilterMap() { | ||||||
|  | 
 | ||||||
|  |   } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| class MonsterItems extends FilteredItems { | class MonsterItems extends FilteredItems { | ||||||
|   String Type; |   String Types; | ||||||
|   String Size; |   String Challenges; | ||||||
|   String Alignment; |   String Sizes; | ||||||
|   String Terrain; |   String Sources; | ||||||
|   String Legendary; |   String Terrains; | ||||||
|   String ArmorClass; |  | ||||||
|   String HitPoints; |  | ||||||
|   String Speed; |  | ||||||
|   String Strength; |  | ||||||
|   String Dexterity; |  | ||||||
|   String Constitution; |  | ||||||
|   String Intelligence; |  | ||||||
|   String Wisdom; |  | ||||||
|   String Charisma; |  | ||||||
|   String SavingThrows; |  | ||||||
|   String Skills; |  | ||||||
|   String DamageVulnerabilities; |  | ||||||
|   String DamageImmunities; |  | ||||||
|   String ConditionImmunities; |  | ||||||
|   String DamageResistances; |  | ||||||
|   String Senses; |  | ||||||
|   String Languages; |  | ||||||
|   String Challenge; |  | ||||||
|   int XP; |  | ||||||
| 
 | 
 | ||||||
|   MonsterItems.fromMap(Map<String, dynamic> map) |   MonsterItems.fromMap(Map<String, dynamic> map) | ||||||
|       : super.fromMap(map) { |       : super.fromMap(map) { | ||||||
|     this.Type = map["Type"]; |     this.Types = map["Types"]; | ||||||
|     this.Size = map["Size"]; |     this.Challenges = map["Challenges"]; | ||||||
|     this.Alignment = map["Alignment"]; |     this.Sizes = map["Sizes"]; | ||||||
|     this.Terrain = map["Terrain"]; |     this.Sources = map["Sources"]; | ||||||
|     this.Legendary = map["Legendary"]; |     this.Terrains = map["Terrains"]; | ||||||
|     this.ArmorClass = map["ArmorClass"]; |  | ||||||
|     this.HitPoints = map["HitPoints"]; |  | ||||||
|     this.Speed = map["Speed"]; |  | ||||||
|     this.Strength = map["Strength"]; |  | ||||||
|     this.Dexterity = map["Dexterity"]; |  | ||||||
|     this.Constitution = map["Constitution"]; |  | ||||||
|     this.Intelligence = map["Intelligence"]; |  | ||||||
|     this.Wisdom = map["Wisdom"]; |  | ||||||
|     this.Charisma = map["Charisma"]; |  | ||||||
|     this.SavingThrows = map["SavingThrows"]; |  | ||||||
|     this.Skills = map["Skills"]; |  | ||||||
|     this.DamageVulnerabilities = map["DamageVulnerabilities"]; |  | ||||||
|     this.DamageImmunities = map["DamageImmunities"]; |  | ||||||
|     this.ConditionImmunities = map["ConditionImmunities"]; |  | ||||||
|     this.DamageResistances = map["DamageResistances"]; |  | ||||||
|     this.Senses = map["Senses"]; |  | ||||||
|     this.Languages = map["Languages"]; |  | ||||||
|     this.Challenge = map["Challenge"]; |  | ||||||
|     this.XP = map["XP"]; |  | ||||||
| 
 |  | ||||||
|   } |   } | ||||||
|  | 
 | ||||||
|  | //  Map<String, dynamic> toMap() => { | ||||||
|  |   //"Id": Id, | ||||||
|  |   Map<String, dynamic> toFilterMap() => { | ||||||
|  |     "Types": Types, | ||||||
|  |     "Challenges": Challenges, | ||||||
|  |     "Sizes": Sizes, | ||||||
|  |     "Sources": Sources, | ||||||
|  |     "Terrains": Terrains, | ||||||
|  |   }; | ||||||
|  | 
 | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| Item itemFromMap(Map<String, dynamic> map) { | Item itemFromMap(Map<String, dynamic> map) { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Yan Maniez
						Yan Maniez