Lines Matching refs:Weapon
92 Weapon = 1 enumerator
132 Equipment::Weapon
290 …pub fn weapons(&'a self) -> Option<flatbuffers::Vector<flatbuffers::ForwardsUOffset<Weapon<'a>>>> { in weapons()
291 …uffers::ForwardsUOffset<flatbuffers::Vector<flatbuffers::ForwardsUOffset<Weapon<'a>>>>>(Monster::V… in weapons()
303 pub fn equipped_as_weapon(&'a self) -> Option<Weapon> { in equipped_as_weapon() argument
304 if self.equipped_type() == Equipment::Weapon { in equipped_as_weapon()
305 self.equipped().map(|u| Weapon::init_from_table(u)) in equipped_as_weapon()
320 …ption<flatbuffers::WIPOffset<flatbuffers::Vector<'a , flatbuffers::ForwardsUOffset<Weapon<'a >>>>>,
370 …ons: flatbuffers::WIPOffset<flatbuffers::Vector<'b , flatbuffers::ForwardsUOffset<Weapon<'b >>>>) { in add_weapons()
399 pub struct Weapon<'a> { struct
403 impl<'a> flatbuffers::Follow<'a> for Weapon<'a> { implementation
404 type Inner = Weapon<'a>;
413 impl<'a> Weapon<'a> { implementation
416 Weapon { in init_from_table()
423 args: &'args WeaponArgs<'args>) -> flatbuffers::WIPOffset<Weapon<'bldr>> { in create()
435 self._tab.get::<flatbuffers::ForwardsUOffset<&str>>(Weapon::VT_NAME, None) in name()
439 self._tab.get::<i16>(Weapon::VT_DAMAGE, Some(0)).unwrap() in damage()
463 self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(Weapon::VT_NAME, name); in add_name()
467 self.fbb_.push_slot::<i16>(Weapon::VT_DAMAGE, damage, 0); in add_damage()
478 pub fn finish(self) -> flatbuffers::WIPOffset<Weapon<'a>> { in finish()