You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
376 B
39 lines
376 B
4 months ago
|
namespace Evolution.V1;
|
||
|
|
||
|
table TableA {
|
||
|
a:float;
|
||
|
b:int;
|
||
|
}
|
||
|
|
||
|
table TableB {
|
||
|
a:int;
|
||
|
}
|
||
|
|
||
|
enum Enum : byte {
|
||
|
King,
|
||
|
Queen
|
||
|
}
|
||
|
|
||
|
union Union {
|
||
|
TableA,
|
||
|
TableB
|
||
|
}
|
||
|
|
||
|
struct Struct {
|
||
|
a:int;
|
||
|
b:double;
|
||
|
}
|
||
|
|
||
|
table Root {
|
||
|
a:int;
|
||
|
b:bool;
|
||
|
c:Union;
|
||
|
d:Enum;
|
||
|
e:TableA;
|
||
|
f:Struct;
|
||
|
g:[int];
|
||
|
h:[TableB];
|
||
|
i:int = 1234;
|
||
|
}
|
||
|
|
||
|
root_type Root;
|