OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:axe
(Results
1 - 5
of
5
) sorted by null
/external/flatbuffers/samples/
sample_binary.cpp
27
// First, lets serialize some weapons for the Monster: A 'sword' and an '
axe
'.
31
auto weapon_two_name = builder.CreateString("
Axe
");
36
auto
axe
= CreateWeapon(builder, weapon_two_name, weapon_two_damage);
local
41
weapons_vector.push_back(
axe
);
54
Color_Red, weapons, Equipment_Weapon,
axe
.Union());
86
std::string expected_weapon_names[] = {"Sword", "
Axe
"};
99
assert(equipped->name()->str() == "
Axe
");
sample_binary.go
32
// Create some weapons for our Monster ("Sword" and "
Axe
").
34
weaponTwo := builder.CreateString("
Axe
")
44
axe
:= sample.WeaponEnd(builder)
58
builder.PrependUOffsetT(
axe
)
72
sample.MonsterAddEquipped(builder,
axe
)
120
expectedWeaponNames := []string{"Sword", "
Axe
"}
149
assert(string(unionWeapon.Name()) == "
Axe
", "`unionWeapon.Name()`",
150
string(unionWeapon.Name()), "
Axe
")
sample_binary.py
37
# Create some weapons for our Monster ('Sword' and '
Axe
').
39
weapon_two = builder.CreateString('
Axe
')
49
axe
= MyGame.Sample.Weapon.WeaponEnd(builder)
62
builder.PrependUOffsetTRelative(
axe
)
78
MyGame.Sample.Monster.MonsterAddEquipped(builder,
axe
)
113
expected_weapon_names = ['Sword', '
Axe
']
131
assert union_weapon.Name() == "
Axe
"
SampleBinary.php
42
$weapon_two = $builder->createString("
Axe
");
43
$
axe
= \MyGame\Sample\Weapon::CreateWeapon($builder, $weapon_two, 5);
variable
51
$weaps = array($sword, $
axe
);
97
$expected_weapon_names = array("Sword", "
Axe
");
106
$success &= assert($monster->getEquipped(new \MyGame\Sample\Weapon())->getName() == "
Axe
");
samplebinary.js
27
// Create some weapons for our Monster ('Sword' and '
Axe
').
29
var weaponTwo = builder.createString('
Axe
');
39
var
axe
= MyGame.Sample.Weapon.endWeapon(builder);
47
var weaps = [sword,
axe
];
91
var expectedWeaponNames = ['Sword', '
Axe
'];
100
assert.equal(monster.equipped(new MyGame.Sample.Weapon()).name(), '
Axe
');
Completed in 639 milliseconds