blob: 65ca95de4cfd9bb88b24ce57f2031e5d038aa8e0 [file] [log] [blame]
James Robinson646469d2014-10-03 15:33:28 -07001/* tests data packing and unpacking */
2
3struct msg {
4 string from_name = 1;
5 string to_name = 2;
6 optional struct[kill] attack = 3;
7 array struct[run] run = 4;
8}
9
10struct kill {
11 string weapon = 0x10121;
12 string action = 2;
13 optional int how_often = 3;
14}
15
16struct run {
17 string how = 1;
18 optional bytes some_bytes = 2;
19 bytes fixed_bytes[24] = 3;
20}