Esempio n. 1
0
 public WeaponWorkshopSetting(XElement element)
 {
     m_Workshop        = (Workshop)System.Enum.Parse(typeof(Workshop), element.GetString("name"));
     m_Damage          = new BaseParam(element.Element("damage"));
     m_OptimalDistance = new BaseParam(element.Element("od"));
     m_CritChance      = new AddParam(element.Element("cc"));
 }
Esempio n. 2
0
 public ModuleSlotSettingData(XElement element)
 {
     m_SlotType        = (ShipModelSlotType)Enum.Parse(typeof(ShipModelSlotType), element.GetString("type"));
     m_Hp              = new BaseParam(element.Element("hp"));
     m_Speed           = new BaseParam(element.Element("speed"));
     m_Cargo           = new BaseParam(element.Element("cargo"));
     m_Resist          = new AddParam(element.Element("resist"));
     m_DamageBonus     = new AddParam(element.Element("damage_bonus"));
     m_CargoBonus      = new AddParam(element.Element("cargo_bonus"));
     m_EnergyBonus     = new AddParam(element.Element("energy_bonus"));
     m_SpeedBonus      = new AddParam(element.Element("speed_bonus"));
     m_CritChanceBonus = new AddParam(element.Element("crit_chance"));
     m_CritDamageBonus = new AddParam(element.Element("crit_damage"));
 }