Hi!
I'm requesting that thing comp "def"s become actual defs, containing PostLoad() functions.
long story on this thread: http://ludeon.com/forums/index.php?topic=5939.0 short story to follow:
Basically, I wanted to make a library for animating things using frames. The best way I've found in the code to do this is through use of a ThingComp, however the "def" field in ThingComp is just a class, not an actual def. Consequently, I am unable to write functions like PostLoad() for the thing comp, which is troubling seeing as I need to make a hash table for the textures so that I can Identify and load them quickly by a string. (I can explain why I settled on this implementation if you want, just ask!)
This could be done from the PostLoad() of ThingDef, just simply foreach-ing through the CompProperties and running their PostLoad().
I'm requesting that thing comp "def"s become actual defs, containing PostLoad() functions.
long story on this thread: http://ludeon.com/forums/index.php?topic=5939.0 short story to follow:
Basically, I wanted to make a library for animating things using frames. The best way I've found in the code to do this is through use of a ThingComp, however the "def" field in ThingComp is just a class, not an actual def. Consequently, I am unable to write functions like PostLoad() for the thing comp, which is troubling seeing as I need to make a hash table for the textures so that I can Identify and load them quickly by a string. (I can explain why I settled on this implementation if you want, just ask!)
This could be done from the PostLoad() of ThingDef, just simply foreach-ing through the CompProperties and running their PostLoad().