I have lot's of different sets that group 'minerals' like that:
Code:
sMinerals = set of TBlockType;
mineralsWalkable, mineralsNonBlocking, mineralsRare.. : sMinerals;
then I have a game object with one of felds being 'sMinerals' and would like to be able to load it's properties from file.
I know that it's possible to convert string to enum with typeinfo and load set elements that way but is it possible to load a 'set name' instead and convert it somehow?
loading only elements would mean I have to update the file manually each time I add new element to set definition
Bookmarks