Flagging Items With Certain Attributes
Opened this issue · 1 comments
Enigma56 commented
Description: When creating items in the game, they need to be able to be marked with attributes that pertain to that item.
Example(If applicable): An item can be misc, consumable, restorable, common/rare/etc..
Attributes are one way to mark classes, methods etc. The problem with attributes are that they provide metadata for the program and as such can only be accessed through Reflection, an inefficient way of retrieving crucial game information.
Enigma56 commented
In regards to rarities, rarities can be implemented as classes rather than marker interfaces or attributes. Attributes are a good idea in both theory and practice but their lack of ease of access and difficulty to use make them a not-so-enticing option.