示例#1
0
 public PlayerLook(Wrapped.Wrapped socket, Form1 mainform)
 {
     socket.writeByte(12);
     socket.writeFloat(mainform.position[0]);
     socket.writeFloat(mainform.position[1]);
     socket.writeBool(mainform.onground);
 }
示例#2
0
 void send()
 {
     Socket.writeByte(13);
     Socket.writeDouble(mainform.location[0]);
     Socket.writeDouble(mainform.location[1]);
     Socket.writeDouble(mainform.location[3]);
     Socket.writeDouble(mainform.location[2]);
     Socket.writeFloat(mainform.position[0]);
     Socket.writeFloat(mainform.position[1]);
     Socket.writeBool(mainform.onground);
 }