def set_entity(self, entity, entity_id, mask=None): if mask is None: mask = FULL_MASK writer = ByteWriter() writer.write_uint64(entity_id) write_masked_data(entity, writer, mask) self.data = writer.get()
def set_entity(self, entity, entity_id): writer = ByteWriter() writer.write_uint64(entity_id) write_masked_data(entity, writer) self.data = writer.get()