summaryrefslogtreecommitdiff
path: root/tests/arrays_test.fbs
blob: 40bce66e76b625c475b0915ab753716bf79c3fb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
namespace MyGame.Example;

enum TestEnum : byte { A, B, C }

struct NestedStruct{
  a:[int:2];
  b:TestEnum;
  c:[TestEnum:2];
}

struct ArrayStruct{
  a:float;
  b:[int:0xF];
  c:byte;
  d:[NestedStruct:2];
}

table ArrayTable{
  a:ArrayStruct;
}

root_type ArrayTable;
file_identifier "ARRT";
file_extension "mon";