Ejemplo n.º 1
0
 public Monster(SerializationInfo info, StreamingContext context)
 {
     Name = info.GetValue("Name", typeof(String)) as String;
     mSprite = info.GetValue("mSprite", typeof(Sprite)) as Sprite;
     Stats = info.GetValue("Stats", typeof(CharactStats)) as CharactStats;
     Attacks = info.GetValue("Attacks", typeof(List<SpecialAttack>)) as List<SpecialAttack>;
     Drop = info.GetValue("Drop", typeof(ItemObject)) as ItemObject;
     DropRate = (Int32)info.GetValue("DropRate", typeof(Int32));
 }
Ejemplo n.º 2
0
 public Monster()
 {
     Name = "Monstre";
     mSprite = new Sprite();
     Stats = new CharactStats();
     Attacks = new List<SpecialAttack>();
     Drop = new ItemObject();
     DropRate = 0;
 }