engage/generated/moon_sharp/interpreter/
refidobject.rs1#[cfg(feature = "moon_sharp-interpreter-refidobject-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/refidobject/RefIdObject.md"))]
11 #[::unity::class(namespace = "MoonSharp.Interpreter", name = "RefIdObject")]
12 #[parent(crate::system::object::Object)]
13 pub struct RefIdObject {
14 #[static_field]
15 #[rename(name = "s_RefIDCounter")]
16 pub s_ref_id_counter: i32,
17 #[offset(16)]
18 #[rename(name = "m_RefID")]
19 pub m_ref_id: i32,
20 }
21}
22
23#[cfg(feature = "moon_sharp-interpreter-refidobject-types")]
24pub use __types::*;
25
26#[cfg(feature = "moon_sharp-interpreter-refidobject")]
27#[doc(hidden)]
28#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
29mod __RefIdObject_unity_raw {
30 use super::*;
31 #[doc(hidden)]
32 #[allow(non_snake_case)]
33 pub mod __lookup_get_reference_id {
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 <RefIdObject as ::unity::ClassIdentity>::class(),
39 "get_ReferenceID",
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 <RefIdObject as ::unity::ClassIdentity>::NAME,
55 "get_ReferenceID",
56 e
57 )
58 },
59 }
60 }
61 }
62 #[doc(hidden)]
63 #[allow(non_snake_case)]
64 pub mod __lookup_format_type_string {
65 use super::*;
66 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
67 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
68 ::unity::lookup::method_info_on_class_with_signature(
69 <RefIdObject as ::unity::ClassIdentity>::class(),
70 "FormatTypeString",
71 1,
72 param_types,
73 false,
74 )
75 });
76 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
77 match &*METHOD {
78 ::core::result::Result::Ok(mi) => *mi,
79 ::core::result::Result::Err(e) => {
80 panic!(
81 "method lookup failed: {}
82::{}
83: {}
84",
85 <RefIdObject as ::unity::ClassIdentity>::NAME,
86 "FormatTypeString",
87 e
88 )
89 },
90 }
91 }
92 }
93 #[doc(hidden)]
94 #[allow(non_snake_case)]
95 pub mod __lookup_ctor {
96 use super::*;
97 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
98 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
99 ::unity::lookup::method_info_on_class_with_signature(<RefIdObject as ::unity::ClassIdentity>::class(), ".ctor", 0, param_types, false)
100 });
101 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
102 match &*METHOD {
103 ::core::result::Result::Ok(mi) => *mi,
104 ::core::result::Result::Err(e) => {
105 panic!(
106 "method lookup failed: {}
107::{}
108: {}
109",
110 <RefIdObject as ::unity::ClassIdentity>::NAME,
111 ".ctor",
112 e
113 )
114 },
115 }
116 }
117 }
118 #[doc(hidden)]
119 #[allow(non_snake_case)]
120 pub mod __lookup_cctor {
121 use super::*;
122 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
123 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
124 ::unity::lookup::method_info_on_class_with_signature(<RefIdObject as ::unity::ClassIdentity>::class(), ".cctor", 0, param_types, true)
125 });
126 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
127 match &*METHOD {
128 ::core::result::Result::Ok(mi) => *mi,
129 ::core::result::Result::Err(e) => {
130 panic!(
131 "method lookup failed: {}
132::{}
133: {}
134",
135 <RefIdObject as ::unity::ClassIdentity>::NAME,
136 ".cctor",
137 e
138 )
139 },
140 }
141 }
142 }
143}
144
145#[cfg(feature = "moon_sharp-interpreter-refidobject")]
146impl RefIdObject {
147 #[doc = "`.cctor()` overload"]
148 pub fn cctor() -> () {
149 unsafe {
150 ::unity::il2cpp_call!(__RefIdObject_unity_raw::__lookup_cctor::get_method_info().method_ptr,();
151 )
152 }
153 }
154}
155
156#[cfg(feature = "moon_sharp-interpreter-refidobject")]
157pub trait IRefIdObjectMethods: IRefIdObject {
158 #[doc = "`get_ReferenceID()` overload"]
159 fn get_reference_id(self) -> i32 {
160 unsafe {
161 let __receiver = <RefIdObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
162 ::unity::il2cpp_call!(__RefIdObject_unity_raw::__lookup_get_reference_id::get_method_info().method_ptr,i32;
163(RefIdObject)__receiver)
164 }
165 }
166 #[doc = "`FormatTypeString(::unity::Il2CppString)` overload"]
167 fn format_type_string(self, type_string: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
168 unsafe {
169 let __receiver = <RefIdObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
170 ::unity::il2cpp_call!(__RefIdObject_unity_raw::__lookup_format_type_string::get_method_info().method_ptr, ::unity::Il2CppString;
171(RefIdObject)__receiver,(::unity::Il2CppString)::core::convert::Into::into(type_string))
172 }
173 }
174 #[doc = "`.ctor()` overload"]
175 fn ctor(self) -> () {
176 unsafe {
177 let __receiver = <RefIdObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
178 ::unity::il2cpp_call!(__RefIdObject_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
179(RefIdObject)__receiver)
180 }
181 }
182}
183
184#[cfg(feature = "moon_sharp-interpreter-refidobject")]
185impl<__T: IRefIdObject> IRefIdObjectMethods for __T {}
186
187#[cfg(feature = "moon_sharp-interpreter-refidobject")]
188impl RefIdObject {
189 pub fn get_reference_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
190 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
191 }
192
193 pub fn format_type_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
194 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
195 }
196
197 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
198 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
199 }
200
201 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
202 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
203 }
204}
205
206#[cfg(feature = "moon_sharp-interpreter-refidobject")]
207impl RefIdObject {
208 #[doc = "`.ctor()` — no args"]
209 pub fn new() -> Self {
210 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
211 panic!(
212 "{}
213::{}
214 failed to instantiate",
215 ::core::stringify!(RefIdObject),
216 ::core::stringify!(new),
217 )
218 });
219 <Self as IRefIdObjectMethods>::ctor(this);
220 this
221 }
222}
223
224#[cfg(feature = "moon_sharp-interpreter-refidobject")]
225#[doc(hidden)]
226pub mod prelude {
227 pub use super::{IRefIdObject, IRefIdObjectMethods, RefIdObject};
228 pub use crate::system::object::IObject;
229 #[cfg(feature = "system-object")]
230 pub use crate::system::object::IObjectMethods;
231}