1namespace Evolution.V2; 2 3table TableA { 4 b:int (id: 1); // swapped with 'a' 5 a:float (id: 0); // swapped with 'b' 6 c:string (id: 2); // new in v2 7} 8 9table TableB { 10 a:int; 11} 12 13table TableC { // new in v2 14 a:double; 15 b:string; 16} 17 18enum Enum : byte { 19 King, 20 Queen, 21 Rook, // new in v2 22 Bishop // new in v2 23} 24 25union Union { 26 TableA, 27 TableB, 28 TableC 29} 30 31struct Struct { 32 a:int; 33 b:double; 34} 35 36table Root { 37 a:int (deprecated); // deprecated in v2 38 b:bool; 39 c:Union; 40 d:Enum; 41 e:TableA; 42 ff:Struct; // renamed from 'f' in v1 43 g:[int]; 44 h:[TableB]; 45 i:uint = 1234; 46 j:TableC; // new in v2 47 k:uint8 = 56; // new in v2 48} 49 50root_type Root;