Skip to main content

IEventScriptMethods

Trait IEventScriptMethods 

Source
pub trait IEventScriptMethods: IEventScript {
Show 15 methods // Provided methods fn get_name(self) -> Il2CppString { ... } fn set_name(self, value: impl Into<Il2CppString>) { ... } fn get_func(self, name: impl Into<Il2CppString>) -> DynValue { ... } fn call( self, name: impl Into<Il2CppString>, args: impl Into<Array<DynValue>>, ) { ... } fn try_create_coroutine(self, name: impl Into<Il2CppString>) -> DynValue { ... } fn try_create_coroutine_2(self, function: impl Into<DynValue>) -> DynValue { ... } fn is_dead(self, coroutine: impl Into<DynValue>) -> bool { ... } fn do_coroutine( self, coroutine: impl Into<DynValue>, args: impl Into<Array<DynValue>>, ) -> DynValue { ... } fn dump(self) { ... } fn regist_function( self, func: impl Into<EventScript_FunctionArgs>, name: impl Into<Il2CppString>, ) { ... } fn regist_action( self, func: impl Into<EventScript_ActionArgs>, name: impl Into<Il2CppString>, ) { ... } fn regist(self) { ... } fn load_impl(self, path: impl Into<Il2CppString>) { ... } fn unload_impl(self) { ... } fn ctor(self) { ... }
}

Provided Methods§

Source

fn get_name(self) -> Il2CppString

get_Name() overload

Source

fn set_name(self, value: impl Into<Il2CppString>)

set_Name(::unity::Il2CppString) overload

Source

fn get_func(self, name: impl Into<Il2CppString>) -> DynValue

GetFunc(::unity::Il2CppString) overload

Source

fn call(self, name: impl Into<Il2CppString>, args: impl Into<Array<DynValue>>)

Call(::unity::Il2CppString, ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>) overload

Source

fn try_create_coroutine(self, name: impl Into<Il2CppString>) -> DynValue

TryCreateCoroutine(::unity::Il2CppString) overload

Source

fn try_create_coroutine_2(self, function: impl Into<DynValue>) -> DynValue

TryCreateCoroutine(crate::moon_sharp::interpreter::dynvalue::DynValue) overload

Source

fn is_dead(self, coroutine: impl Into<DynValue>) -> bool

IsDead(crate::moon_sharp::interpreter::dynvalue::DynValue) overload

Source

fn do_coroutine( self, coroutine: impl Into<DynValue>, args: impl Into<Array<DynValue>>, ) -> DynValue

DoCoroutine(crate::moon_sharp::interpreter::dynvalue::DynValue, ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>) overload

Source

fn dump(self)

Dump() overload

Source

fn regist_function( self, func: impl Into<EventScript_FunctionArgs>, name: impl Into<Il2CppString>, )

RegistFunction(crate::app::eventscript::EventScript_FunctionArgs, ::unity::Il2CppString) overload

Source

fn regist_action( self, func: impl Into<EventScript_ActionArgs>, name: impl Into<Il2CppString>, )

RegistAction(crate::app::eventscript::EventScript_ActionArgs, ::unity::Il2CppString) overload

Source

fn regist(self)

Regist() overload

Source

fn load_impl(self, path: impl Into<Il2CppString>)

LoadImpl(::unity::Il2CppString) overload

Source

fn unload_impl(self)

UnloadImpl() overload

Source

fn ctor(self)

.ctor() overload

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§

Source§

impl<__T: IEventScript> IEventScriptMethods for __T

Available on crate feature app-eventscript only.