Document type aliases (#4499)

This commit is contained in:
MikkelFJ
2017-11-17 17:57:01 +01:00
committed by Wouter van Oortmerssen
parent fe483fa380
commit 0cf04ad9d5
2 changed files with 18 additions and 5 deletions

View File

@@ -216,6 +216,15 @@ The last part of the `schema` is the `root_type`. The root type declares what
will be the root table for the serialized data. In our case, the root type is
our `Monster` table.
The scalar types can also use alias type names such as `int16` instead
of `short` and `float32` instead of `float`. Thus we could also write
the `Weapon` table as:
table Weapon {
name:string;
damage:int16;
}
#### More Information About Schemas
You can find a complete guide to writing `schema` files in the