engage/generated/moon_sharp/interpreter/compatibility/frameworks/
frameworkcurrent.rs1#[cfg(feature = "moon_sharp-interpreter-compatibility-frameworks-frameworkcurrent-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 moon_sharp::interpreter::compatibility::frameworks::{
10 frameworkbase::{FrameworkBase, IFrameworkBase},
11 frameworkclrbase::{FrameworkClrBase, IFrameworkClrBase},
12 frameworkreflectionbase::{FrameworkReflectionBase, IFrameworkReflectionBase},
13 },
14 system::object::{IObject, Object},
15 };
16
17 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/moon_sharp/interpreter/compatibility/frameworks/frameworkcurrent/FrameworkCurrent.md"))]
18 #[::unity::class(namespace = "MoonSharp.Interpreter.Compatibility.Frameworks", name = "FrameworkCurrent")]
19 #[parent(crate::moon_sharp::interpreter::compatibility::frameworks::frameworkclrbase::FrameworkClrBase)]
20 pub struct FrameworkCurrent {}
21}
22
23#[cfg(feature = "moon_sharp-interpreter-compatibility-frameworks-frameworkcurrent-types")]
24pub use __types::*;
25
26#[cfg(feature = "moon_sharp-interpreter-compatibility-frameworks-frameworkcurrent")]
27#[doc(hidden)]
28#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
29mod __FrameworkCurrent_unity_raw {
30 use super::*;
31 #[doc(hidden)]
32 #[allow(non_snake_case)]
33 pub mod __lookup_ctor {
34 use super::*;
35 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
36 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
37 ::unity::lookup::method_info_on_class_with_signature(
38 <FrameworkCurrent as ::unity::ClassIdentity>::class(),
39 ".ctor",
40 0,
41 param_types,
42 false,
43 )
44 });
45 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
46 match &*METHOD {
47 ::core::result::Result::Ok(mi) => *mi,
48 ::core::result::Result::Err(e) => {
49 panic!(
50 "method lookup failed: {}
51::{}
52: {}
53",
54 <FrameworkCurrent as ::unity::ClassIdentity>::NAME,
55 ".ctor",
56 e
57 )
58 },
59 }
60 }
61 }
62}
63
64#[cfg(feature = "moon_sharp-interpreter-compatibility-frameworks-frameworkcurrent")]
65pub trait IFrameworkCurrentMethods: IFrameworkCurrent {
66 #[doc = "`IsDbNull(crate::system::object::Object)` overload"]
67 fn is_db_null(self, o: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
68 unsafe {
69 let __receiver = <FrameworkCurrent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
70 {
71 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
72 let __vi = *__vt.get(34usize).unwrap_or_else(|| {
73 panic!(
74 "unity: virtual slot {}
75 out of range (vtable len {}
76) on the runtime class behind {}
77 (method `{}
78`)",
79 34usize,
80 __vt.len(),
81 <FrameworkCurrent as ::unity::ClassIdentity>::NAME,
82 "IsDbNull",
83 )
84 });
85 let __inner: extern "C" fn(FrameworkCurrent, crate::system::object::Object, ::unity::OptionalMethod) -> bool =
86 ::core::mem::transmute(__vi.method_ptr);
87 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
88 __inner(__receiver, ::core::convert::Into::into(o), __mi)
89 }
90 }
91 }
92 #[doc = "`StringContainsChar(::unity::Il2CppString, u16)` overload"]
93 fn string_contains_char(self, str: impl ::core::convert::Into<::unity::Il2CppString>, chr: impl ::core::convert::Into<u16>) -> bool {
94 unsafe {
95 let __receiver = <FrameworkCurrent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
96 {
97 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
98 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
99 panic!(
100 "unity: virtual slot {}
101 out of range (vtable len {}
102) on the runtime class behind {}
103 (method `{}
104`)",
105 4usize,
106 __vt.len(),
107 <FrameworkCurrent as ::unity::ClassIdentity>::NAME,
108 "StringContainsChar",
109 )
110 });
111 let __inner: extern "C" fn(FrameworkCurrent, ::unity::Il2CppString, u16, ::unity::OptionalMethod) -> bool =
112 ::core::mem::transmute(__vi.method_ptr);
113 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
114 __inner(__receiver, ::core::convert::Into::into(str), ::core::convert::Into::into(chr), __mi)
115 }
116 }
117 }
118 #[doc = "`GetInterface(::unity::SystemType, ::unity::Il2CppString)` overload"]
119 fn get_interface(
120 self,
121 r#type: impl ::core::convert::Into<::unity::SystemType>,
122 name: impl ::core::convert::Into<::unity::Il2CppString>,
123 ) -> ::unity::SystemType {
124 unsafe {
125 let __receiver = <FrameworkCurrent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
126 {
127 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
128 let __vi = *__vt.get(22usize).unwrap_or_else(|| {
129 panic!(
130 "unity: virtual slot {}
131 out of range (vtable len {}
132) on the runtime class behind {}
133 (method `{}
134`)",
135 22usize,
136 __vt.len(),
137 <FrameworkCurrent as ::unity::ClassIdentity>::NAME,
138 "GetInterface",
139 )
140 });
141 let __inner: extern "C" fn(
142 FrameworkCurrent,
143 ::unity::SystemType,
144 ::unity::Il2CppString,
145 ::unity::OptionalMethod,
146 ) -> ::unity::SystemType = ::core::mem::transmute(__vi.method_ptr);
147 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
148 __inner(__receiver, ::core::convert::Into::into(r#type), ::core::convert::Into::into(name), __mi)
149 }
150 }
151 }
152 #[doc = "`.ctor()` overload"]
153 fn ctor(self) -> () {
154 unsafe {
155 let __receiver = <FrameworkCurrent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
156 ::unity::il2cpp_call!(__FrameworkCurrent_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
157(FrameworkCurrent)__receiver)
158 }
159 }
160}
161
162#[cfg(feature = "moon_sharp-interpreter-compatibility-frameworks-frameworkcurrent")]
163impl<__T: IFrameworkCurrent> IFrameworkCurrentMethods for __T {}
164
165#[cfg(feature = "moon_sharp-interpreter-compatibility-frameworks-frameworkcurrent")]
166impl FrameworkCurrent {
167 pub fn is_db_null_method_info() -> &'static ::unity::il2cpp::MethodInfo {
168 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
169 }
170
171 pub fn string_contains_char_method_info() -> &'static ::unity::il2cpp::MethodInfo {
172 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
173 }
174
175 pub fn get_interface_method_info() -> &'static ::unity::il2cpp::MethodInfo {
176 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
177 }
178
179 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
180 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
181 }
182}
183
184#[cfg(feature = "moon_sharp-interpreter-compatibility-frameworks-frameworkcurrent")]
185impl FrameworkCurrent {
186 #[doc = "Direct (non-virtual) call to `FrameworkCurrent`'s own `IsDbNull`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
187 pub unsafe fn is_db_null(this: impl ::core::convert::Into<::unity::IlInstance>, o: crate::system::object::Object) -> bool {
188 let __mi = Self::is_db_null_method_info();
189 let __inner: extern "C" fn(::unity::IlInstance, crate::system::object::Object, ::unity::OptionalMethod) -> bool =
190 ::core::mem::transmute(__mi.method_ptr);
191 __inner(this.into(), o, ::core::option::Option::None)
192 }
193
194 #[doc = "Direct (non-virtual) call to `FrameworkCurrent`'s own `StringContainsChar`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
195 pub unsafe fn string_contains_char(this: impl ::core::convert::Into<::unity::IlInstance>, str: ::unity::Il2CppString, chr: u16) -> bool {
196 let __mi = Self::string_contains_char_method_info();
197 let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, u16, ::unity::OptionalMethod) -> bool =
198 ::core::mem::transmute(__mi.method_ptr);
199 __inner(this.into(), str, chr, ::core::option::Option::None)
200 }
201
202 #[doc = "Direct (non-virtual) call to `FrameworkCurrent`'s own `GetInterface`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
203 pub unsafe fn get_interface(
204 this: impl ::core::convert::Into<::unity::IlInstance>,
205 r#type: ::unity::SystemType,
206 name: ::unity::Il2CppString,
207 ) -> ::unity::SystemType {
208 let __mi = Self::get_interface_method_info();
209 let __inner: extern "C" fn(::unity::IlInstance, ::unity::SystemType, ::unity::Il2CppString, ::unity::OptionalMethod) -> ::unity::SystemType =
210 ::core::mem::transmute(__mi.method_ptr);
211 __inner(this.into(), r#type, name, ::core::option::Option::None)
212 }
213}
214
215#[cfg(feature = "moon_sharp-interpreter-compatibility-frameworks-frameworkcurrent")]
216impl FrameworkCurrent {
217 #[doc = "`.ctor()` — no args"]
218 pub fn new() -> Self {
219 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
220 panic!(
221 "{}
222::{}
223 failed to instantiate",
224 ::core::stringify!(FrameworkCurrent),
225 ::core::stringify!(new),
226 )
227 });
228 <Self as IFrameworkCurrentMethods>::ctor(this);
229 this
230 }
231}
232
233#[cfg(feature = "moon_sharp-interpreter-compatibility-frameworks-frameworkcurrent")]
234#[doc(hidden)]
235pub mod prelude {
236 pub use super::{FrameworkCurrent, IFrameworkCurrent, IFrameworkCurrentMethods};
237 #[cfg(feature = "moon_sharp-interpreter-compatibility-frameworks-frameworkbase")]
238 pub use crate::moon_sharp::interpreter::compatibility::frameworks::frameworkbase::IFrameworkBaseMethods;
239 #[cfg(feature = "moon_sharp-interpreter-compatibility-frameworks-frameworkclrbase")]
240 pub use crate::moon_sharp::interpreter::compatibility::frameworks::frameworkclrbase::IFrameworkClrBaseMethods;
241 #[cfg(feature = "moon_sharp-interpreter-compatibility-frameworks-frameworkreflectionbase")]
242 pub use crate::moon_sharp::interpreter::compatibility::frameworks::frameworkreflectionbase::IFrameworkReflectionBaseMethods;
243 #[cfg(feature = "system-object")]
244 pub use crate::system::object::IObjectMethods;
245 pub use crate::{
246 moon_sharp::interpreter::compatibility::frameworks::{
247 frameworkbase::IFrameworkBase, frameworkclrbase::IFrameworkClrBase, frameworkreflectionbase::IFrameworkReflectionBase,
248 },
249 system::object::IObject,
250 };
251}