Ejemplo n.º 1
0
 void Packetinterface.decode(byte[] packet, ref int offset)
 {
     oidAccountId_ = PacketUtil.decodeUInt64(packet, ref offset);
     name_         = PacketUtil.decodestring(packet, ref offset);
     pos_X         = PacketUtil.decodefloat(packet, ref offset);
     pos_Y         = PacketUtil.decodefloat(packet, ref offset);
 }
Ejemplo n.º 2
0
 void Packetinterface.decode(byte[] packet, ref int offset)
 {
     userNumber = PacketUtil.decodeInt32(packet, ref offset);
     steering   = PacketUtil.decodefloat(packet, ref offset);
     accel      = PacketUtil.decodefloat(packet, ref offset);
     footbrake  = PacketUtil.decodefloat(packet, ref offset);
     handbrake  = PacketUtil.decodefloat(packet, ref offset);
 }
Ejemplo n.º 3
0
 void Packetinterface.decode(byte[] packet, ref int offset)
 {
     clientId_ = PacketUtil.decodeUInt64(packet, ref offset);
     name_     = PacketUtil.decodestring(packet, ref offset);
     pointX_   = PacketUtil.decodefloat(packet, ref offset);
     pointY_   = PacketUtil.decodefloat(packet, ref offset);
     result_   = PacketUtil.decodeByte(packet, ref offset);
 }
Ejemplo n.º 4
0
 void Packetinterface.decode(byte[] packet, ref int offset)
 {
     ip_     = PacketUtil.decodestring(packet, ref offset);
     port_   = PacketUtil.decodeUInt32(packet, ref offset);
     name_   = PacketUtil.decodestring(packet, ref offset);
     pointX_ = PacketUtil.decodefloat(packet, ref offset);
     pointY_ = PacketUtil.decodefloat(packet, ref offset);
 }
Ejemplo n.º 5
0
 void Packetinterface.decode(byte[] packet, ref int offset)
 {
     userNumber = PacketUtil.decodeInt32(packet, ref offset);
     pos_X      = PacketUtil.decodefloat(packet, ref offset);
     pos_Y      = PacketUtil.decodefloat(packet, ref offset);
 }
Ejemplo n.º 6
0
 void Packetinterface.decode(byte[] packet, ref int offset)
 {
     name_ = PacketUtil.decodestring(packet, ref offset);
     pos_X = PacketUtil.decodefloat(packet, ref offset);
     pos_Y = PacketUtil.decodefloat(packet, ref offset);
 }