Esempio n. 1
0
    def __unpack__(self, data):

        GameStack.__init__(self)

        self._stack = unpack_member(data['_stack'])
        self._phases = unpack_member(data['_phases'])
        self._in_transaction = unpack_member(data['_in_transaction'])
        self._start_phase = unpack_member(data['_start'])
Esempio n. 2
0
File: turns.py Progetto: isawzz/vid
    def __unpack__(self, data):

        TurnPhaseStack.__init__(self)

        self.players = unpack_member(data['players'])
        self.counter = unpack_member(data['counter'])
        self.turn_phases = unpack_member(data['turn_phases'])

        super().__unpack__(data)
Esempio n. 3
0
    def __unpack__(self, data):

        self._shadow = None

        x = unpack_member(data['state'])

        self.setstate(x)

        if '_shadow' in data:
            self._shadow = unpack_member(data['_shadow'])
Esempio n. 4
0
    def __unpack__(self, data):

        self.__init__()

        self.obj_types = unpack_member(data['obj_types'])

        for k, x in data['table'].items():
            self.table[unpack_member(k)] = unpack_member(x)

        self.ID_counter = data['ID_counter']
        self.ID_counter_shadow = data['ID_counter_shadow']

        self.players = unpack_member(data['players'])
Esempio n. 5
0
	def __unpack__(self, data):
		
		self._id = unpack_member(data['_id'])
		self._table = unpack_member(data['_table'])
		
		self._req = unpack_member(data['_req'])
		self._open = unpack_member(data['_open'])
		
		del data['_id']
		del data['_table']
		del data['_req']
		del data['_open']
		
		super().__unpack__(data)
Esempio n. 6
0
	def __unpack__(self, data):
		
		self.debug = unpack_member(data['debug'])
		self.indent_level = unpack_member(data['indent_level'])
		self.end = unpack_member(data['end'])
		
		self.players = unpack_member(data['players'])
		self.targets = unpack_member(data['targets'])
		
		self.update = unpack_member(data['update'])
		self.log = unpack_member(data['log'])
		self._shadow = unpack_member(data['_shadow'])
Esempio n. 7
0
    def __unpack__(self, data):

        # load registries
        self.config_files = unpack_member(data['config_files'])

        # unpack tmembers
        for mem in self._tmembers:
            self.__dict__[mem] = unpack_member(data[mem])

        self.name = unpack_member(data['name'])
        self._in_transaction = unpack_member(data['_in_transaction'])
        self._in_progress = unpack_member(data['_in_progress'])
        self._spec_image = unpack_member(data['_spec_image'])
        self.DEBUG = unpack_member(data['debug'])
        self.active_players = unpack_member(data['active_players'])
Esempio n. 8
0
    def __unpack__(self, data):

        self._current = unpack_member(data['_current'])
        self._desc = unpack_member(data['_desc'])
        self._options = unpack_member(data['_options'])
        self.status = unpack_member(data['status'])
        self.info = unpack_member(data['info'])
        self._name = unpack_member(data['_name'])
Esempio n. 9
0
    def __unpack__(self, data):

        self.players = unpack_member(data['players'])
        self.players_list = tlist(self.players.values())
        self._in_transaction = unpack_member(data['_in_transaction'])
        self.meta_info = unpack_member(data['meta_info'])
        self.default_player = unpack_member(data['default_player'])
        self.force_player_type = unpack_member(data['force_player_type'])
        self.hide_name = unpack_member(data['hide_name'])
Esempio n. 10
0
 def __unpack__(self, data):
     PlayerAction.__init__(self, unpack_member(data['player']))
Esempio n. 11
0
 def __unpack__(self, data):
     ObjectAction.__init__(self, unpack_member(data['obj']))