public MyInventory(MyFixedPoint maxVolume, Vector3 size, MyInventoryFlags flags, IMyInventoryOwner owner) { m_maxVolume = MyPerGameSettings.ConstrainInventory() ? maxVolume * MySession.Static.InventoryMultiplier : MyFixedPoint.MaxValue; m_size = size; m_flags = flags; m_owner = owner; Clear(); SyncObject = new MySyncInventory(); }
public MyInventory(MyFixedPoint maxVolume, MyFixedPoint maxMass, Vector3 size, MyInventoryFlags flags, IMyInventoryOwner owner) : base("Inventory") { m_maxVolume = maxVolume; m_maxMass = maxMass; m_size = size; m_flags = flags; m_owner = owner; Clear(); SyncObject = new MySyncInventory(); var handler = OnCreated; if (handler != null && m_owner != null) handler(this); }
public MyInventory(MyFixedPoint maxVolume, MyFixedPoint maxMass, Vector3 size, MyInventoryFlags flags, IMyInventoryOwner owner) { m_maxVolume = maxVolume; m_maxMass = maxMass; m_size = size; m_flags = flags; m_owner = owner; Clear(); SyncObject = new MySyncInventory(); //ContentsChanged += OnContentsChanged; }