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
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, 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
def __from_json__(name, player, conditions): return DeckSource( Player.from_json(player), [Condition.from_json(**condition) for condition in conditions])
def __from_json__(name, player): return LastCard(Player.from_json(player), )
def __from_json__(name, player, conditions): return DeckSource( Player.from_json(player), [Condition.from_json(**condition) for condition in conditions] )
def __from_json__(name, player): return LastCard( Player.from_json(player), )