コード例 #1
0
 def encode(self):
     d = OrderedDict()
     d['IdTable'] = self.id_table
     d['NbPlayers'] = self.nb_players
     d['PossibleAction'] = LobbyActionEnum.to_string(self.possible_action)
     d['Params'] = self.params.encode()
     return d
コード例 #2
0
 def __str__(self):
     return '{0}({1}) {2} [{3}]'.format(
         self.id_table,
         self.nb_players,
         LobbyActionEnum.to_string(self.possible_action),
         self.params
     )