Files
galaxy-game/pkg/schema/fbs/order.fbs
T
Ilia Denisov d6a707d60e flatbuffers
2026-03-22 19:43:45 +02:00

47 lines
690 B
Plaintext

namespace order;
enum Relation : byte { War = 0, Peace = 1 }
table CommandRaceQuit {}
table CommandRaceVote {
for: string;
}
table CommandRaceRelation {
relation: Relation;
for: string;
}
table CommandShipClassCreate {
drive: float32;
weapons: float32;
shields: float32;
cargo: float32;
armament: uint16;
name: string;
}
union Commands {
CommandRaceQuit,
CommandRaceVote,
CommandRaceRelation,
CommandShipClassCreate
}
struct uuid {
high: int64;
low: int64;
}
table CommandItem {
id: uuid;
command: Commands;
}
table Order {
updated_at: uint64; // utc timestamp
commands: [CommandItem];
}
root_type Order;