public void Initialize() { unitName = DataDefaults.unitName; raceName = DataDefaults.raceName; level = 1; attributes = new UnitAttributesData(); mainAttack = new SkillID(); perks = new List <PerkID>(); skills = new List <SkillID>(); inventory = new InventoryData(); isInitialized = true; }
public UnitData(UnitData other) { unitName = other.unitName; raceName = other.raceName; level = other.level; attributes = new UnitAttributesData(other.attributes); mainAttack = new SkillID(other.mainAttack); perks = new List <PerkID>(other.perks); skills = new List <SkillID>(other.skills); inventory = new InventoryData(other.inventory); usesRootMotion = other.usesRootMotion; isInitialized = other.isInitialized; }
public UnitAttributesData(UnitAttributesData other) { strength = new Attribute(other.strength); dexterity = new Attribute(other.dexterity); intelligence = new Attribute(other.intelligence); size = new Attribute(other.size); height = new Attribute(other.height); healthPoints = new Attribute(other.healthPoints); armor = new Attribute(other.armor); regeneration = new Attribute(other.regeneration); movementSpeed = new Attribute(other.movementSpeed); rotationSpeed = new Attribute(other.rotationSpeed); reach = new Attribute(other.reach); viewRange = new Attribute(other.viewRange); }