• Home
  • Raw
  • Download

Lines Matching refs:Example

50   var inv = MyGame.Example.Monster.createInventoryVector(fbb, [0, 1, 2, 3, 4]);
53 MyGame.Example.Monster.startMonster(fbb);
54 MyGame.Example.Monster.addName(fbb, fred);
55 var mon2 = MyGame.Example.Monster.endMonster(fbb);
57 MyGame.Example.Monster.startTest4Vector(fbb, 2);
58 MyGame.Example.Test.createTest(fbb, 10, 20);
59 MyGame.Example.Test.createTest(fbb, 30, 40);
62 var testArrayOfString = MyGame.Example.Monster.createTestarrayofstringVector(fbb, [
67 MyGame.Example.Monster.startMonster(fbb);
68 …MyGame.Example.Monster.addPos(fbb, MyGame.Example.Vec3.createVec3(fbb, 1, 2, 3, 3, MyGame.Example.…
69 MyGame.Example.Monster.addHp(fbb, 80);
70 MyGame.Example.Monster.addName(fbb, str);
71 MyGame.Example.Monster.addInventory(fbb, inv);
72 MyGame.Example.Monster.addTestType(fbb, MyGame.Example.Any.Monster);
73 MyGame.Example.Monster.addTest(fbb, mon2);
74 MyGame.Example.Monster.addTest4(fbb, test4);
75 MyGame.Example.Monster.addTestarrayofstring(fbb, testArrayOfString);
76 MyGame.Example.Monster.addTestbool(fbb, true);
77 var mon = MyGame.Example.Monster.endMonster(fbb);
79 MyGame.Example.Monster.finishMonsterBuffer(fbb, mon);
98 var monster = MyGame.Example.Monster.getRootAsMonster(bb);
113 assert.ok(MyGame.Example.Monster.bufferHasIdentifier(bb));
115 var monster = MyGame.Example.Monster.getRootAsMonster(bb);
127 assert.strictEqual(pos.test2(), MyGame.Example.Color.Green);
132 assert.strictEqual(monster.testType(), MyGame.Example.Any.Monster);
133 var monster2 = new MyGame.Example.Monster();
167 MyGame.Example.Stat.startStat(fbb);
168 var stat2 = MyGame.Example.Stat.endStat(fbb);
170 MyGame.Example.Monster.startMonster(fbb);
171 MyGame.Example.Monster.addName(fbb, required);
172 MyGame.Example.Monster.addTestempty(fbb, stat2);
173 var mon2 = MyGame.Example.Monster.endMonster(fbb);
175 MyGame.Example.Stat.startStat(fbb);
177 …MyGame.Example.Stat.addVal(fbb, new flatbuffers.Long(0x87654321, 0x23456789)); // the low part …
178 var stat = MyGame.Example.Stat.endStat(fbb);
180 MyGame.Example.Monster.startMonster(fbb);
181 MyGame.Example.Monster.addName(fbb, required);
182 MyGame.Example.Monster.addEnemy(fbb, mon2);
183 MyGame.Example.Monster.addTestempty(fbb, stat);
184 var mon = MyGame.Example.Monster.endMonster(fbb);
186 MyGame.Example.Monster.finishMonsterBuffer(fbb, mon);
192 assert.ok(MyGame.Example.Monster.bufferHasIdentifier(bb));
193 var mon = MyGame.Example.Monster.getRootAsMonster(bb);
215 var monster = MyGame.Example.Monster.getRootAsMonster(bb);
237 MyGame.Example.Monster.startMonster(fbb);
238 MyGame.Example.Monster.addName(fbb, name);
239 return MyGame.Example.Monster.endMonster(fbb);
241 var testarrayoftablesOffset = MyGame.Example.Monster.createTestarrayoftablesVector(fbb,
243 var testarrayofstringOffset = MyGame.Example.Monster.createTestarrayofstringVector(fbb,
245 MyGame.Example.Monster.startMonster(fbb);
246 MyGame.Example.Monster.addTestarrayofstring(fbb, testarrayofstringOffset);
247 MyGame.Example.Monster.addTestarrayoftables(fbb, testarrayoftablesOffset);
248 MyGame.Example.Monster.addName(fbb, name);
249 MyGame.Example.Monster.finishMonsterBuffer(fbb, MyGame.Example.Monster.endMonster(fbb));