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§
Sourcefn get_name(self) -> Il2CppString
fn get_name(self) -> Il2CppString
get_Name() overload
Sourcefn set_name(self, value: impl Into<Il2CppString>)
fn set_name(self, value: impl Into<Il2CppString>)
set_Name(::unity::Il2CppString) overload
Sourcefn get_func(self, name: impl Into<Il2CppString>) -> DynValue
fn get_func(self, name: impl Into<Il2CppString>) -> DynValue
GetFunc(::unity::Il2CppString) overload
Sourcefn call(self, name: impl Into<Il2CppString>, args: impl Into<Array<DynValue>>)
fn call(self, name: impl Into<Il2CppString>, args: impl Into<Array<DynValue>>)
Call(::unity::Il2CppString, ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>) overload
Sourcefn try_create_coroutine(self, name: impl Into<Il2CppString>) -> DynValue
fn try_create_coroutine(self, name: impl Into<Il2CppString>) -> DynValue
TryCreateCoroutine(::unity::Il2CppString) overload
Sourcefn try_create_coroutine_2(self, function: impl Into<DynValue>) -> DynValue
fn try_create_coroutine_2(self, function: impl Into<DynValue>) -> DynValue
TryCreateCoroutine(crate::moon_sharp::interpreter::dynvalue::DynValue) overload
Sourcefn is_dead(self, coroutine: impl Into<DynValue>) -> bool
fn is_dead(self, coroutine: impl Into<DynValue>) -> bool
IsDead(crate::moon_sharp::interpreter::dynvalue::DynValue) overload
Sourcefn do_coroutine(
self,
coroutine: impl Into<DynValue>,
args: impl Into<Array<DynValue>>,
) -> DynValue
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
Sourcefn regist_function(
self,
func: impl Into<EventScript_FunctionArgs>,
name: impl Into<Il2CppString>,
)
fn regist_function( self, func: impl Into<EventScript_FunctionArgs>, name: impl Into<Il2CppString>, )
RegistFunction(crate::app::eventscript::EventScript_FunctionArgs, ::unity::Il2CppString) overload
Sourcefn regist_action(
self,
func: impl Into<EventScript_ActionArgs>,
name: impl Into<Il2CppString>,
)
fn regist_action( self, func: impl Into<EventScript_ActionArgs>, name: impl Into<Il2CppString>, )
RegistAction(crate::app::eventscript::EventScript_ActionArgs, ::unity::Il2CppString) overload
Sourcefn load_impl(self, path: impl Into<Il2CppString>)
fn load_impl(self, path: impl Into<Il2CppString>)
LoadImpl(::unity::Il2CppString) overload
Sourcefn unload_impl(self)
fn unload_impl(self)
UnloadImpl() 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§
impl<__T: IEventScript> IEventScriptMethods for __T
app-eventscript only.