mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-27 18:48:06 +00:00
Make MonsterExtra table a root table (#5315)
- MonsterExtra table a root table - add mosterdata_extra.json
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
b8ef8c1521
commit
af74f87ccd
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user