engage/generated/moon_sharp/interpreter/loaders/
invalidscriptloader.rs1#[cfg(feature = "moon_sharp-interpreter-loaders-invalidscriptloader-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/loaders/invalidscriptloader/InvalidScriptLoader.md"))]
11 #[::unity::class(namespace = "MoonSharp.Interpreter.Loaders", name = "InvalidScriptLoader")]
12 #[parent(crate::system::object::Object)]
13 pub struct InvalidScriptLoader {
14 #[offset(16)]
15 #[rename(name = "m_Error")]
16 pub m_error: ::unity::Il2CppString,
17 }
18}
19
20#[cfg(feature = "moon_sharp-interpreter-loaders-invalidscriptloader-types")]
21pub use __types::*;
22
23#[cfg(feature = "moon_sharp-interpreter-loaders-invalidscriptloader")]
24#[doc(hidden)]
25#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
26mod __InvalidScriptLoader_unity_raw {
27 use super::*;
28 #[doc(hidden)]
29 #[allow(non_snake_case)]
30 pub mod __lookup_ctor {
31 use super::*;
32 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
33 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
34 ::unity::lookup::method_info_on_class_with_signature(
35 <InvalidScriptLoader as ::unity::ClassIdentity>::class(),
36 ".ctor",
37 1,
38 param_types,
39 false,
40 )
41 });
42 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
43 match &*METHOD {
44 ::core::result::Result::Ok(mi) => *mi,
45 ::core::result::Result::Err(e) => {
46 panic!(
47 "method lookup failed: {}
48::{}
49: {}
50",
51 <InvalidScriptLoader as ::unity::ClassIdentity>::NAME,
52 ".ctor",
53 e
54 )
55 },
56 }
57 }
58 }
59}
60
61#[cfg(feature = "moon_sharp-interpreter-loaders-invalidscriptloader")]
62pub trait IInvalidScriptLoaderMethods: IInvalidScriptLoader {
63 #[doc = "`.ctor(::unity::Il2CppString)` overload"]
64 fn ctor(self, frameworkname: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
65 unsafe {
66 let __receiver = <InvalidScriptLoader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67 ::unity::il2cpp_call!(__InvalidScriptLoader_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
68(InvalidScriptLoader)__receiver,(::unity::Il2CppString)::core::convert::Into::into(frameworkname))
69 }
70 }
71 #[doc = "`LoadFile(::unity::Il2CppString, crate::moon_sharp::interpreter::table::Table)` overload"]
72 fn load_file(
73 self,
74 file: impl ::core::convert::Into<::unity::Il2CppString>,
75 global_context: impl ::core::convert::Into<crate::moon_sharp::interpreter::table::Table>,
76 ) -> crate::system::object::Object {
77 unsafe {
78 let __receiver = <InvalidScriptLoader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79 {
80 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
81 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
82 panic!(
83 "unity: virtual slot {}
84 out of range (vtable len {}
85) on the runtime class behind {}
86 (method `{}
87`)",
88 4usize,
89 __vt.len(),
90 <InvalidScriptLoader as ::unity::ClassIdentity>::NAME,
91 "LoadFile",
92 )
93 });
94 let __inner: extern "C" fn(
95 InvalidScriptLoader,
96 ::unity::Il2CppString,
97 crate::moon_sharp::interpreter::table::Table,
98 ::unity::OptionalMethod,
99 ) -> crate::system::object::Object = ::core::mem::transmute(__vi.method_ptr);
100 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
101 __inner(
102 __receiver,
103 ::core::convert::Into::into(file),
104 ::core::convert::Into::into(global_context),
105 __mi,
106 )
107 }
108 }
109 }
110 #[doc = "`ResolveFileName(::unity::Il2CppString, crate::moon_sharp::interpreter::table::Table)` overload"]
111 fn resolve_file_name(
112 self,
113 filename: impl ::core::convert::Into<::unity::Il2CppString>,
114 global_context: impl ::core::convert::Into<crate::moon_sharp::interpreter::table::Table>,
115 ) -> ::unity::Il2CppString {
116 unsafe {
117 let __receiver = <InvalidScriptLoader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
118 {
119 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
120 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
121 panic!(
122 "unity: virtual slot {}
123 out of range (vtable len {}
124) on the runtime class behind {}
125 (method `{}
126`)",
127 5usize,
128 __vt.len(),
129 <InvalidScriptLoader as ::unity::ClassIdentity>::NAME,
130 "ResolveFileName",
131 )
132 });
133 let __inner: extern "C" fn(
134 InvalidScriptLoader,
135 ::unity::Il2CppString,
136 crate::moon_sharp::interpreter::table::Table,
137 ::unity::OptionalMethod,
138 ) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
139 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
140 __inner(
141 __receiver,
142 ::core::convert::Into::into(filename),
143 ::core::convert::Into::into(global_context),
144 __mi,
145 )
146 }
147 }
148 }
149 #[doc = "`ResolveModuleName(::unity::Il2CppString, crate::moon_sharp::interpreter::table::Table)` overload"]
150 fn resolve_module_name(
151 self,
152 modname: impl ::core::convert::Into<::unity::Il2CppString>,
153 global_context: impl ::core::convert::Into<crate::moon_sharp::interpreter::table::Table>,
154 ) -> ::unity::Il2CppString {
155 unsafe {
156 let __receiver = <InvalidScriptLoader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
157 {
158 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
159 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
160 panic!(
161 "unity: virtual slot {}
162 out of range (vtable len {}
163) on the runtime class behind {}
164 (method `{}
165`)",
166 6usize,
167 __vt.len(),
168 <InvalidScriptLoader as ::unity::ClassIdentity>::NAME,
169 "ResolveModuleName",
170 )
171 });
172 let __inner: extern "C" fn(
173 InvalidScriptLoader,
174 ::unity::Il2CppString,
175 crate::moon_sharp::interpreter::table::Table,
176 ::unity::OptionalMethod,
177 ) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
178 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
179 __inner(
180 __receiver,
181 ::core::convert::Into::into(modname),
182 ::core::convert::Into::into(global_context),
183 __mi,
184 )
185 }
186 }
187 }
188}
189
190#[cfg(feature = "moon_sharp-interpreter-loaders-invalidscriptloader")]
191impl<__T: IInvalidScriptLoader> IInvalidScriptLoaderMethods for __T {}
192
193#[cfg(feature = "moon_sharp-interpreter-loaders-invalidscriptloader")]
194impl InvalidScriptLoader {
195 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
196 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
197 }
198
199 pub fn load_file_method_info() -> &'static ::unity::il2cpp::MethodInfo {
200 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
201 }
202
203 pub fn resolve_file_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
204 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
205 }
206
207 pub fn resolve_module_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
208 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
209 }
210}
211
212#[cfg(feature = "moon_sharp-interpreter-loaders-invalidscriptloader")]
213impl InvalidScriptLoader {
214 #[doc = "Direct (non-virtual) call to `InvalidScriptLoader`'s own `LoadFile`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
215 pub unsafe fn load_file(
216 this: impl ::core::convert::Into<::unity::IlInstance>,
217 file: ::unity::Il2CppString,
218 global_context: crate::moon_sharp::interpreter::table::Table,
219 ) -> crate::system::object::Object {
220 let __mi = Self::load_file_method_info();
221 let __inner: extern "C" fn(
222 ::unity::IlInstance,
223 ::unity::Il2CppString,
224 crate::moon_sharp::interpreter::table::Table,
225 ::unity::OptionalMethod,
226 ) -> crate::system::object::Object = ::core::mem::transmute(__mi.method_ptr);
227 __inner(this.into(), file, global_context, ::core::option::Option::None)
228 }
229
230 #[doc = "Direct (non-virtual) call to `InvalidScriptLoader`'s own `ResolveFileName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
231 pub unsafe fn resolve_file_name(
232 this: impl ::core::convert::Into<::unity::IlInstance>,
233 filename: ::unity::Il2CppString,
234 global_context: crate::moon_sharp::interpreter::table::Table,
235 ) -> ::unity::Il2CppString {
236 let __mi = Self::resolve_file_name_method_info();
237 let __inner: extern "C" fn(
238 ::unity::IlInstance,
239 ::unity::Il2CppString,
240 crate::moon_sharp::interpreter::table::Table,
241 ::unity::OptionalMethod,
242 ) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
243 __inner(this.into(), filename, global_context, ::core::option::Option::None)
244 }
245
246 #[doc = "Direct (non-virtual) call to `InvalidScriptLoader`'s own `ResolveModuleName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
247 pub unsafe fn resolve_module_name(
248 this: impl ::core::convert::Into<::unity::IlInstance>,
249 modname: ::unity::Il2CppString,
250 global_context: crate::moon_sharp::interpreter::table::Table,
251 ) -> ::unity::Il2CppString {
252 let __mi = Self::resolve_module_name_method_info();
253 let __inner: extern "C" fn(
254 ::unity::IlInstance,
255 ::unity::Il2CppString,
256 crate::moon_sharp::interpreter::table::Table,
257 ::unity::OptionalMethod,
258 ) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
259 __inner(this.into(), modname, global_context, ::core::option::Option::None)
260 }
261}
262
263#[cfg(feature = "moon_sharp-interpreter-loaders-invalidscriptloader")]
264impl InvalidScriptLoader {
265 #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
266 pub fn new(frameworkname: ::unity::Il2CppString) -> Self {
267 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
268 panic!(
269 "{}
270::{}
271 failed to instantiate",
272 ::core::stringify!(InvalidScriptLoader),
273 ::core::stringify!(new),
274 )
275 });
276 <Self as IInvalidScriptLoaderMethods>::ctor(this, frameworkname);
277 this
278 }
279}
280
281#[cfg(feature = "moon_sharp-interpreter-loaders-invalidscriptloader")]
282#[doc(hidden)]
283pub mod prelude {
284 pub use super::{IInvalidScriptLoader, IInvalidScriptLoaderMethods, InvalidScriptLoader};
285 pub use crate::system::object::IObject;
286 #[cfg(feature = "system-object")]
287 pub use crate::system::object::IObjectMethods;
288}