Made lucas the Main character and also added collision
This commit is contained in:
18
Collector/src/Character/Inventory.cs
Normal file
18
Collector/src/Character/Inventory.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System.Collections.Generic;
|
||||
using Collector.Dimension;
|
||||
|
||||
public class Inventory {
|
||||
private LinkedList<ItemStack> inventory = new LinkedList<ItemStack>();
|
||||
|
||||
public LinkedList<ItemStack> GetInventory() {
|
||||
return inventory;
|
||||
}
|
||||
|
||||
public void SetInventory(LinkedList<ItemStack> inventory) {
|
||||
this.inventory = inventory;
|
||||
}
|
||||
|
||||
public void RemoveItem(ItemStack itemStack){
|
||||
inventory.Remove(itemStack);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user