this enables saving state between script start/stop and world save/load
The generator uses the C++ source code to build the manual.