Beispiel #1
0
 def encode(self):
     packet = Packet()
     packet.write_bytes(self.__scene_rot_pos.get_bytes())
     packet.write_bytes(self.__forward.get_bytes())
     packet.write_string(self.__ani_name)
     packet.write_i16(self.__x_axis)
     return packet.encode(msg.P_REQ_SCENE_MOVE)
Beispiel #2
0
	def encode(self):
		packet = Packet()
		packet.write_bytes(self.__scene_rot_pos.get_bytes())
		packet.write_bytes(self.__forward.get_bytes())
		packet.write_string(self.__ani_name)
		packet.write_i16(self.__x_axis)
		return packet.encode(msg.P_REQ_SCENE_MOVE)
Beispiel #3
0
 def encode(self):
     packet = Packet()
     packet.write_i16(self.__rot_x)
     packet.write_i16(self.__rot_y)
     packet.write_i16(self.__rot_z)
     packet.write_i16(self.__pos_x)
     packet.write_i16(self.__pos_y)
     packet.write_i16(self.__pos_z)
     return packet.read_bytes()
Beispiel #4
0
	def encode(self):
		packet = Packet()
		packet.write_i16(self.__rot_x)
		packet.write_i16(self.__rot_y)
		packet.write_i16(self.__rot_z)
		packet.write_i16(self.__pos_x)
		packet.write_i16(self.__pos_y)
		packet.write_i16(self.__pos_z)
		return packet.read_bytes()
Beispiel #5
0
 def encode(self):
     packet = Packet()
     packet.write_i16(self.__x)
     packet.write_i16(self.__y)
     packet.write_i16(self.__z)
     return packet.read_bytes()
Beispiel #6
0
	def encode(self):
		packet = Packet()
		packet.write_i16(self.__x)
		packet.write_i16(self.__y)
		packet.write_i16(self.__z)
		return packet.read_bytes()