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