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)
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()
def encode(self): packet = Packet() packet.write_i16(self.__x) packet.write_i16(self.__y) packet.write_i16(self.__z) return packet.read_bytes()