in the drawing tutorial, the "command stack" is an ordered list of drawing actions performed by a given user. the concept of "drawing commands" is a custom part of the drawing application, and not related to the core Union infrastructure or OrbiterMicro SDK. the commands are application-specific actions, such as:
- Code: Select all
DrawingCommands.SET_THICKNESS
DrawingCommands.MOVE_TO
you do not need to use a similar structure in your applications.
the actual communication occurs by sending messages (with sendUPC()) and setting attributes. for example, here's how a user sends a message to move the drawing pen:
- Code: Select all
function broadcastMove (x, y) {
msgManager.sendUPC(UPC.SEND_MESSAGE_TO_ROOMS,
Messages.MOVE,
roomID,
"false",
"",
x + "," + y);
}
colin