Home
last modified time | relevance | path

Searched refs:Monster (Results 1 – 25 of 82) sorted by relevance

1234

/external/flatbuffers/tests/
DJavaTest.java85 TestEq(Any.name(Any.Monster), "Monster"); in TestEnums()
89 TestEq(Monster.MonsterBufferHasIdentifier(bb), true); in TestBuffer()
91 Monster monster = Monster.getRootAsMonster(bb); in TestBuffer()
109 TestEq(monster.testType(), (byte)Any.Monster); in TestBuffer()
110 Monster monster2 = new Monster(); in TestBuffer()
144 Monster monster = Monster.getRootAsMonster(bb); in TestExtendedBuffer()
169 Monster.startMonster(fbb1); in TestNestedFlatBuffer()
170 Monster.addName(fbb1, str1); in TestNestedFlatBuffer()
171 Monster.addHp(fbb1, nestedMonsterHp); in TestNestedFlatBuffer()
172 Monster.addMana(fbb1, nestedMonsterMana); in TestNestedFlatBuffer()
[all …]
Dmonster_test_generated.js41 Monster: 1, 1: 'Monster', property
129 MyGame.Example2.Monster = function() { class in MyGame.Example2
146 MyGame.Example2.Monster.prototype.__init = function(i, bb) {
157 MyGame.Example2.Monster.getRootAsMonster = function(bb, obj) {
158 …return (obj || new MyGame.Example2.Monster).__init(bb.readInt32(bb.position()) + bb.position(), bb…
164 MyGame.Example2.Monster.startMonster = function(builder) {
172 MyGame.Example2.Monster.endMonster = function(builder) {
181 MyGame.Example2.Monster.createMonster = function(builder) {
182 MyGame.Example2.Monster.startMonster(builder);
183 return MyGame.Example2.Monster.endMonster(builder);
[all …]
Dmonster_test.grpc.fb.h38 …s Store(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Monster>& request, flatbu…
39 …ncStore(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Monster>& request, ::grpc… in AsyncStore()
42 …ncStore(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Monster>& request, ::grpc… in PrepareAsyncStore()
45 …std::unique_ptr< ::grpc::ClientReaderInterface< flatbuffers::grpc::Message<Monster>>> Retrieve(::g… in Retrieve()
46 …return std::unique_ptr< ::grpc::ClientReaderInterface< flatbuffers::grpc::Message<Monster>>>(Retri… in Retrieve()
48 …std::unique_ptr< ::grpc::ClientAsyncReaderInterface< flatbuffers::grpc::Message<Monster>>> AsyncRe… in AsyncRetrieve()
49 …ique_ptr< ::grpc::ClientAsyncReaderInterface< flatbuffers::grpc::Message<Monster>>>(AsyncRetrieveR… in AsyncRetrieve()
51 …std::unique_ptr< ::grpc::ClientAsyncReaderInterface< flatbuffers::grpc::Message<Monster>>> Prepare… in PrepareAsyncRetrieve()
52 …ique_ptr< ::grpc::ClientAsyncReaderInterface< flatbuffers::grpc::Message<Monster>>>(PrepareAsyncRe… in PrepareAsyncRetrieve()
54 …std::unique_ptr< ::grpc::ClientWriterInterface< flatbuffers::grpc::Message<Monster>>> GetMaxHitPoi… in GetMaxHitPoint()
[all …]
DJavaScriptTest.js50 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);
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);
[all …]
Dmonster_test.grpc.fb.cc38 …::Store(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Monster>& request, flatbu… in Store()
42 …toreRaw(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Monster>& request, ::grpc… in AsyncStoreRaw()
46 …toreRaw(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Monster>& request, ::grpc… in PrepareAsyncStoreRaw()
50 ::grpc::ClientReader< flatbuffers::grpc::Message<Monster>>* MonsterStorage::Stub::RetrieveRaw(::grp… in RetrieveRaw()
51 …return ::grpc::internal::ClientReaderFactory< flatbuffers::grpc::Message<Monster>>::Create(channel… in RetrieveRaw()
54 ::grpc::ClientAsyncReader< flatbuffers::grpc::Message<Monster>>* MonsterStorage::Stub::AsyncRetriev… in AsyncRetrieveRaw()
55 …return ::grpc::internal::ClientAsyncReaderFactory< flatbuffers::grpc::Message<Monster>>::Create(ch… in AsyncRetrieveRaw()
58 ::grpc::ClientAsyncReader< flatbuffers::grpc::Message<Monster>>* MonsterStorage::Stub::PrepareAsync… in PrepareAsyncRetrieveRaw()
59 …return ::grpc::internal::ClientAsyncReaderFactory< flatbuffers::grpc::Message<Monster>>::Create(ch… in PrepareAsyncRetrieveRaw()
62 ::grpc::ClientWriter< flatbuffers::grpc::Message<Monster>>* MonsterStorage::Stub::GetMaxHitPointRaw… in GetMaxHitPointRaw()
[all …]
Dmonster_test_generated.rs99 pub struct Monster<'a> { struct
103 impl<'a> flatbuffers::Follow<'a> for Monster<'a> { implementation
104 type Inner = Monster<'a>;
113 impl<'a> Monster<'a> { impl
116 Monster { in init_from_table()
123 _args: &'args MonsterArgs) -> flatbuffers::WIPOffset<Monster<'bldr>> { in create()
153 pub fn finish(self) -> flatbuffers::WIPOffset<Monster<'a>> { in finish()
244 Monster = 1, enumerator
287 Any::Monster,
927 pub struct Monster<'a> { struct
[all …]
Dpy_test.py39 import MyGame.Example.Monster # refers to generated code
95 monster = MyGame.Example.Monster.Monster.GetRootAsMonster(buf, offset)
123 asserter(monster.TestType() == union_type.Monster)
130 monster2 = MyGame.Example.Monster.Monster()
1091 MyGame.Example.Monster.MonsterStartInventoryVector(b, 5)
1099 MyGame.Example.Monster.MonsterStart(b)
1100 MyGame.Example.Monster.MonsterAddName(b, fred)
1101 mon2 = MyGame.Example.Monster.MonsterEnd(b)
1103 MyGame.Example.Monster.MonsterStartTest4Vector(b, 2)
1108 MyGame.Example.Monster.MonsterStartTestarrayofstringVector(b, 2)
[all …]
Dmonster_test.fbs11 table Monster {} // Test having same name as below, but in different namespace.
19 union Any { Monster, TestSimpleTableWithEnum, MyGame.Example2.Monster }
21 union AnyUniqueAliases { M: Monster, T: TestSimpleTableWithEnum, M2: MyGame.Example2.Monster }
22 union AnyAmbiguousAliases { M1: Monster, M2: Monster, M3: Monster }
55 table Monster {
65 testarrayoftables:[Monster] (id: 11);
70 enemy:MyGame.Example.Monster (id:12); // Test referring by full namespace.
74 testnestedflatbuffer:[ubyte] (id:13, nested_flatbuffer: "Monster");
121 Store(Monster):Stat (streaming: "none");
122 Retrieve(Stat):Monster (streaming: "server", idempotent);
[all …]
DphpTest.php34 \MyGame\Example\Monster::startMonster($fbb);
35 \MyGame\Example\Monster::addName($fbb, $name);
36 $enemy = \MyGame\Example\Monster::endMonster($fbb);
38 $inv = \MyGame\Example\Monster::CreateInventoryVector($fbb, array(0, 1, 2, 3, 4));
41 \MyGame\Example\Monster::StartMonster($fbb);
42 \MyGame\Example\Monster::AddName($fbb, $fred);
43 $mon2 = \MyGame\Example\Monster::EndMonster($fbb);
45 \MyGame\Example\Monster::StartTest4Vector($fbb, 2);
50 $testArrayOfString = \MyGame\Example\Monster::CreateTestarrayofstringVector($fbb, array(
55 \MyGame\Example\Monster::StartMonster($fbb);
[all …]
/external/flatbuffers/tests/FlatBuffers.Test/
DFlatBuffersExampleTests.cs49 Offset<Monster>[] off = new Offset<Monster>[3]; in CanCreateNewFlatBufferFromScratch()
50 Monster.StartMonster(fbb); in CanCreateNewFlatBufferFromScratch()
51 Monster.AddName(fbb, names[0]); in CanCreateNewFlatBufferFromScratch()
52 off[0] = Monster.EndMonster(fbb); in CanCreateNewFlatBufferFromScratch()
53 Monster.StartMonster(fbb); in CanCreateNewFlatBufferFromScratch()
54 Monster.AddName(fbb, names[1]); in CanCreateNewFlatBufferFromScratch()
55 off[1] = Monster.EndMonster(fbb); in CanCreateNewFlatBufferFromScratch()
56 Monster.StartMonster(fbb); in CanCreateNewFlatBufferFromScratch()
57 Monster.AddName(fbb, names[2]); in CanCreateNewFlatBufferFromScratch()
58 off[2] = Monster.EndMonster(fbb); in CanCreateNewFlatBufferFromScratch()
[all …]
/external/flatbuffers/tests/FlatBuffers.Benchmarks/
DFlatBufferBuilderBenchmark.cs40 Monster.StartMonster(fbb1); in BuildNestedMonster()
41 Monster.AddName(fbb1, str1); in BuildNestedMonster()
42 Monster.AddHp(fbb1, nestedMonsterHp); in BuildNestedMonster()
43 Monster.AddMana(fbb1, nestedMonsterMana); in BuildNestedMonster()
44 var monster1 = Monster.EndMonster(fbb1); in BuildNestedMonster()
45 Monster.FinishMonsterBuffer(fbb1, monster1); in BuildNestedMonster()
52 var nestedBuffer = Monster.CreateTestnestedflatbufferVector(fbb2, fbb1Bytes); in BuildNestedMonster()
53 Monster.StartMonster(fbb2); in BuildNestedMonster()
54 Monster.AddName(fbb2, str2); in BuildNestedMonster()
55 Monster.AddHp(fbb2, 50); in BuildNestedMonster()
[all …]
/external/flatbuffers/grpc/tests/
DGameFactory.java2 import MyGame.Example.Monster;
7 …public static Monster createMonster(String monsterName, short nestedMonsterHp, short nestedMonster… in createMonster()
11 Monster.startMonster(builder); in createMonster()
12 Monster.addName(builder, name_offset); in createMonster()
13 Monster.addHp(builder, nestedMonsterHp); in createMonster()
14 Monster.addMana(builder, nestedMonsterMana); in createMonster()
15 int monster_offset = Monster.endMonster(builder); in createMonster()
16 Monster.finishMonsterBuffer(builder, monster_offset); in createMonster()
19 Monster monster = Monster.getRootAsMonster(buffer); in createMonster()
23 public static Monster createMonsterFromStat(Stat stat, int seqNo) { in createMonsterFromStat()
[all …]
DJavaGrpcTest.java17 import MyGame.Example.Monster;
54 public void store(Monster request, io.grpc.stub.StreamObserver<Stat> responseObserver) { in store()
66 public void retrieve(Stat request, io.grpc.stub.StreamObserver<Monster> responseObserver) { in retrieve()
69 Monster monster = GameFactory.createMonsterFromStat(request, i); in retrieve()
76 public StreamObserver<Monster> getMaxHitPoint(final StreamObserver<Stat> responseObserver) { in getMaxHitPoint()
81 … public StreamObserver<Monster> getMinMaxHitPoints(final StreamObserver<Stat> responseObserver) { in getMinMaxHitPoints()
85 …private StreamObserver<Monster> computeMinMax(final StreamObserver<Stat> responseObserver, final b… in computeMinMax()
94 return new StreamObserver<Monster>() { in computeMinMax()
95 public void onNext(Monster monster) { in computeMinMax()
153Monster monsterRequest = GameFactory.createMonster(BIG_MONSTER_NAME, nestedMonsterHp, nestedMonste…
[all …]
/external/flatbuffers/tests/MyGame/Example/
DMonster.go12 type Monster struct { struct
16 func GetRootAsMonster(buf []byte, offset flatbuffers.UOffsetT) *Monster {
18 x := &Monster{}
23 func (rcv *Monster) Init(buf []byte, i flatbuffers.UOffsetT) { argument
28 func (rcv *Monster) Table() flatbuffers.Table { argument
32 func (rcv *Monster) Pos(obj *Vec3) *Vec3 { argument
45 func (rcv *Monster) Mana() int16 { argument
53 func (rcv *Monster) MutateMana(n int16) bool { argument
57 func (rcv *Monster) Hp() int16 { argument
65 func (rcv *Monster) MutateHp(n int16) bool { argument
[all …]
DMonster.lua8 local Monster = {} -- the module
11 function Monster.New()
16 function Monster.GetRootAsMonster(buf, offset)
18 local o = Monster.New()
525 function Monster.Start(builder) builder:StartObject(48) end
526 function Monster.AddPos(builder, pos) builder:PrependStructSlot(0, pos, 0) end
527 function Monster.AddMana(builder, mana) builder:PrependInt16Slot(1, mana, 150) end
528 function Monster.AddHp(builder, hp) builder:PrependInt16Slot(2, hp, 100) end
529 function Monster.AddName(builder, name) builder:PrependUOffsetTRelativeSlot(3, name, 0) end
530 function Monster.AddInventory(builder, inventory) builder:PrependUOffsetTRelativeSlot(5, inventory,…
[all …]
DMonsterStorageGrpc.java39 public static final io.grpc.MethodDescriptor<MyGame.Example.Monster,
42 private static volatile io.grpc.MethodDescriptor<MyGame.Example.Monster,
45 private static volatile FlatbuffersUtils.FBExtactor<MyGame.Example.Monster> extractorOfMonster;
46 private static FlatbuffersUtils.FBExtactor<MyGame.Example.Monster> getExtractorOfMonster() { in getExtractorOfMonster()
50 extractorOfMonster = new FlatbuffersUtils.FBExtactor<MyGame.Example.Monster>() { in getExtractorOfMonster()
51 public MyGame.Example.Monster extract (ByteBuffer buffer) { in getExtractorOfMonster()
52 return MyGame.Example.Monster.getRootAsMonster(buffer); in getExtractorOfMonster()
74 public static io.grpc.MethodDescriptor<MyGame.Example.Monster,
76 io.grpc.MethodDescriptor<MyGame.Example.Monster, MyGame.Example.Stat> getStoreMethod; in getStoreMethod()
81 io.grpc.MethodDescriptor.<MyGame.Example.Monster, MyGame.Example.Stat>newBuilder() in getStoreMethod()
[all …]
/external/flatbuffers/samples/
DSampleBinary.java21 import MyGame.Sample.Monster;
48 int inv = Monster.createInventoryVector(builder, treasure); in main()
49 int weapons = Monster.createWeaponsVector(builder, weaps); in main()
52 Monster.startMonster(builder); in main()
53 Monster.addPos(builder, pos); in main()
54 Monster.addName(builder, name); in main()
55 Monster.addColor(builder, Color.Red); in main()
56 Monster.addHp(builder, (short)300); in main()
57 Monster.addInventory(builder, inv); in main()
58 Monster.addWeapons(builder, weapons); in main()
[all …]
Dsample_binary.py28 import MyGame.Sample.Monster
54 MyGame.Sample.Monster.MonsterStartInventoryVector(builder, 10)
60 MyGame.Sample.Monster.MonsterStartWeaponsVector(builder, 2)
68 MyGame.Sample.Monster.MonsterStart(builder)
69 MyGame.Sample.Monster.MonsterAddPos(builder, pos)
70 MyGame.Sample.Monster.MonsterAddHp(builder, 300)
71 MyGame.Sample.Monster.MonsterAddName(builder, name)
72 MyGame.Sample.Monster.MonsterAddInventory(builder, inv)
73 MyGame.Sample.Monster.MonsterAddColor(builder,
75 MyGame.Sample.Monster.MonsterAddWeapons(builder, weapons)
[all …]
Dsamplebinary.js45 var inv = MyGame.Sample.Monster.createInventoryVector(builder, treasure);
48 var weapons = MyGame.Sample.Monster.createWeaponsVector(builder, weaps);
52 MyGame.Sample.Monster.startMonster(builder);
53 MyGame.Sample.Monster.addPos(builder, pos);
54 MyGame.Sample.Monster.addHp(builder, 300);
55 MyGame.Sample.Monster.addColor(builder, MyGame.Sample.Color.Red)
56 MyGame.Sample.Monster.addName(builder, name);
57 MyGame.Sample.Monster.addInventory(builder, inv);
58 MyGame.Sample.Monster.addWeapons(builder, weapons);
59 MyGame.Sample.Monster.addEquippedType(builder, MyGame.Sample.Equipment.Weapon);
[all …]
DSampleBinary.php49 $inv = \MyGame\Sample\Monster::CreateInventoryVector($builder, $treasure);
52 $weapons = \MyGame\Sample\Monster::CreateWeaponsVector($builder, $weaps);
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);
[all …]
DSampleBinary.cs44 var inv = Monster.CreateInventoryVector(builder, treasure); in Main()
45 var weapons = Monster.CreateWeaponsVector(builder, weaps); in Main()
48 Monster.StartMonster(builder); in Main()
49 Monster.AddPos(builder, pos); in Main()
50 Monster.AddHp(builder, (short)300); in Main()
51 Monster.AddName(builder, name); in Main()
52 Monster.AddInventory(builder, inv); in Main()
53 Monster.AddColor(builder, Color.Red); in Main()
54 Monster.AddWeapons(builder, weapons); in Main()
55 Monster.AddEquippedType(builder, Equipment.Weapon); in Main()
[all …]
Dmonster_generated.rs217 pub struct Monster<'a> { struct
221 impl<'a> flatbuffers::Follow<'a> for Monster<'a> { implementation
222 type Inner = Monster<'a>;
231 impl<'a> Monster<'a> { implementation
234 Monster { in init_from_table()
241 args: &'args MonsterArgs<'args>) -> flatbuffers::WIPOffset<Monster<'bldr>> { in create()
267 self._tab.get::<Vec3>(Monster::VT_POS, None) in pos()
271 self._tab.get::<i16>(Monster::VT_MANA, Some(150)).unwrap() in mana()
275 self._tab.get::<i16>(Monster::VT_HP, Some(100)).unwrap() in hp()
279 self._tab.get::<flatbuffers::ForwardsUOffset<&str>>(Monster::VT_NAME, None) in name()
[all …]
/external/flatbuffers/samples/lua/MyGame/Sample/
DMonster.lua7 local Monster = {} -- the module
10 function Monster.New()
15 function Monster.GetRootAsMonster(buf, offset)
17 local o = Monster.New()
108 function Monster.Start(builder) builder:StartObject(10) end
109 function Monster.AddPos(builder, pos) builder:PrependStructSlot(0, pos, 0) end
110 function Monster.AddMana(builder, mana) builder:PrependInt16Slot(1, mana, 150) end
111 function Monster.AddHp(builder, hp) builder:PrependInt16Slot(2, hp, 100) end
112 function Monster.AddName(builder, name) builder:PrependUOffsetTRelativeSlot(3, name, 0) end
113 function Monster.AddInventory(builder, inventory) builder:PrependUOffsetTRelativeSlot(5, inventory,…
[all …]
/external/flatbuffers/tests/MyGame/Example2/
DMonster.cs11 public struct Monster : IFlatbufferObject struct
15 …public static Monster GetRootAsMonster(ByteBuffer _bb) { return GetRootAsMonster(_bb, new Monster(… in GetRootAsMonster() argument
16 …public static Monster GetRootAsMonster(ByteBuffer _bb, Monster obj) { return (obj.__assign(_bb.Get… in GetRootAsMonster() argument
18 public Monster __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } in __assign() argument
22 public static Offset<Monster> EndMonster(FlatBufferBuilder builder) { in EndMonster() argument
24 return new Offset<Monster>(o); in EndMonster()
DMonster.lua7 local Monster = {} -- the module
10 function Monster.New()
15 function Monster.GetRootAsMonster(buf, offset)
17 local o = Monster.New()
24 function Monster.Start(builder) builder:StartObject(0) end
25 function Monster.End(builder) return builder:EndObject() end
27 return Monster -- return the module

1234