tcod-cpp-engine-2022 icon indicating copy to clipboard operation
tcod-cpp-engine-2022 copied to clipboard

Make items more generic.

Open HexDecimal opened this issue 3 years ago • 0 comments

Right now items are setup as an abstract class and use polymorphic subclasses to define behavior. I want to change this so that items are a generic mostly-static type which can point to the behaviors they use. This should make it easier to add and remove item behaviors since right now serialization is a real pain.

Data associated with items should be moved to a dictionary like type. Something like std::unordered_map<std::string, std::any> or something more strict.

HexDecimal avatar Aug 16 '22 04:08 HexDecimal