decode_attach_target(payload)
|
Rebuild the attachment target encoded by encode_attach_target. |
decode_card(payload)
|
Rebuild the card encoded by encode_card, dispatching on its __type__ tag. |
decode_deck_key(payload)
|
Rebuild the DeckKey encoded by encode_deck_key. |
decode_intent(payload)
|
Rebuild an Intent from the plain data produced by encode_intent. |
decode_move_dest(payload)
|
Rebuild the move destination encoded by encode_move_dest. |
decode_seat(payload)
|
Rebuild the SeatInfo encoded by encode_seat. |
decode_zone_key(payload)
|
Rebuild the ZoneKey encoded by encode_zone_key. |
encode_attach_target(target)
|
Encode an attachment target — a parent card id or a province — to plain data. |
encode_card(card)
|
Encode an L5RCard (any subclass) to JSON-ready plain data, tagged with its concrete type so decode_card rebuilds the same class. |
encode_deck_key(key)
|
Encode a DeckKey to JSON-ready plain data. |
encode_intent(intent)
|
Encode an Intent to JSON-ready plain data (op + targets). |
encode_move_dest(dest)
|
Encode a move destination — the shared battlefield, a deck, or an owned zone — to plain data. |
encode_seat(info)
|
Encode a SeatInfo to JSON-ready plain data. |
encode_zone_key(key)
|
Encode a ZoneKey to JSON-ready plain data. |