flatbuffers

This commit is contained in:
Ilia Denisov
2026-03-22 19:43:45 +02:00
committed by GitHub
parent 73a4b0d3ec
commit d6a707d60e
13 changed files with 665 additions and 0 deletions
+47
View File
@@ -0,0 +1,47 @@
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;