public void UpdateSourceInfo( HotbarRecastV1 source) { this.ID = source.ID; this.Name = source.Name; this.Type = source.Type; if (this.Remain != source.RemainingOrCost) { this.Remain = source.RemainingOrCost; this.DisplayOrder = 0; } else { this.DisplayOrder = 1; } }
/* * public class HotbarRecastV1 * { * public HotbarRecastV1(); * * public HotbarType HotbarType { get; set; } * public int ID { get; set; } * public int Slot { get; set; } * public string Name { get; set; } * public int Category { get; set; } * public int Type { get; set; } * public int Icon { get; set; } * public int CoolDownPercent { get; set; } * public bool IsAvailable { get; set; } * public int RemainingOrCost { get; set; } * public int Amount { get; set; } * public bool InRange { get; set; } * public bool IsProcOrCombo { get; set; } * } */ public HotbarInfoContainer( HotbarRecastV1 source) => this.UpdateSourceInfo(source);