Framework for Game Engine Tools
Commands & Progress
I’ve structured my commands as two text strings to be sent to the XMLParser via the command handler, on either the C# or C++ side, where they’ll be generated as XML. The first of the two texts contains the command with eventual parameters, and the second holds content which is optional. The parser classes also work the other way, to convert a XML document into the initial command strings.
The command text need at least command name which is placed first. Each item in the text are separated by one space, and parameters are notated with a “-” sign (can easily be redefined). Any non-parameter text item after a parameter will act as an attribute.
Other content such as entity lists is added as a separate string but may be empty.
Here are some examples with arbitrary names and attributes:
“myCommand -foo -bar test -numbers 1234” and “qwerty”
“shutdown” and “”
The parser can also convert the other way, inserting the XML generates the initial commands.
Week progress: Doesn’t look like I’ll be done with my work tasks for this week - I’m done with the C++ side XML parser and what’s left are the C# version of it, the command handlers, then finally tcp connection handlers. I will have to complete them after this week as they’re needed for the following tasks until the third milestone.