Example #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
Example #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
Example #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
Example #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
 def __from_json__(self, players='friendly'):
     self.players = Player.from_json(players)
     return self
 def __from_json__(self, picker, players='friendly'):
     self.players = Player.from_json(players)
     self.picker = Picker.from_json(**picker)
     return self
Example #7
0
 def __from_json__(self, players='friendly'):
     self.players = Player.from_json(players)
     return self
Example #8
0
 def __from_json__(self, picker, players='friendly'):
     self.players = Player.from_json(players)
     self.picker = Picker.from_json(**picker)
     return self
Example #9
0
 def __from_json__(name, player, conditions):
     return DeckSource(
         Player.from_json(player),
         [Condition.from_json(**condition) for condition in conditions])
Example #10
0
 def __from_json__(name, player):
     return LastCard(Player.from_json(player), )
Example #11
0
 def __from_json__(name, player, conditions):
     return DeckSource(
         Player.from_json(player),
         [Condition.from_json(**condition) for condition in conditions]
     )
Example #12
0
 def __from_json__(name, player):
     return LastCard(
         Player.from_json(player),
     )