Ejemplo n.º 1
0
 public override void Load(UXMLElement element)
 {
     base.Load(element);
     level = element.GetInt("level", 1);
     price.Load(element);
     //energy = element.GetInt("energy", 0);
     roomType      = element.GetEnum <RoomType>("type", RoomType.hallway);
     scaryIconPath = element.GetString("sicon");
     silverReward  = element.GetInt("reward_silver", 0);
     expReward     = element.GetInt("reward_exp", 0);
     scaryScene    = element.GetString("sscene");
     scene         = element.GetString("scene");
     isSpecial     = element.GetBool("special", false);
     floor         = element.GetInt("floor", 0);
     linkedRooms.Clear();
     linkedRooms.AddRange(element.GetStringArray("linked"));
 }