Exemplo n.º 1
0
 /// <summary>
 /// Adds a character to the list of characters.
 /// </summary>
 /// <param name="character">The character to add.</param>
 public void AddCharacter(Character character)
 {
     if (character.TypeOfCharacter == CharacterType.Character)
     {
         this.Characters.Add(character.DataContractSerialization());
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Adds a monster to the list of monsters.
 /// </summary>
 /// <param name="monster"></param>
 public void AddMonster(Character monster, int quantity)
 {
     if (monster.TypeOfCharacter == CharacterType.Monster)
     {
         for (int i = 0; i < quantity; i++)
         {
             this.Monsters.Add(monster.DataContractSerialization());
         }
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Adds a monster to the list of monsters.
 /// </summary>
 /// <param name="monster"></param>
 public void AddMonster(Character monster)
 {
     if (monster.TypeOfCharacter == CharacterType.Monster)
     {
         this.Monsters.Add(monster.DataContractSerialization());
     }
 }