Lines Matching refs:MyGame
162 namespace MyGame.Sample;
202 the `Sample` namespace inside of the `MyGame` namespace.
375 using namespace MyGame::Sample; // Specified in the schema.
380 import MyGame.Sample.*; //The `flatc` generated files. (Monster, Vec3, etc.)
388 using MyGame.Sample; // The `flatc` generated files. (Monster, Vec3, etc.)
395 sample "MyGame/Sample"
404 import MyGame.Sample.Color
405 import MyGame.Sample.Equipment
406 import MyGame.Sample.Monster
407 import MyGame.Sample.Vec3
408 import MyGame.Sample.Weapon
416 var MyGame = require('./monster_generated').MyGame; // Generated by `flatc`.
429 import { MyGame } from './monster_generated';
442 join(DIRECTORY_SEPARATOR, array($root_dir, "samples", "MyGame", "Sample")));
479 local color = require("MyGame.Sample.Color")
480 local equipment = require("MyGame.Sample.Equipment")
481 local monster = require("MyGame.Sample.Monster")
482 local vec3 = require("MyGame.Sample.Vec3")
483 local weapon = require("MyGame.Sample.Weapon")
672 MyGame.Sample.Weapon.WeaponStart(builder)
673 MyGame.Sample.Weapon.WeaponAddName(builder, weapon_one)
674 MyGame.Sample.Weapon.WeaponAddDamage(builder, 3)
675 sword = MyGame.Sample.Weapon.WeaponEnd(builder)
678 MyGame.Sample.Weapon.WeaponStart(builder)
679 MyGame.Sample.Weapon.WeaponAddName(builder, weapon_two)
680 MyGame.Sample.Weapon.WeaponAddDamage(builder, 5)
681 axe = MyGame.Sample.Weapon.WeaponEnd(builder)
690 MyGame.Sample.Weapon.startWeapon(builder);
691 MyGame.Sample.Weapon.addName(builder, weaponOne);
692 MyGame.Sample.Weapon.addDamage(builder, 3);
693 var sword = MyGame.Sample.Weapon.endWeapon(builder);
696 MyGame.Sample.Weapon.startWeapon(builder);
697 MyGame.Sample.Weapon.addName(builder, weaponTwo);
698 MyGame.Sample.Weapon.addDamage(builder, 5);
699 var axe = MyGame.Sample.Weapon.endWeapon(builder);
708 MyGame.Sample.Weapon.startWeapon(builder);
709 MyGame.Sample.Weapon.addName(builder, weaponOne);
710 MyGame.Sample.Weapon.addDamage(builder, 3);
711 let sword = MyGame.Sample.Weapon.endWeapon(builder);
714 MyGame.Sample.Weapon.startWeapon(builder);
715 MyGame.Sample.Weapon.addName(builder, weaponTwo);
716 MyGame.Sample.Weapon.addDamage(builder, 5);
717 let axe = MyGame.Sample.Weapon.endWeapon(builder);
724 $sword = \MyGame\Sample\Weapon::CreateWeapon($builder, $weapon_one_name, 3);
727 $axe = \MyGame\Sample\Weapon::CreateWeapon($builder, $weapon_two_name, 5);
732 $weapons = \MyGame\Sample\Monster::CreateWeaponsVector($builder, $weaps);
915 MyGame.Sample.Monster.MonsterStartInventoryVector(builder, 10)
929 var inv = MyGame.Sample.Monster.createInventoryVector(builder, treasure);
940 let inv = MyGame.Sample.Monster.createInventoryVector(builder, treasure);
951 $inv = \MyGame\Sample\Monster::CreateInventoryVector($builder, $treasure);
1085 MyGame.Sample.Monster.MonsterStartWeaponsVector(builder, 2)
1096 var weapons = MyGame.Sample.Monster.createWeaponsVector(builder, weaps);
1104 let weapons = MyGame.Sample.Monster.createWeaponsVector(builder, weaps);
1112 $weapons = \MyGame\Sample\Monster::CreateWeaponsVector($builder, $weaps);
1199 MyGame.Sample.Monster.MonsterStartPathVector(builder, 2)
1200 MyGame.Sample.Vec3.CreateVec3(builder, 1.0, 2.0, 3.0)
1201 MyGame.Sample.Vec3.CreateVec3(builder, 4.0, 5.0, 6.0)
1207 MyGame.Sample.Monster.startPathVector(builder, 2);
1208 MyGame.Sample.Vec3.createVec3(builder, 1.0, 2.0, 3.0);
1209 MyGame.Sample.Vec3.createVec3(builder, 4.0, 5.0, 6.0);
1215 MyGame.Sample.Monster.startPathVector(builder, 2);
1216 MyGame.Sample.Vec3.createVec3(builder, 1.0, 2.0, 3.0);
1217 MyGame.Sample.Vec3.createVec3(builder, 4.0, 5.0, 6.0);
1223 \MyGame\Example\Monster::StartPathVector($builder, 2);
1224 \MyGame\Sample\Vec3::CreateVec3($builder, 1.0, 2.0, 3.0);
1225 \MyGame\Sample\Vec3::CreateVec3($builder, 1.0, 2.0, 3.0);
1354 MyGame.Sample.Monster.MonsterStart(builder)
1355 MyGame.Sample.Monster.MonsterAddPos(builder,
1356 MyGame.Sample.Vec3.CreateVec3(builder, 1.0, 2.0, 3.0))
1357 MyGame.Sample.Monster.MonsterAddHp(builder, 300)
1358 MyGame.Sample.Monster.MonsterAddName(builder, name)
1359 MyGame.Sample.Monster.MonsterAddInventory(builder, inv)
1360 MyGame.Sample.Monster.MonsterAddColor(builder,
1361 MyGame.Sample.Color.Color().Red)
1362 MyGame.Sample.Monster.MonsterAddWeapons(builder, weapons)
1363 MyGame.Sample.Monster.MonsterAddEquippedType(
1364 builder, MyGame.Sample.Equipment.Equipment().Weapon)
1365 MyGame.Sample.Monster.MonsterAddEquipped(builder, axe)
1366 MyGame.Sample.Monster.MonsterAddPath(builder, path)
1367 orc = MyGame.Sample.Monster.MonsterEnd(builder)
1373 MyGame.Sample.Monster.startMonster(builder);
1374 MyGame.Sample.Monster.addPos(builder,
1375 MyGame.Sample.Vec3.createVec3(builder, 1.0, 2.0, 3.0));
1376 MyGame.Sample.Monster.addHp(builder, 300);
1377 MyGame.Sample.Monster.addColor(builder, MyGame.Sample.Color.Red)
1378 MyGame.Sample.Monster.addName(builder, name);
1379 MyGame.Sample.Monster.addInventory(builder, inv);
1380 MyGame.Sample.Monster.addWeapons(builder, weapons);
1381 MyGame.Sample.Monster.addEquippedType(builder, MyGame.Sample.Equipment.Weapon);
1382 MyGame.Sample.Monster.addEquipped(builder, axe);
1383 MyGame.Sample.Monster.addPath(builder, path);
1384 var orc = MyGame.Sample.Monster.endMonster(builder);
1390 MyGame.Sample.Monster.startMonster(builder);
1391 MyGame.Sample.Monster.addPos(builder,
1392 MyGame.Sample.Vec3.createVec3(builder, 1.0, 2.0, 3.0));
1393 MyGame.Sample.Monster.addHp(builder, 300);
1394 MyGame.Sample.Monster.addColor(builder, MyGame.Sample.Color.Red)
1395 MyGame.Sample.Monster.addName(builder, name);
1396 MyGame.Sample.Monster.addInventory(builder, inv);
1397 MyGame.Sample.Monster.addWeapons(builder, weapons);
1398 MyGame.Sample.Monster.addEquippedType(builder, MyGame.Sample.Equipment.Weapon);
1399 MyGame.Sample.Monster.addEquipped(builder, axe);
1400 MyGame.Sample.Monster.addPath(builder, path);
1401 let orc = MyGame.Sample.Monster.endMonster(builder);
1407 \MyGame\Sample\Monster::StartMonster($builder);
1408 \MyGame\Sample\Monster::AddPos($builder,
1409 \MyGame\Sample\Vec3::CreateVec3($builder, 1.0, 2.0, 3.0));
1410 \MyGame\Sample\Monster::AddHp($builder, 300);
1411 \MyGame\Sample\Monster::AddName($builder, $name);
1412 \MyGame\Sample\Monster::AddInventory($builder, $inv);
1413 \MyGame\Sample\Monster::AddColor($builder, \MyGame\Sample\Color::Red);
1414 \MyGame\Sample\Monster::AddWeapons($builder, $weapons);
1415 \MyGame\Sample\Monster::AddEquippedType($builder, \MyGame\Sample\Equipment::Weapon);
1416 \MyGame\Sample\Monster::AddEquipped($builder, $axe);
1417 \MyGame\Sample\Monster::AddPath($builder, $path);
1418 $orc = \MyGame\Sample\Monster::EndMonster($builder);
1641 MyGame.Sample.Monster.MonsterAddEquippedType( # Union type
1642 builder, MyGame.Sample.Equipment.Equipment().Weapon)
1643 MyGame.Sample.Monster.MonsterAddEquipped(builder, axe) # Union data
1648 MyGame.Sample.Monster.addEquippedType(builder, MyGame.Sample.Equipment.Weapon); // Union type
1649 MyGame.Sample.Monster.addEquipped(builder, axe); // Union data
1654 MyGame.Sample.Monster.addEquippedType(builder, MyGame.Sample.Equipment.Weapon); // Union type
1655 MyGame.Sample.Monster.addEquipped(builder, axe); // Union data
1660 … \MyGame\Sample\Monster::AddEquippedType($builder, \MyGame\Sample\Equipment::Weapon); // Union type
1661 \MyGame\Sample\Monster::AddEquipped($builder, $axe); // Union data
1743 builder.finish(orc); // You could also call `MyGame.Sample.Monster.finishMonsterBuffer(builder,
1750 builder.finish(orc); // You could also call `MyGame.Sample.Monster.finishMonsterBuffer(builder,
1757 $builder->finish($orc); // You may also call `\MyGame\Sample\Monster::FinishMonsterBuffer(
1926 using namespace MyGame::Sample; // Specified in the schema.
1931 import MyGame.Sample.*; //The `flatc` generated files. (Monster, Vec3, etc.)
1939 using MyGame.Sample; // The `flatc` generated files. (Monster, Vec3, etc.)
1946 sample "MyGame/Sample"
1955 import MyGame.Sample.Any
1956 import MyGame.Sample.Color
1957 import MyGame.Sample.Monster
1958 import MyGame.Sample.Vec3
1966 var MyGame = require('./monster_generated').MyGame; // Generated by `flatc`.
1980 import { MyGame } from './monster_generated';
1994 join(DIRECTORY_SEPARATOR, array($root_dir, "samples", "MyGame", "Sample")));
2026 local color = require("MyGame.Sample.Color")
2027 local equipment = require("MyGame.Sample.Equipment")
2028 local monster = require("MyGame.Sample.Monster")
2029 local vec3 = require("MyGame.Sample.Vec3")
2030 local weapon = require("MyGame.Sample.Weapon")
2110 monster = MyGame.Sample.Monster.Monster.GetRootAsMonster(buf, 0)
2124 var monster = MyGame.Sample.Monster.getRootAsMonster(buf);
2133 let monster = MyGame.Sample.Monster.getRootAsMonster(buf);
2142 $monster = \MyGame\Sample\Monster::GetRootAsMonster($buf);
2677 if union_type == MyGame.Sample.Equipment.Equipment().Weapon:
2679 # initialize a `MyGame.Sample.Weapon.Weapon()`.
2680 union_weapon = MyGame.Sample.Weapon.Weapon()
2691 if (unionType == MyGame.Sample.Equipment.Weapon) {
2692 var weapon_name = monster.equipped(new MyGame.Sample.Weapon()).name(); // 'Axe'
2693 var weapon_damage = monster.equipped(new MyGame.Sample.Weapon()).damage(); // 5
2701 if (unionType == MyGame.Sample.Equipment.Weapon) {
2702 let weapon_name = monster.equipped(new MyGame.Sample.Weapon()).name(); // 'Axe'
2703 let weapon_damage = monster.equipped(new MyGame.Sample.Weapon()).damage(); // 5
2711 if ($union_type == \MyGame\Sample\Equipment::Weapon) {
2712 $weapon_name = $monster->getEquipped(new \MyGame\Sample\Weapon())->getName(); // "Axe"
2713 $weapon_damage = $monster->getEquipped(new \MyGame\Sample\Weapon())->getDamage(); // 5