public ItemRenderable(Vector2 pos, ItemInstance item) : base(pos) { Item = item; ToolTip = () => Item.Item.Id != 0 ? Item.ToString() : null; }
public void SetContainerItem(int containerId, ItemInstance itemInstance, int index) { ContainerItemLists[containerId][index] = itemInstance; ContainerChanged(containerId, itemInstance, index); }
public void SetItem(ItemInstance item, int x, int y, int z) { GetTile(x, y, z).Item = item; }
public void SetItemAt(int index, ItemInstance item) { ItemRenderables[index].Item = item; }
public List <ItemUse> GetUses(ItemInstance tool) { return(_uses.FindAll(u => u.Tool == tool.Item.Id)); }