def _unpack(self): # Discard this value; I'm not sure why this value comes out to a weird # float. We have the timestamp of the raw packet, so just that instead _ = Packet.unpack_float(self.buffer) self.player_id = Packet.unpack_uint8(self.buffer) self.state = Packet.unpack_player_state(self.buffer, self.packet.code)
def _unpack(self): self.player_id = Packet.unpack_uint8(self.buffer) self.position = Packet.unpack_vector(self.buffer) self.azimuth = Packet.unpack_float(self.buffer)