Enum filter for Item system
I have an item system setup with a basic enum {weapon, consumable, quest}
I 'd like to have a filter on the inventory slot of say allowable item types. Then when you try to add an item, it checks against the filter and returns true/false.
My first thought was to use a List allowableTypes but that seems overkill. Is there a simpler solution? Like a few checkboxes you could check in the inspector.
Answer by SoraMahiro · Dec 22, 2016 at 09:02 PM
@en4ian, you could use a bool like public bool isAllowed;
then you could create a function that works from this bool perhaps. Maybe, I'm no good with enums and structs so I don't know if you could implement that.
Your answer
Follow this Question
Related Questions
Change the dropping prefab for each in-game drop 1 Answer
Zelda-like inventory system 0 Answers
How to select the item inside of my inventory slot? (Followed a tutorial into a rut) 0 Answers
Argument out of range? 2 Answers
How to make a Inventory Hotbar 0 Answers