Austin Schuh | e89fa2d | 2019-08-14 20:24:23 -0700 | [diff] [blame] | 1 | namespace MyGame.Example; |
| 2 | |
| 3 | enum TestEnum : byte { A, B, C } |
| 4 | |
| 5 | struct NestedStruct{ |
| 6 | a:[int:2]; |
| 7 | b:TestEnum; |
| 8 | c:[TestEnum:2]; |
Austin Schuh | 272c613 | 2020-11-14 16:37:52 -0800 | [diff] [blame] | 9 | d:[int64:2]; |
Austin Schuh | e89fa2d | 2019-08-14 20:24:23 -0700 | [diff] [blame] | 10 | } |
| 11 | |
| 12 | struct ArrayStruct{ |
| 13 | a:float; |
| 14 | b:[int:0xF]; |
| 15 | c:byte; |
| 16 | d:[NestedStruct:2]; |
Austin Schuh | 272c613 | 2020-11-14 16:37:52 -0800 | [diff] [blame] | 17 | e:int32; |
| 18 | f:[int64:2]; |
Austin Schuh | e89fa2d | 2019-08-14 20:24:23 -0700 | [diff] [blame] | 19 | } |
| 20 | |
| 21 | table ArrayTable{ |
| 22 | a:ArrayStruct; |
| 23 | } |
| 24 | |
| 25 | root_type ArrayTable; |
| 26 | file_identifier "ARRT"; |
| 27 | file_extension "mon"; |