Packages
This is a flatbuffers implementation in Elixir. In contrast to existing implementations there is no need to compile code from a schema. Instead, data and schemas are processed dynamically at runtime, offering greater flexibility.
Current section
Files
Jump to
Current section
Files
test/complex_schemas/commands.fbs
namespace DogeFB.Commands;
file_identifier "cmnd";
table BuildingCollectCommand
{
buildingX:int;
buildingY:int;
}
table CraftingFinishedCommand
{
}
table OfflineCraftingCommand
{
}
table OfflineWorkerCommand
{
}
table Position {
x:short;
y:short;
}
table MoveBuildingCommand
{
from:Position;
to:Position;
}
table OfflineProductionCommand
{
}
table RefineryProducedCommand
{
}
table RefineryStartedCommand
{
}
union Command { RefineryStartedCommand, RefineryProducedCommand, OfflineProductionCommand,
MoveBuildingCommand,
OfflineWorkerCommand,
OfflineCraftingCommand, CraftingFinishedCommand,
BuildingCollectCommand }
table CommandRoot {
data:Command;
}
root_type CommandRoot;