Make MonsterExtra table a root table (#5315)

- MonsterExtra table a root table
- add mosterdata_extra.json
This commit is contained in:
Vladimir Glavnyy
2019-05-03 05:12:58 +07:00
committed by Wouter van Oortmerssen
parent b8ef8c1521
commit af74f87ccd
9 changed files with 294 additions and 17 deletions

View File

@@ -1,6 +1,6 @@
namespace MyGame;
// Not all programmining languages support this extra table.
// Not all programming languages support this extra table.
table MonsterExtra {
// Float-point values with NaN and Inf defaults.
testf_nan:float = nan;
@@ -9,4 +9,11 @@ table MonsterExtra {
testd_nan:double = nan;
testd_pinf:double = +inf;
testd_ninf:double = -inf;
testf_vec : [float];
testd_vec : [double];
}
root_type MonsterExtra;
file_identifier "MONE";
file_extension "mon";