Пример #1
0
 public Item(UInt32 itemID, ItemGenerator generator)
     : this(itemID)
 {
     this._itemName      = generator.name;
     this._itemBitmap    = generator.itemBitmap;
     this._itemFunctions = generator.functions;
     this._itemType      = generator.typeOfItem;
 }
Пример #2
0
        public void CreateItem(Coords startPoint, ItemGenerator item)
        {
            Item newItem = new Item(this.IssueItemID(), item);

            this.CatalogueAddItemTo(newItem.ID, newItem);
            //Coords bedLocation = new Coords((Int32)((bottomRight.X + topLeft.X) * 0.5), (Int32)((bottomRight.Y + topLeft.Y) * 0.5));
            TilePassable itemTile = this.GetTile(startPoint) as TilePassable;

            itemTile.InventoryAddItem(newItem);
        }
Пример #3
0
 public void CreateItem(Coords startPoint, ItemGenerator item)
 {
     Item newItem = new Item(this.IssueItemID(), item);
     this.CatalogueAddItemTo(newItem.ID, newItem);
     //Coords bedLocation = new Coords((Int32)((bottomRight.X + topLeft.X) * 0.5), (Int32)((bottomRight.Y + topLeft.Y) * 0.5));
     TilePassable itemTile = this.GetTile(startPoint) as TilePassable;
     itemTile.InventoryAddItem(newItem);
 }
Пример #4
0
 public Item(UInt32 itemID, ItemGenerator generator)
     : this(itemID)
 {
     this._itemName = generator.name;
     this._itemBitmap = generator.itemBitmap;
     this._itemFunctions = generator.functions;
     this._itemType = generator.typeOfItem;
 }