ringmud icon indicating copy to clipboard operation
ringmud copied to clipboard

Python/XML & XQuery Integration

Open ProjectMoon opened this issue 16 years ago • 3 comments

Hooks: mud.py: mud's "main method."

Game data: In-memory objects are serialized into game collection. Model changes can be synchronized from static.

Static collection remains as is. Have compiler generate one XML document from Python files. Remove duplicate ID checks. Add canonical ID property. Referential properties now use canonical IDs.

All RingDocuments have a codebehind attribute that points to a python file. This codebehind has stuff like event handlers.

ProjectMoon avatar Jan 27 '10 03:01 ProjectMoon

For addition of server startup logic:

  1. Add code to MUDFile and DeployableMUDFile to have a "world" directory that contains zone definitions.
  2. Update compiler to copy these files.
  3. Update deployer to deploy these files.
  4. Update WorldBuilder to work off the XQuery files instead of pulling from static.

ProjectMoon avatar Mar 13 '10 16:03 ProjectMoon

The following is done:

  • Have compiler generate one XML document from Python files.
  • Remove duplicate ID checks.
  • Add canonical ID property.
  • Codebehind

The following remains:

  • Restoring of world state.
  • Synchronizing model changes

ProjectMoon avatar Apr 12 '10 02:04 ProjectMoon

The codebehind idea will be largely superseded by live events, but may be able to hang around for some sort of alternative purpose.

ProjectMoon avatar Jun 14 '10 20:06 ProjectMoon