def __pack__(self): data = {} data['state'] = pack_member(self.getstate()) if self._shadow is not None: data['_shadow'] = pack_member(self._shadow) return data
def __pack__(self): data = super().__pack__() data['players'] = pack_member(self.players) data['counter'] = pack_member(self.counter) data['turn_phases'] = pack_member(self.turn_phases) return data
def __pack__(self): data = super().__pack__() data['_id'] = pack_member(self._id) data['_table'] = pack_member(self._table) data['_open'] = pack_member(self._open) data['_req'] = pack_member(self._req) return data
def __pack__(self): data = {} data['_stack'] = pack_member(self._stack) data['_phases'] = pack_member(self._phases) data['_in_transaction'] = pack_member(self._in_transaction) data['_start'] = pack_member(self._start_phase) return data
def __pack__(self): data = {} data['ID_counter'] = self.ID_counter data['ID_counter_shadow'] = self.ID_counter_shadow data['table'] = { pack_member(k): pack_member(v) for k, v in self.table.items() } data['players'] = pack_member(self.players) data['obj_types'] = pack_member(self.obj_types) return data
def __pack__(self): data = { 'debug': pack_member(self.debug), 'indent_level': pack_member(self.indent_level), 'end': pack_member(self.end), 'players': pack_member(self.players), 'targets': pack_member(self.targets), 'log': pack_member(self.log), 'update': pack_member(self.update), '_shadow': pack_member(self._shadow), } return data
def __pack__(self): data = {} # registries data['config_files'] = pack_member(self.config_files) # tmembers - arbitrary Packable instances for mem in self._tmembers: data[mem] = pack_member(self.__dict__[mem]) data['name'] = pack_member(self.name) data['_in_progress'] = pack_member(self._in_progress) data['_in_transaction'] = pack_member(self._in_transaction) data['_spec_image'] = pack_member(self._spec_image) data['debug'] = pack_member(self.DEBUG) data['active_players'] = pack_member(self.active_players) return data
def __pack__(self): data = {} data['players'] = pack_member(self.players) data['_in_transaction'] = pack_member(self._in_transaction) data['meta_info'] = pack_member(self.meta_info) data['default_player'] = pack_member(self.default_player) data['force_player_type'] = pack_member(self.force_player_type) data['hide_name'] = pack_member(self.hide_name) return data
def __pack__(self): data = {} data['_current'] = pack_member(self._current) data['_desc'] = pack_member(self._desc) data['_options'] = pack_member(self._options) data['status'] = pack_member(self.status) data['info'] = pack_member(self.info) data['_name'] = pack_member(self._name) return data
def __pack__(self): return {'player': pack_member(self.player)}
def __pack__(self): return {'obj': pack_member(self.obj)}