pub trait ILuaStateMethods: ILuaState {
Show 13 methods
// Provided methods
fn get_execution_context(self) -> ScriptExecutionContext { ... }
fn set_execution_context(self, value: impl Into<ScriptExecutionContext>) { ... }
fn get_function_name(self) -> Il2CppString { ... }
fn set_function_name(self, value: impl Into<Il2CppString>) { ... }
fn ctor(
self,
execution_context: impl Into<ScriptExecutionContext>,
args: impl Into<CallbackArguments>,
function_name: impl Into<Il2CppString>,
) { ... }
fn top(self, pos: impl Into<i32>) -> DynValue { ... }
fn at(self, pos: impl Into<i32>) -> DynValue { ... }
fn get_count(self) -> i32 { ... }
fn push(self, v: impl Into<DynValue>) { ... }
fn pop(self) -> DynValue { ... }
fn get_top_array(self, num: impl Into<i32>) -> Array<DynValue> { ... }
fn get_return_value(self, retvals: impl Into<i32>) -> DynValue { ... }
fn discard(self, nargs: impl Into<i32>) { ... }
}Provided Methods§
Sourcefn get_execution_context(self) -> ScriptExecutionContext
fn get_execution_context(self) -> ScriptExecutionContext
get_ExecutionContext() overload
Sourcefn set_execution_context(self, value: impl Into<ScriptExecutionContext>)
fn set_execution_context(self, value: impl Into<ScriptExecutionContext>)
set_ExecutionContext(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext) overload
Sourcefn get_function_name(self) -> Il2CppString
fn get_function_name(self) -> Il2CppString
get_FunctionName() overload
Sourcefn set_function_name(self, value: impl Into<Il2CppString>)
fn set_function_name(self, value: impl Into<Il2CppString>)
set_FunctionName(::unity::Il2CppString) overload
Sourcefn ctor(
self,
execution_context: impl Into<ScriptExecutionContext>,
args: impl Into<CallbackArguments>,
function_name: impl Into<Il2CppString>,
)
fn ctor( self, execution_context: impl Into<ScriptExecutionContext>, args: impl Into<CallbackArguments>, function_name: impl Into<Il2CppString>, )
.ctor(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments, ::unity::Il2CppString) overload
Sourcefn push(self, v: impl Into<DynValue>)
fn push(self, v: impl Into<DynValue>)
Push(crate::moon_sharp::interpreter::dynvalue::DynValue) overload
Sourcefn get_top_array(self, num: impl Into<i32>) -> Array<DynValue>
fn get_top_array(self, num: impl Into<i32>) -> Array<DynValue>
GetTopArray(i32) overload
Sourcefn get_return_value(self, retvals: impl Into<i32>) -> DynValue
fn get_return_value(self, retvals: impl Into<i32>) -> DynValue
GetReturnValue(i32) 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: ILuaState> ILuaStateMethods for __T
Available on crate feature
moon_sharp-interpreter-interop-lua_state_interop-luastate only.