private void handle() { mainform.worldAge = socket.readLong(); mainform.time = socket.readLong(); PPaL pal; if (mainform.location != null) { pal = new PPaL(socket, mainform, true); } }
void handle() { // Server is setting our location. Handle, then respond..polietly. double X = Socket.readDouble(); double stance = Socket.readDouble(); double Y = Socket.readDouble(); double Z = Socket.readDouble(); float yaw = Socket.readFloat(); float pitch = Socket.readFloat(); bool onground = Socket.readBool(); mainform.moving = false; mainform.location = new double[4] { X, Y, Z, stance }; mainform.position = new float[2] { yaw, pitch }; mainform.onground = onground; PPaL response = new PPaL(Socket, mainform, true); }
void handle() { // Server is setting our location. Handle, then respond..polietly. double X = Socket.readDouble(); double stance = Socket.readDouble(); double Y = Socket.readDouble(); double Z = Socket.readDouble(); float yaw = Socket.readFloat(); float pitch = Socket.readFloat(); bool onground = Socket.readBool(); mainform.location = new double[4] { X, Y, Z, stance }; mainform.position = new float[2] { yaw, pitch }; mainform.onground = onground; PPaL response = new PPaL(Socket, mainform, true); }