#[repr(u8)]pub enum PointerType {
Show 30 variants
ActivePlayer = 0,
ActivePlayer2 = 1,
PActivePlayer = 2,
PActivePlayer2 = 3,
ActiveNpc = 4,
ActiveNpc2 = 5,
ActiveLoc = 6,
ActiveLoc2 = 7,
ActiveObj = 8,
ActiveObj2 = 9,
FindPlayer = 10,
FindNpc = 11,
FindLoc = 12,
FindObj = 13,
FindDb = 14,
LastCom = 15,
LastInt = 16,
LastItem = 17,
LastSlot = 18,
LastTargetslot = 19,
LastUseitem = 20,
LastUseslot = 21,
ActiveComponent = 22,
ActiveComponent2 = 23,
ActiveController = 24,
ActiveController2 = 25,
ActiveRegion = 26,
ActiveRegion2 = 27,
LastString = 28,
LastCoord = 29,
}Expand description
The pointer types tracked by the script pointer checker.
Each variant maps to a bit position in PointerSet and has a display
name matching the reference TypeScript implementation.
Variants§
ActivePlayer = 0
ActivePlayer2 = 1
PActivePlayer = 2
PActivePlayer2 = 3
ActiveNpc = 4
ActiveNpc2 = 5
ActiveLoc = 6
ActiveLoc2 = 7
ActiveObj = 8
ActiveObj2 = 9
FindPlayer = 10
FindNpc = 11
FindLoc = 12
FindObj = 13
FindDb = 14
LastCom = 15
LastInt = 16
LastItem = 17
LastSlot = 18
LastTargetslot = 19
LastUseitem = 20
LastUseslot = 21
ActiveComponent = 22
ActiveComponent2 = 23
ActiveController = 24
ActiveController2 = 25
ActiveRegion = 26
ActiveRegion2 = 27
LastString = 28
LastCoord = 29
Implementations§
Source§impl PointerType
impl PointerType
pub const COUNT: usize = 30
pub const ALL: [PointerType; 30]
Sourcepub fn representation(self) -> &'static str
pub fn representation(self) -> &'static str
The representation string used in diagnostics, matching the TS reference.
pub fn index(self) -> usize
Sourcepub fn from_name(name: &str) -> Option<PointerType>
pub fn from_name(name: &str) -> Option<PointerType>
Look up a pointer type by its lowercase name (e.g. “active_player”, “.active_player”, “p_active_player”).
Trait Implementations§
Source§impl Clone for PointerType
impl Clone for PointerType
impl Copy for PointerType
Source§impl Debug for PointerType
impl Debug for PointerType
Source§impl Display for PointerType
impl Display for PointerType
impl Eq for PointerType
Source§impl FromIterator<PointerType> for PointerSet
impl FromIterator<PointerType> for PointerSet
Source§fn from_iter<T: IntoIterator<Item = PointerType>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = PointerType>>(iter: T) -> Self
Creates a value from an iterator. Read more
Source§impl Hash for PointerType
impl Hash for PointerType
Source§impl PartialEq for PointerType
impl PartialEq for PointerType
impl StructuralPartialEq for PointerType
Auto Trait Implementations§
impl Forget for PointerType
impl Freeze for PointerType
impl Move for PointerType
impl RefUnwindSafe for PointerType
impl Send for PointerType
impl Sync for PointerType
impl Unpin for PointerType
impl UnsafeUnpin for PointerType
impl UnwindSafe for PointerType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more