public void PickUpItem(Player player) { var item = ItemsNearPlayer.First(); if (!player.Inventory.Add(item)) { return; } ItemsOnMap.Remove(item); UpdateMap(player); RedrawMap(); }
public void AddItemsOnMap() { ItemsOnMap.Add(new OnMapItem("testItem", 200, 100, 10, false, true)); ItemsOnMap.Add(new OnMapItem("testItem", 400, 100, 10, false, true)); ItemsOnMap.Add(new OnMapItem("testItem", 600, 100, 10, false, true)); }