public VesselsPartStat(JObject JSONObject, VesselsModulePartData assigned) { UniqueID = JSONObject["uniqueID"].Value <string>(); Cost = JSONObject["cost"].Value <int>(); PartFaction = (Faction)JSONObject["Faction"].Value <int>(); HullLife = JSONObject["HullLife"].Value <uint>(); ModulePartData = assigned; }
public WeaponStat(JObject JSONObject, VesselsModulePartData assigned) : base(JSONObject, assigned) { FireRate = JSONObject["FireRate"].Value <float>(); FireBurst = JSONObject["FireBurst"].Value <uint>(); speedShot = JSONObject["speedShot"].Value <float>(); projectilPrefabPath = JSONObject["ProjectilePrefabPath"].Value <string>(); projectilImpactPrefabPath = JSONObject["ProjectileImpactFX"].Value <string>(); range = JSONObject["range"].Value <uint>(); damage = JSONObject["damage"].Value <uint>(); weaponType = (WeaponType)JSONObject["type"].Value <int>(); }
public ReactorStat(JObject JSONObject, VesselsModulePartData assigned) : base(JSONObject, assigned) { Vmax = JSONObject["Vmax"].Value <uint>(); TimeToVMax = JSONObject["TimeToVMax"].Value <uint>(); Manouevrability = JSONObject["Manouevrability"].Value <float>(); }
public CentralHubStat(JObject JSONObject, VesselsModulePartData assigned) : base(JSONObject, assigned) { ModuleMaxSlots = assigned.ConnectionPoints.Count; BatteryMaxSlots = JSONObject["BatteryMaxSlots"].Value <int>(); }
public GeneratorStat(JObject JSONObject, VesselsModulePartData assigned) : base(JSONObject, assigned) { ShieldSize = JSONObject["ShieldSize"].Value <float>(); ShieldStrengh = JSONObject["ShieldStrengh"].Value <uint>(); }