public static UnitEntityCombatData LoadFromSO(UnitEntityData so) { UnitEntityCombatData data = new UnitEntityCombatData() { maxMana = so.maxMana, attack = so.attack, defence = so.defence, piercing = so.piercing, magic = so.magic, resistance = so.resistance, }; return(data); }
public UnitEntityCombat(UnitEntity unit, IWorld world, IUnitEntityMovement movement, UnitEntityCombatData data) : this(unit, world, movement) { mana = data.maxMana; maxMana = data.maxMana; attack = data.attack; defence = data.defence; piercing = data.piercing; magic = data.magic; resistance = data.resistance; }