Lines Matching refs:MyGame
41 $sword = \MyGame\Sample\Weapon::CreateWeapon($builder, $weapon_one, 3);
43 $axe = \MyGame\Sample\Weapon::CreateWeapon($builder, $weapon_two, 5);
49 $inv = \MyGame\Sample\Monster::CreateInventoryVector($builder, $treasure);
52 $weapons = \MyGame\Sample\Monster::CreateWeaponsVector($builder, $weaps);
54 $pos = \MyGame\Sample\Vec3::CreateVec3($builder, 1.0, 2.0, 3.0);
56 \MyGame\Sample\Monster::StartMonster($builder);
57 \MyGame\Sample\Monster::AddPos($builder, $pos);
58 \MyGame\Sample\Monster::AddHp($builder, 300);
59 \MyGame\Sample\Monster::AddName($builder, $name);
60 \MyGame\Sample\Monster::AddInventory($builder, $inv);
61 \MyGame\Sample\Monster::AddColor($builder, \MyGame\Sample\Color::Red);
62 \MyGame\Sample\Monster::AddWeapons($builder, $weapons);
63 \MyGame\Sample\Monster::AddEquippedType($builder, \MyGame\Sample\Equipment::Weapon);
64 \MyGame\Sample\Monster::AddEquipped($builder, $weaps[1]);
65 $orc = \MyGame\Sample\Monster::EndMonster($builder);
78 $monster = \MyGame\Sample\Monster::GetRootAsMonster($buf);
86 $success &= assert($monster->getColor() == \MyGame\Sample\Color::Red);
105 $success &= assert($monster->getEquippedType() == \MyGame\Sample\Equipment::Weapon);
106 $success &= assert($monster->getEquipped(new \MyGame\Sample\Weapon())->getName() == "Axe");
107 $success &= assert($monster->getEquipped(new \MyGame\Sample\Weapon())->getDamage() == 5);