Skip to main content

EventScriptExt

Trait EventScriptExt 

Source
pub trait EventScriptExt {
    // Required methods
    fn register_action(
        self,
        name: impl Into<Il2CppString>,
        callback: extern "C" fn(Array<DynValue>, OptionalMethod),
    );
    fn register_function(
        self,
        name: impl Into<Il2CppString>,
        callback: extern "C" fn(Array<DynValue>, OptionalMethod) -> DynValue,
    );
}

Required Methods§

Source

fn register_action( self, name: impl Into<Il2CppString>, callback: extern "C" fn(Array<DynValue>, OptionalMethod), )

Source

fn register_function( self, name: impl Into<Il2CppString>, callback: extern "C" fn(Array<DynValue>, OptionalMethod) -> DynValue, )

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§