Write schema here:

namespace Dungeon; struct Point (csharp_partial) { x:int (id:0); y:int (id:1); z:int (id:2); } struct Boundary (csharp_partial) { nw:Point (id:0); se:Point (id:1); } enum PropertyKey : byte { Unknown = 0, Height = 1, Width = 2, Depth = 3, Level = 4 } table KeyValuePair (csharp_partial) { key:PropertyKey (id:0); value:string (id:1); } table Item (csharp_partial) { id:string (id:0); name:string (id:1); properties:[KeyValuePair] (id:2); } table ItemSet (csharp_partial) { items:[Item] (id:0); vertices:[Point] (id:1); } table DungeonSector (csharp_partial) { id:string (id:0); bounds:Boundary (id:1); items:[ItemSet] (id:2); double_score:bool (id:3); } root_type DungeonSector;

Generating...

// press Generate to see the output
About

This is a simple web front end for the FlatBuffers Compiler (flatc 2.0.0).

Clicking Download will get you a zip file including the original schema, that is especially convenient for languages that require multiple output files.

Feel free to also use the API directly if you wish (sorry, no documentation yet, but just use developer tools to see the request payload, it is really simple).

This awesome service is brought to you by Matias Ärje. Feedback form here.