Lines Matching refs:Monster
217 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()
283 …self._tab.get::<flatbuffers::ForwardsUOffset<flatbuffers::Vector<'a, u8>>>(Monster::VT_INVENTORY, … in inventory()
287 self._tab.get::<Color>(Monster::VT_COLOR, Some(Color::Blue)).unwrap() in color()
291 …sUOffset<flatbuffers::Vector<flatbuffers::ForwardsUOffset<Weapon<'a>>>>>(Monster::VT_WEAPONS, None) in weapons()
295 self._tab.get::<Equipment>(Monster::VT_EQUIPPED_TYPE, Some(Equipment::NONE)).unwrap() in equipped_type()
299 … self._tab.get::<flatbuffers::ForwardsUOffset<flatbuffers::Table<'a>>>(Monster::VT_EQUIPPED, None) in equipped()
347 self.fbb_.push_slot_always::<&Vec3>(Monster::VT_POS, pos); in add_pos()
351 self.fbb_.push_slot::<i16>(Monster::VT_MANA, mana, 150); in add_mana()
355 self.fbb_.push_slot::<i16>(Monster::VT_HP, hp, 100); in add_hp()
359 self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(Monster::VT_NAME, name); in add_name()
363 self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(Monster::VT_INVENTORY, inventory); in add_inventory()
367 self.fbb_.push_slot::<Color>(Monster::VT_COLOR, color, Color::Blue); in add_color()
371 self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(Monster::VT_WEAPONS, weapons); in add_weapons()
375 self.fbb_.push_slot::<Equipment>(Monster::VT_EQUIPPED_TYPE, equipped_type, Equipment::NONE); in add_equipped_type()
379 self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(Monster::VT_EQUIPPED, equipped); in add_equipped()
390 pub fn finish(self) -> flatbuffers::WIPOffset<Monster<'a>> { in finish()
485 pub fn get_root_as_monster<'a>(buf: &'a [u8]) -> Monster<'a> { in get_root_as_monster()
486 flatbuffers::get_root::<Monster<'a>>(buf) in get_root_as_monster()
490 pub fn get_size_prefixed_root_as_monster<'a>(buf: &'a [u8]) -> Monster<'a> { in get_size_prefixed_root_as_monster()
491 flatbuffers::get_size_prefixed_root::<Monster<'a>>(buf) in get_size_prefixed_root_as_monster()
497 root: flatbuffers::WIPOffset<Monster<'a>>) { in finish_monster_buffer()
502 …, 'b>(fbb: &'b mut flatbuffers::FlatBufferBuilder<'a>, root: flatbuffers::WIPOffset<Monster<'a>>) { in finish_size_prefixed_monster_buffer()