Example #1
0
        public Player(GameObject gameObject, ModelHost <IFireableWeaponModel> equippedItemHost)
        {
            _gameObject      = gameObject;
            EquippedItemHost = equippedItemHost;

            Transform = gameObject.transform;

            Inventory    = new StorageContainer(10);
            EquippedItem = Inventory.GetCursor(0);
        }
Example #2
0
        private void PutInto(int slot, IItemModel model, int amount)
        {
            var cursor = _container.GetCursor(slot);

            _container.Put(cursor, new InventoryStack(model, amount));
        }