Skip to content

Instantly share code, notes, and snippets.

@TokyoDan
Created July 4, 2013 06:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TokyoDan/5925317 to your computer and use it in GitHub Desktop.
Save TokyoDan/5925317 to your computer and use it in GitHub Desktop.
struct TOTmoveCommand
{
public string cmd; // INIT, SETP, MOV, etc
public int plr;
public int typ;
public int rot;
public int lx;
public int ly;
public float px;
public float pz;
public TOTmoveCommand(string command, int player, int type, int rotation, int logicalX, int logicalY, float physX, float physZ)
{
cmd = command;
plr = player;
typ = type;
rot = rotation;
lx = logicalX;
ly = logicalY;
px = physX;
pz = physZ;
}
}
TOTmoveCommand thisPlayerJsonCmd = new TOTmoveCommand("MOV", tmpPlr, tmpTyp, tmpRot, tmpLx, tmpLy, tmpPx, tmpPz);
listen.sendChat( JsonFx.Json.JsonWriter.Serialize(thisPlayerJsonCmd) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment