KGrevstad
Warlord
I was poking through the XML and Python files and a few questions came to mind, and I do apologise if these are answered elsewhere already.
How does Civ know what XML files to load? Are they all well-known files? Does it just load anything that has the .xml extension?
How does Civ load the Python code? Starts with a set of well-known files and then just follows all the imports?
In both cases, are the files' placements in the directory tree critical?
Does XML have any sort of "import" or "include" facility, via perhaps a pre-processor, or are we just stuck with monolithic files?
Someone was asking a few days ago about setters and getters for the XML data. Do these exist in the Python API? Can we dynamically change the value of some arbitrary XML data element?
--Kristine
How does Civ know what XML files to load? Are they all well-known files? Does it just load anything that has the .xml extension?
How does Civ load the Python code? Starts with a set of well-known files and then just follows all the imports?
In both cases, are the files' placements in the directory tree critical?
Does XML have any sort of "import" or "include" facility, via perhaps a pre-processor, or are we just stuck with monolithic files?
Someone was asking a few days ago about setters and getters for the XML data. Do these exist in the Python API? Can we dynamically change the value of some arbitrary XML data element?
--Kristine