boardgame2vec/gothok/state.capnp

37 lines
486 B
Cap'n Proto
Raw Normal View History

2018-01-27 23:14:27 +00:00
@0xdcf6fa9421875ce0;
enum House {
2018-01-28 00:12:39 +00:00
stark @8;
greyjoy @7;
lannister @6;
targaryen @5;
baratheon @4;
tyrell @3;
tully @2;
varys @1;
empty @0;
2018-01-27 23:14:27 +00:00
}
struct Location {
union {
# Is card on the board
board :group {
x @0 :UInt8 = 0;
y @1 :UInt8 = 0;
}
# Or held by a player
player :group {
index @2 :UInt8 = 0;
}
}
}
struct Card {
2018-01-28 00:12:39 +00:00
house @0 :House = empty;
2018-01-27 23:14:27 +00:00
location @1 :Location;
}
struct State {
cardlist @0 :List(Card);
}