예제 #1
0
    def __pack__(self):
        data = {}

        data['state'] = pack_member(self.getstate())
        if self._shadow is not None:
            data['_shadow'] = pack_member(self._shadow)

        return data
예제 #2
0
파일: turns.py 프로젝트: isawzz/vid
    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
예제 #3
0
	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
예제 #4
0
    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
예제 #5
0
    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
예제 #6
0
파일: logging.py 프로젝트: isawzz/vid
	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
예제 #7
0
파일: controller.py 프로젝트: isawzz/vid
    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
예제 #8
0
    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
예제 #9
0
파일: actions.py 프로젝트: isawzz/vid
    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
예제 #10
0
파일: actions.py 프로젝트: isawzz/vid
 def __pack__(self):
     return {'player': pack_member(self.player)}
예제 #11
0
파일: actions.py 프로젝트: isawzz/vid
 def __pack__(self):
     return {'obj': pack_member(self.obj)}