pub struct EventDefinition {
pub name_index: u32,
pub type_index: TypeIndex,
pub add: i32,
pub remove: i32,
pub raise: i32,
pub token: u32,
}Expand description
Il2CppEventDefinition: an event and its accessors.
Each accessor is a method index relative to the declaring type’s
method_start, or -1 if it has none.
Fields§
§name_index: u32The event’s name. Index into the string pool; read it with Metadata::string.
type_index: TypeIndexThe event’s delegate type, as a TypeIndex.
add: i32The add accessor.
remove: i32The remove accessor.
raise: i32The raise accessor; C# never emits one, so usually -1.
token: u32The event’s Event metadata token in its image.
Trait Implementations§
Source§impl Clone for EventDefinition
impl Clone for EventDefinition
Source§impl Debug for EventDefinition
impl Debug for EventDefinition
Auto Trait Implementations§
impl Forget for EventDefinition
impl Freeze for EventDefinition
impl Move for EventDefinition
impl RefUnwindSafe for EventDefinition
impl Send for EventDefinition
impl Sync for EventDefinition
impl Unpin for EventDefinition
impl UnsafeUnpin for EventDefinition
impl UnwindSafe for EventDefinition
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