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