public ArmorConfig(ArmorPosition[] allowedArmorSlots) { if (allowedArmorSlots == null) { Debug.Log("null armorSlots"); } if (allowedArmorSlots.Length == 0) { Debug.Log("zero armorSlots"); } m_ArmorConfiguration = new ArmorSlot[allowedArmorSlots.Length]; for(int i=0; i < allowedArmorSlots.Length; i++) { m_ArmorConfiguration[i] = new ArmorSlot(allowedArmorSlots[i]); } }
public ArmorSlot(ArmorPosition pos) { position = pos; armor = Armor.EMPTY_ARMOR; }