Ejemplo n.º 1
0
 def __from_json__(self, players='friendly', condition=None):
     self.players = Player.from_json(players)
     if condition:
         self.condition = Condition.from_json(**condition)
     else:
         self.condition = None
     return self
Ejemplo n.º 2
0
 def __from_json__(self, players, condition=None):
     if condition:
         self.condition = hearthbreaker.tags.condition.Condition.from_json(**condition)
     else:
         self.condition = None
     self.players = Player.from_json(players)
     return self
Ejemplo n.º 3
0
 def __from_json__(self, players='friendly', condition=None):
     self.players = Player.from_json(players)
     if condition:
         self.condition = Condition.from_json(**condition)
     else:
         self.condition = None
     return self
Ejemplo n.º 4
0
 def __from_json__(self, players, condition=None):
     if condition:
         self.condition = hearthbreaker.tags.condition.Condition.from_json(
             **condition)
     else:
         self.condition = None
     self.players = Player.from_json(players)
     return self
Ejemplo n.º 5
0
 def __from_json__(self, players='friendly'):
     self.players = Player.from_json(players)
     return self
Ejemplo n.º 6
0
 def __from_json__(self, picker, players='friendly'):
     self.players = Player.from_json(players)
     self.picker = Picker.from_json(**picker)
     return self
Ejemplo n.º 7
0
 def __from_json__(self, players='friendly'):
     self.players = Player.from_json(players)
     return self
Ejemplo n.º 8
0
 def __from_json__(self, picker, players='friendly'):
     self.players = Player.from_json(players)
     self.picker = Picker.from_json(**picker)
     return self
Ejemplo n.º 9
0
 def __from_json__(name, player, conditions):
     return DeckSource(
         Player.from_json(player),
         [Condition.from_json(**condition) for condition in conditions])
Ejemplo n.º 10
0
 def __from_json__(name, player):
     return LastCard(Player.from_json(player), )
Ejemplo n.º 11
0
 def __from_json__(name, player, conditions):
     return DeckSource(
         Player.from_json(player),
         [Condition.from_json(**condition) for condition in conditions]
     )
Ejemplo n.º 12
0
 def __from_json__(name, player):
     return LastCard(
         Player.from_json(player),
     )