Gu3st...
2013-04-03 13:14:11
What items do we want to include in our database, either for scripters to utilize and populate, or for SRL to utilize and populate.
I've made a list here, but feel free to suggest others:
We'll save using XML, the problem comes when we want to load our objects; we have to extract the information from the XML file and enter them into the object one variable at a time; resulting in at least one line for each variable. For arrays there will be at least 3 lines for each array.
One "extractFromXML()" function will be at best "n+5" lines long where 'n' is amount of variables to set.
Writing these functions will thus be very tedious and time consuming, unless we find out a clever hack plugin that can set variable names and variable values for us.
Maybe Lape can add some sort of dynamic object to it? @nielsie95;
I've made a list here, but feel free to suggest others:
- Locations (A TDynamicBox made from a TPointArray)
- Items (A TRSItem type)
- NPCs (A TRSNPC type)
- Objects (A TRSObject type)
- Interfaces (A TRSInterface type, which we already have)
- ????
We'll save using XML, the problem comes when we want to load our objects; we have to extract the information from the XML file and enter them into the object one variable at a time; resulting in at least one line for each variable. For arrays there will be at least 3 lines for each array.
One "extractFromXML()" function will be at best "n+5" lines long where 'n' is amount of variables to set.
Writing these functions will thus be very tedious and time consuming, unless we find out a clever hack plugin that can set variable names and variable values for us.
Maybe Lape can add some sort of dynamic object to it? @nielsie95;