public void Load(Creature.Inventory _inventory) { int tot = _inventory.slots.Length; for (int i = 0; i < slots.Length; i++) { if (i < tot && _inventory.slots[i] != null) { slots[i].Initialize(_inventory.slots[i].profile, i); } else { slots[i].Clear(); } } }
public virtual void Initialize(Creature.Inventory inventory, ItemProfile _profile = null) { _controller = inventory; }