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);
        }
 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);
 }
 public Item(UInt32 itemID, ItemGenerator generator)
     : this(itemID)
 {
     this._itemName = generator.name;
     this._itemBitmap = generator.itemBitmap;
     this._itemFunctions = generator.functions;
     this._itemType = generator.typeOfItem;
 }