Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public enum SlotType {Head, Chest, Waist, Legs, Feet, Back, Neck, Hands, Ring, MainHand, OffHand, Bag, Empty}
- public enum ItemType {Weapon, Clothing, Consumable, Container}
- [System.Serializable] // Our Representation of an InventoryItem
- public class InventoryItem {
- public string itemName = "New Item"; // What the item will be called in the inventory
- public Texture2D itemIcon = null; // What the item will look like in the inventory
- public SlotType slotType = SlotType.Bag; // What slot the item will fit in
- public ItemType itemType = ItemType.Consumable; // What type of item it is - primarily for the Editor Window
- public int containerSize = 0; // The number of "slots" or "spaces" in the container
- etc etc...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement