engage/generated/moon_sharp/interpreter/interop/lua_state_interop/
lualbuffer.rs1#[cfg(feature = "moon_sharp-interpreter-interop-lua_state_interop-lualbuffer-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/moon_sharp/interpreter/interop/lua_state_interop/lualbuffer/LuaLBuffer.md"))]
11 #[::unity::class(namespace = "MoonSharp.Interpreter.Interop.LuaStateInterop", name = "LuaLBuffer")]
12 #[parent(crate::system::object::Object)]
13 pub struct LuaLBuffer {}
14}
15
16#[cfg(feature = "moon_sharp-interpreter-interop-lua_state_interop-lualbuffer-types")]
17pub use __types::*;
18
19#[cfg(feature = "moon_sharp-interpreter-interop-lua_state_interop-lualbuffer")]
20#[doc(hidden)]
21#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
22mod __LuaLBuffer_unity_raw {
23 use super::*;
24 #[doc(hidden)]
25 #[allow(non_snake_case)]
26 pub mod __lookup_get_lua_state {
27 use super::*;
28 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
29 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
30 ::unity::lookup::method_info_on_class_with_signature(
31 <LuaLBuffer as ::unity::ClassIdentity>::class(),
32 "get_LuaState",
33 0,
34 param_types,
35 false,
36 )
37 });
38 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
39 match &*METHOD {
40 ::core::result::Result::Ok(mi) => *mi,
41 ::core::result::Result::Err(e) => {
42 panic!(
43 "method lookup failed: {}
44::{}
45: {}
46",
47 <LuaLBuffer as ::unity::ClassIdentity>::NAME,
48 "get_LuaState",
49 e
50 )
51 },
52 }
53 }
54 }
55 #[doc(hidden)]
56 #[allow(non_snake_case)]
57 pub mod __lookup_set_lua_state {
58 use super::*;
59 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
60 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
61 &[<crate::moon_sharp::interpreter::interop::lua_state_interop::luastate::LuaState as ::unity::IlType>::il_type()];
62 ::unity::lookup::method_info_on_class_with_signature(
63 <LuaLBuffer as ::unity::ClassIdentity>::class(),
64 "set_LuaState",
65 1,
66 param_types,
67 false,
68 )
69 });
70 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
71 match &*METHOD {
72 ::core::result::Result::Ok(mi) => *mi,
73 ::core::result::Result::Err(e) => {
74 panic!(
75 "method lookup failed: {}
76::{}
77: {}
78",
79 <LuaLBuffer as ::unity::ClassIdentity>::NAME,
80 "set_LuaState",
81 e
82 )
83 },
84 }
85 }
86 }
87 #[doc(hidden)]
88 #[allow(non_snake_case)]
89 pub mod __lookup_ctor {
90 use super::*;
91 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
92 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
93 &[<crate::moon_sharp::interpreter::interop::lua_state_interop::luastate::LuaState as ::unity::IlType>::il_type()];
94 ::unity::lookup::method_info_on_class_with_signature(<LuaLBuffer as ::unity::ClassIdentity>::class(), ".ctor", 1, param_types, false)
95 });
96 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
97 match &*METHOD {
98 ::core::result::Result::Ok(mi) => *mi,
99 ::core::result::Result::Err(e) => {
100 panic!(
101 "method lookup failed: {}
102::{}
103: {}
104",
105 <LuaLBuffer as ::unity::ClassIdentity>::NAME,
106 ".ctor",
107 e
108 )
109 },
110 }
111 }
112 }
113}
114
115#[cfg(feature = "moon_sharp-interpreter-interop-lua_state_interop-lualbuffer")]
116pub trait ILuaLBufferMethods: ILuaLBuffer {
117 #[doc = "`get_LuaState()` overload"]
118 fn get_lua_state(self) -> crate::moon_sharp::interpreter::interop::lua_state_interop::luastate::LuaState {
119 unsafe {
120 let __receiver = <LuaLBuffer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
121 ::unity::il2cpp_call!(__LuaLBuffer_unity_raw::__lookup_get_lua_state::get_method_info().method_ptr,crate::moon_sharp::interpreter::interop::lua_state_interop::luastate::LuaState;
122(LuaLBuffer)__receiver)
123 }
124 }
125 #[doc = "`set_LuaState(crate::moon_sharp::interpreter::interop::lua_state_interop::luastate::LuaState)` overload"]
126 fn set_lua_state(self, value: impl ::core::convert::Into<crate::moon_sharp::interpreter::interop::lua_state_interop::luastate::LuaState>) -> () {
127 unsafe {
128 let __receiver = <LuaLBuffer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
129 ::unity::il2cpp_call!(__LuaLBuffer_unity_raw::__lookup_set_lua_state::get_method_info().method_ptr,();
130(LuaLBuffer)__receiver,(crate::moon_sharp::interpreter::interop::lua_state_interop::luastate::LuaState)::core::convert::Into::into(value))
131 }
132 }
133 #[doc = "`.ctor(crate::moon_sharp::interpreter::interop::lua_state_interop::luastate::LuaState)` overload"]
134 fn ctor(self, l: impl ::core::convert::Into<crate::moon_sharp::interpreter::interop::lua_state_interop::luastate::LuaState>) -> () {
135 unsafe {
136 let __receiver = <LuaLBuffer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
137 ::unity::il2cpp_call!(__LuaLBuffer_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
138(LuaLBuffer)__receiver,(crate::moon_sharp::interpreter::interop::lua_state_interop::luastate::LuaState)::core::convert::Into::into(l))
139 }
140 }
141}
142
143#[cfg(feature = "moon_sharp-interpreter-interop-lua_state_interop-lualbuffer")]
144impl<__T: ILuaLBuffer> ILuaLBufferMethods for __T {}
145
146#[cfg(feature = "moon_sharp-interpreter-interop-lua_state_interop-lualbuffer")]
147impl LuaLBuffer {
148 pub fn get_lua_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
149 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
150 }
151
152 pub fn set_lua_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
154 }
155
156 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
158 }
159}
160
161#[cfg(feature = "moon_sharp-interpreter-interop-lua_state_interop-lualbuffer")]
162impl LuaLBuffer {
163 #[doc = "`.ctor(crate::moon_sharp::interpreter::interop::lua_state_interop::luastate::LuaState)` — overload selector"]
164 pub fn new(l: crate::moon_sharp::interpreter::interop::lua_state_interop::luastate::LuaState) -> Self {
165 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
166 panic!(
167 "{}
168::{}
169 failed to instantiate",
170 ::core::stringify!(LuaLBuffer),
171 ::core::stringify!(new),
172 )
173 });
174 <Self as ILuaLBufferMethods>::ctor(this, l);
175 this
176 }
177}
178
179#[cfg(feature = "moon_sharp-interpreter-interop-lua_state_interop-lualbuffer")]
180#[doc(hidden)]
181pub mod prelude {
182 pub use super::{ILuaLBuffer, ILuaLBufferMethods, LuaLBuffer};
183 pub use crate::system::object::IObject;
184 #[cfg(feature = "system-object")]
185 pub use crate::system::object::IObjectMethods;
186}