Created
July 4, 2013 06:22
-
-
Save TokyoDan/5925317 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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