/// <summary> /// Initializes a new instance of the <see cref="APlanetoidData"/> class. /// </summary> /// <param name="stat">The stat.</param> public APlanetoidData(APlanetoidStat stat) : base(stat.Category.GetValueName(), stat.Mass, stat.MaxHitPoints) { Category = stat.Category; Capacity = stat.Capacity; Resources = stat.OpeResources; SpecialResources = stat.RareResources; Topography = Topography.System; }
/// <summary> /// Initializes a new instance of the <see cref="PlanetoidItemData"/> class. /// </summary> /// <param name="stat">The stat.</param> public PlanetoidItemData(APlanetoidStat stat) : base(stat.Name, stat.Mass, stat.MaxHitPoints) { Category = stat.Category; Capacity = stat.Capacity; Resources = stat.Resources; SpecialResources = stat.SpecialResources; base.Topography = Topography.System; }
/// <summary> /// Initializes a new instance of the <see cref="StarItemData"/> class. /// </summary> /// <param name="stat">The stat.</param> public StarItemData(StarStat stat) : base(stat.Category.GetName()) { Category = stat.Category; Capacity = stat.Capacity; Resources = stat.Resources; SpecialResources = stat.SpecialResources; base.Topography = Topography.System; }