Beispiel #1
0
 public void PickupItem(Objects obj)
 {
     // Add an if-statement here when you want to have a maximum number of items
     inventory.Add(obj.GetName(), obj);
     obj.SetIsAcquirable(false);
 }
Beispiel #2
0
 public void AddItem(Objects item, int x, int y)
 {
     this.items[x, y] = item;
 }