Home | History | Annotate | Download | only in tests

Lines Matching refs:Example

13 MyGame.Example = MyGame.Example || {};
30 MyGame.Example.Color = {
39 MyGame.Example.Any = {
100 MyGame.Example.Test = function() {
115 * @returns {MyGame.Example.Test}
117 MyGame.Example.Test.prototype.__init = function(i, bb) {
126 MyGame.Example.Test.prototype.a = function() {
134 MyGame.Example.Test.prototype.mutate_a = function(value) {
148 MyGame.Example.Test.prototype.b = function() {
156 MyGame.Example.Test.prototype.mutate_b = function(value) {
173 MyGame.Example.Test.createTest = function(builder, a, b) {
184 MyGame.Example.TestSimpleTableWithEnum = function() {
199 * @returns {MyGame.Example.TestSimpleTableWithEnum}
201 MyGame.Example.TestSimpleTableWithEnum.prototype.__init = function(i, bb) {
209 * @param {MyGame.Example.TestSimpleTableWithEnum=} obj
210 * @returns {MyGame.Example.TestSimpleTableWithEnum}
212 MyGame.Example.TestSimpleTableWithEnum.getRootAsTestSimpleTableWithEnum = function(bb, obj) {
213 return (obj || new MyGame.Example.TestSimpleTableWithEnum).__init(bb.readInt32(bb.position()) + bb.position(), bb);
217 * @returns {MyGame.Example.Color}
219 MyGame.Example.TestSimpleTableWithEnum.prototype.color = function() {
221 return offset ? /** @type {MyGame.Example.Color} */ (this.bb.readInt8(this.bb_pos + offset)) : MyGame.Example.Color.Green;
225 * @param {MyGame.Example.Color} value
228 MyGame.Example.TestSimpleTableWithEnum.prototype.mutate_color = function(value) {
242 MyGame.Example.TestSimpleTableWithEnum.startTestSimpleTableWithEnum = function(builder) {
248 * @param {MyGame.Example.Color} color
250 MyGame.Example.TestSimpleTableWithEnum.addColor = function(builder, color) {
251 builder.addFieldInt8(0, color, MyGame.Example.Color.Green);
258 MyGame.Example.TestSimpleTableWithEnum.endTestSimpleTableWithEnum = function(builder) {
266 MyGame.Example.Vec3 = function() {
281 * @returns {MyGame.Example.Vec3}
283 MyGame.Example.Vec3.prototype.__init = function(i, bb) {
292 MyGame.Example.Vec3.prototype.x = function() {
300 MyGame.Example.Vec3.prototype.mutate_x = function(value) {
314 MyGame.Example.Vec3.prototype.y = function() {
322 MyGame.Example.Vec3.prototype.mutate_y = function(value) {
336 MyGame.Example.Vec3.prototype.z = function() {
344 MyGame.Example.Vec3.prototype.mutate_z = function(value) {
358 MyGame.Example.Vec3.prototype.test1 = function() {
366 MyGame.Example.Vec3.prototype.mutate_test1 = function(value) {
378 * @returns {MyGame.Example.Color}
380 MyGame.Example.Vec3.prototype.test2 = function() {
381 return /** @type {MyGame.Example.Color} */ (this.bb.readInt8(this.bb_pos + 24));
385 * @param {MyGame.Example.Color} value
388 MyGame.Example.Vec3.prototype.mutate_test2 = function(value) {
400 * @param {MyGame.Example.Test=} obj
401 * @returns {MyGame.Example.Test}
403 MyGame.Example.Vec3.prototype.test3 = function(obj) {
404 return (obj || new MyGame.Example.Test).__init(this.bb_pos + 26, this.bb);
413 * @param {MyGame.Example.Color} test2
418 MyGame.Example.Vec3.createVec3 = function(builder, x, y, z, test1, test2, test3_a, test3_b) {
438 MyGame.Example.Stat = function() {
453 * @returns {MyGame.Example.Stat}
455 MyGame.Example.Stat.prototype.__init = function(i, bb) {
463 * @param {MyGame.Example.Stat=} obj
464 * @returns {MyGame.Example.Stat}
466 MyGame.Example.Stat.getRootAsStat = function(bb, obj) {
467 return (obj || new MyGame.Example.Stat).__init(bb.readInt32(bb.position()) + bb.position(), bb);
474 MyGame.Example.Stat.prototype.id = function(optionalEncoding) {
482 MyGame.Example.Stat.prototype.val = function() {
491 MyGame.Example.Stat.prototype.mutate_val = function(value) {
505 MyGame.Example.Stat.prototype.count = function() {
514 MyGame.Example.Stat.prototype.mutate_count = function(value) {
528 MyGame.Example.Stat.startStat = function(builder) {
536 MyGame.Example.Stat.addId = function(builder, idOffset) {
544 MyGame.Example.Stat.addVal = function(builder, val) {
552 MyGame.Example.Stat.addCount = function(builder, count) {
560 MyGame.Example.Stat.endStat = function(builder) {
566 * an example documentation comment: monster object
570 MyGame.Example.Monster = function() {
585 * @returns {MyGame.Example.Monster}
587 MyGame.Example.Monster.prototype.__init = function(i, bb) {
595 * @param {MyGame.Example.Monster=} obj
596 * @returns {MyGame.Example.Monster}
598 MyGame.Example.Monster.getRootAsMonster = function(bb, obj) {
599 return (obj || new MyGame.Example.Monster).__init(bb.readInt32(bb.position()) + bb.position(), bb);
606 MyGame.Example.Monster.bufferHasIdentifier = function(bb) {
611 * @param {MyGame.Example.Vec3=} obj
612 * @returns {MyGame.Example.Vec3}
614 MyGame.Example.Monster.prototype.pos = function(obj) {
616 return offset ? (obj || new MyGame.Example.Vec3).__init(this.bb_pos + offset, this.bb) : null;
622 MyGame.Example.Monster.prototype.mana = function() {
631 MyGame.Example.Monster.prototype.mutate_mana = function(value) {
645 MyGame.Example.Monster.prototype.hp = function() {
654 MyGame.Example.Monster.prototype.mutate_hp = function(value) {
669 MyGame.Example.Monster.prototype.name = function(optionalEncoding) {
678 MyGame.Example.Monster.prototype.inventory = function(index) {
686 MyGame.Example.Monster.prototype.inventoryLength = function() {
694 MyGame.Example.Monster.prototype.inventoryArray = function() {
700 * @returns {MyGame.Example.Color}
702 MyGame.Example.Monster.prototype.color = function() {
704 return offset ? /** @type {MyGame.Example.Color} */ (this.bb.readInt8(this.bb_pos + offset)) : MyGame.Example.Color.Blue;
708 * @param {MyGame.Example.Color} value
711 MyGame.Example.Monster.prototype.mutate_color = function(value) {
723 * @returns {MyGame.Example.Any}
725 MyGame.Example.Monster.prototype.testType = function() {
727 return offset ? /** @type {MyGame.Example.Any} */ (this.bb.readUint8(this.bb_pos + offset)) : MyGame.Example.Any.NONE;
731 * @param {MyGame.Example.Any} value
734 MyGame.Example.Monster.prototype.mutate_test_type = function(value) {
749 MyGame.Example.Monster.prototype.test = function(obj) {
756 * @param {MyGame.Example.Test=} obj
757 * @returns {MyGame.Example.Test}
759 MyGame.Example.Monster.prototype.test4 = function(index, obj) {
761 return offset ? (obj || new MyGame.Example
767 MyGame.Example.Monster.prototype.test4Length = function() {
777 MyGame.Example.Monster.prototype.testarrayofstring = function(index, optionalEncoding) {
785 MyGame.Example.Monster.prototype.testarrayofstringLength = function() {
791 * an example documentation comment: this will end up in the generated code
795 * @param {MyGame.Example.Monster=} obj
796 * @returns {MyGame.Example.Monster}
798 MyGame.Example.Monster.prototype.testarrayoftables = function(index, obj) {
800 return offset ? (obj || new MyGame.Example.Monster).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
806 MyGame.Example.Monster.prototype.testarrayoftablesLength = function() {
812 * @param {MyGame.Example.Monster=} obj
813 * @returns {MyGame.Example.Monster}
815 MyGame.Example.Monster.prototype.enemy = function(obj) {
817 return offset ? (obj || new MyGame.Example.Monster).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
824 MyGame.Example.Monster.prototype.testnestedflatbuffer = function(index) {
832 MyGame.Example.Monster.prototype.testnestedflatbufferLength = function() {
840 MyGame.Example.Monster.prototype.testnestedflatbufferArray = function() {
846 * @param {MyGame.Example.Stat=} obj
847 * @returns {MyGame.Example.Stat}
849 MyGame.Example.Monster.prototype.testempty = function(obj) {
851 return offset ? (obj || new MyGame.Example.Stat).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
857 MyGame.Example.Monster.prototype.testbool = function() {
866 MyGame.Example.Monster.prototype.mutate_testbool = function(value) {
880 MyGame.Example.Monster.prototype.testhashs32Fnv1 = function() {
889 MyGame.Example.Monster.prototype.mutate_testhashs32_fnv1 = function(value) {
903 MyGame.Example.Monster.prototype.testhashu32Fnv1 = function() {
912 MyGame.Example.Monster.prototype.mutate_testhashu32_fnv1 = function(value) {
926 MyGame.Example.Monster.prototype.testhashs64Fnv1 = function() {
935 MyGame.Example.Monster.prototype.mutate_testhashs64_fnv1 = function(value) {
949 MyGame.Example.Monster.prototype.testhashu64Fnv1 = function() {
958 MyGame.Example.Monster.prototype.mutate_testhashu64_fnv1 = function(value) {
972 MyGame.Example.Monster.prototype.testhashs32Fnv1a = function() {
981 MyGame.Example.Monster.prototype.mutate_testhashs32_fnv1a = function(value) {
995 MyGame.Example.Monster.prototype.testhashu32Fnv1a = function() {
1004 MyGame.Example.Monster.prototype.mutate_testhashu32_fnv1a = function(value) {
1018 MyGame.Example.Monster.prototype.testhashs64Fnv1a = function() {
1027 MyGame.Example.Monster.prototype.mutate_testhashs64_fnv1a = function(value) {
1041 MyGame.Example.Monster.prototype.testhashu64Fnv1a = function() {
1050 MyGame.Example.Monster.prototype.mutate_testhashu64_fnv1a = function(value) {
1065 MyGame.Example.Monster.prototype.testarrayofbools = function(index) {
1073 MyGame.Example.Monster.prototype.testarrayofboolsLength = function() {
1081 MyGame.Example.Monster.prototype.testarrayofboolsArray = function() {
1089 MyGame.Example.Monster.prototype.testf = function() {
1098 MyGame.Example.Monster.prototype.mutate_testf = function(value) {
1112 MyGame.Example.Monster.prototype.testf2 = function() {
1121 MyGame.Example.Monster.prototype.mutate_testf2 = function(value) {
1135 MyGame.Example.Monster.prototype.testf3 = function() {
1144 MyGame.Example.Monster.prototype.mutate_testf3 = function(value) {
1160 MyGame.Example.Monster.prototype.testarrayofstring2 = function(index, optionalEncoding) {
1168 MyGame.Example.Monster.prototype.testarrayofstring2Length = function() {
1176 MyGame.Example.Monster.startMonster = function(builder) {
1184 MyGame.Example.Monster.addPos = function(builder, posOffset) {
1192 MyGame.Example.Monster.addMana = function(builder, mana) {
1200 MyGame.Example.Monster.addHp = function(builder, hp) {
1208 MyGame.Example.Monster.addName = function(builder, nameOffset) {
1216 MyGame.Example.Monster.addInventory = function(builder, inventoryOffset) {
1225 MyGame.Example.Monster.createInventoryVector = function(builder, data) {
1237 MyGame.Example.Monster.startInventoryVector = function(builder, numElems) {
1243 * @param {MyGame.Example.Color} color
1245 MyGame.Example.Monster.addColor = function(builder, color) {
1246 builder.addFieldInt8(6, color, MyGame.Example.Color.Blue);
1251 * @param {MyGame.Example.Any} testType
1253 MyGame.Example.Monster.addTestType = function(builder, testType) {
1254 builder.addFieldInt8(7, testType, MyGame.Example.Any.NONE);
1261 MyGame.Example.Monster.addTest = function(builder, testOffset) {
1269 MyGame.Example.Monster.addTest4 = function(builder, test4Offset) {
1277 MyGame.Example.Monster.startTest4Vector = function(builder, numElems) {
1285 MyGame.Example.Monster.addTestarrayofstring = function(builder, testarrayofstringOffset) {
1294 MyGame.Example.Monster.createTestarrayofstringVector = function(builder, data) {
1306 MyGame.Example.Monster.startTestarrayofstringVector = function(builder, numElems) {
1314 MyGame.Example.Monster.addTestarrayoftables = function(builder, testarrayoftablesOffset) {
1323 MyGame.Example.Monster.createTestarrayoftablesVector = function(builder, data) {
1335 MyGame.Example.Monster.startTestarrayoftablesVector = function(builder, numElems) {
1343 MyGame.Example.Monster.addEnemy = function(builder, enemyOffset) {
1351 MyGame.Example.Monster.addTestnestedflatbuffer = function(builder, testnestedflatbufferOffset) {
1360 MyGame.Example.Monster.createTestnestedflatbufferVector = function(builder, data) {
1372 MyGame.Example.Monster.startTestnestedflatbufferVector = function(builder, numElems) {
1380 MyGame.Example.Monster.addTestempty = function(builder, testemptyOffset) {
1388 MyGame.Example
1396 MyGame.Example.Monster.addTesthashs32Fnv1 = function(builder, testhashs32Fnv1) {
1404 MyGame.Example.Monster.addTesthashu32Fnv1 = function(builder, testhashu32Fnv1) {
1412 MyGame.Example.Monster.addTesthashs64Fnv1 = function(builder, testhashs64Fnv1) {
1420 MyGame.Example.Monster.addTesthashu64Fnv1 = function(builder, testhashu64Fnv1) {
1428 MyGame.Example.Monster.addTesthashs32Fnv1a = function(builder, testhashs32Fnv1a) {
1436 MyGame.Example.Monster.addTesthashu32Fnv1a = function(builder, testhashu32Fnv1a) {
1444 MyGame.Example.Monster.addTesthashs64Fnv1a = function(builder, testhashs64Fnv1a) {
1452 MyGame.Example.Monster.addTesthashu64Fnv1a = function(builder, testhashu64Fnv1a) {
1460 MyGame.Example.Monster.addTestarrayofbools = function(builder, testarrayofboolsOffset) {
1469 MyGame.Example.Monster.createTestarrayofboolsVector = function(builder, data) {
1481 MyGame.Example.Monster.startTestarrayofboolsVector = function(builder, numElems) {
1489 MyGame.Example.Monster.addTestf = function(builder, testf) {
1497 MyGame.Example.Monster.addTestf2 = function(builder, testf2) {
1505 MyGame.Example.Monster.addTestf3 = function(builder, testf3) {
1513 MyGame.Example.Monster.addTestarrayofstring2 = function(builder, testarrayofstring2Offset) {
1522 MyGame.Example.Monster.createTestarrayofstring2Vector = function(builder, data) {
1534 MyGame.Example.Monster.startTestarrayofstring2Vector = function(builder, numElems) {
1542 MyGame.Example.Monster.endMonster = function(builder) {
1552 MyGame.Example.Monster.finishMonsterBuffer = function(builder, offset) {