engage/generated/unity_engine/bindings/
nativetypeattribute.rs1#[cfg(feature = "unity_engine-bindings-nativetypeattribute-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8
9 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/bindings/nativetypeattribute/NativeTypeAttribute.md"))]
10 #[::unity::class(namespace = "UnityEngine.Bindings", name = "NativeTypeAttribute")]
11 pub struct NativeTypeAttribute {}
12}
13
14#[cfg(feature = "unity_engine-bindings-nativetypeattribute-types")]
15pub use __types::*;
16
17#[cfg(feature = "unity_engine-bindings-nativetypeattribute")]
18pub trait INativeTypeAttributeMethods: INativeTypeAttribute {
19 #[doc = "`set_Header(::unity::Il2CppString)` overload"]
20 fn set_header(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
21 unsafe {
22 let __receiver = <NativeTypeAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
23 {
24 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
25 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
26 panic!(
27 "unity: virtual slot {}
28 out of range (vtable len {}
29) on the runtime class behind {}
30 (method `{}
31`)",
32 4usize,
33 __vt.len(),
34 <NativeTypeAttribute as ::unity::ClassIdentity>::NAME,
35 "set_Header",
36 )
37 });
38 let __inner: extern "C" fn(NativeTypeAttribute, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
39 ::core::mem::transmute(__vi.method_ptr);
40 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
41 __inner(__receiver, ::core::convert::Into::into(value), __mi)
42 }
43 }
44 }
45 #[doc = "`set_IntermediateScriptingStructName(::unity::Il2CppString)` overload"]
46 fn set_intermediate_scripting_struct_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
47 unsafe {
48 let __receiver = <NativeTypeAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
49 ::unity::il2cpp_call!((::unity::module_base()+0x3f38280usize)as*mut u8,();
50(NativeTypeAttribute)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
51 }
52 }
53 #[doc = "`set_CodegenOptions(crate::unity_engine::bindings::codegenoptions::CodegenOptions)` overload"]
54 fn set_codegen_options(self, value: impl ::core::convert::Into<crate::unity_engine::bindings::codegenoptions::CodegenOptions>) -> () {
55 unsafe {
56 let __receiver = <NativeTypeAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57 {
58 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
59 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
60 panic!(
61 "unity: virtual slot {}
62 out of range (vtable len {}
63) on the runtime class behind {}
64 (method `{}
65`)",
66 5usize,
67 __vt.len(),
68 <NativeTypeAttribute as ::unity::ClassIdentity>::NAME,
69 "set_CodegenOptions",
70 )
71 });
72 let __inner: extern "C" fn(
73 NativeTypeAttribute,
74 crate::unity_engine::bindings::codegenoptions::CodegenOptions,
75 ::unity::OptionalMethod,
76 ) -> () = ::core::mem::transmute(__vi.method_ptr);
77 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
78 __inner(__receiver, ::core::convert::Into::into(value), __mi)
79 }
80 }
81 }
82 #[doc = "`.ctor()` overload"]
83 fn ctor(self) -> () {
84 unsafe {
85 let __receiver = <NativeTypeAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
86 ::unity::il2cpp_call!((::unity::module_base()+0x3f382a0usize)as*mut u8,();
87(NativeTypeAttribute)__receiver)
88 }
89 }
90 #[doc = "`.ctor(crate::unity_engine::bindings::codegenoptions::CodegenOptions)` overload"]
91 fn ctor_2(self, codegen_options: impl ::core::convert::Into<crate::unity_engine::bindings::codegenoptions::CodegenOptions>) -> () {
92 unsafe {
93 let __receiver = <NativeTypeAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
94 ::unity::il2cpp_call!((::unity::module_base()+0x3f382d0usize)as*mut u8,();
95(NativeTypeAttribute)__receiver,(crate::unity_engine::bindings::codegenoptions::CodegenOptions)::core::convert::Into::into(codegen_options))
96 }
97 }
98 #[doc = "`.ctor(::unity::Il2CppString)` overload"]
99 fn ctor_3(self, header: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
100 unsafe {
101 let __receiver = <NativeTypeAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
102 ::unity::il2cpp_call!((::unity::module_base()+0x3f38300usize)as*mut u8,();
103(NativeTypeAttribute)__receiver,(::unity::Il2CppString)::core::convert::Into::into(header))
104 }
105 }
106 #[doc = "`.ctor(crate::unity_engine::bindings::codegenoptions::CodegenOptions, ::unity::Il2CppString)` overload"]
107 fn ctor_4(
108 self,
109 codegen_options: impl ::core::convert::Into<crate::unity_engine::bindings::codegenoptions::CodegenOptions>,
110 intermediate_struct_name: impl ::core::convert::Into<::unity::Il2CppString>,
111 ) -> () {
112 unsafe {
113 let __receiver = <NativeTypeAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
114 ::unity::il2cpp_call!((::unity::module_base()+0x3f38420usize)as*mut u8,();
115(NativeTypeAttribute)__receiver,(crate::unity_engine::bindings::codegenoptions::CodegenOptions)::core::convert::Into::into(codegen_options),(::unity::Il2CppString)::core::convert::Into::into(intermediate_struct_name))
116 }
117 }
118}
119
120#[cfg(feature = "unity_engine-bindings-nativetypeattribute")]
121impl<__T: INativeTypeAttribute> INativeTypeAttributeMethods for __T {}
122
123#[cfg(feature = "unity_engine-bindings-nativetypeattribute")]
124impl NativeTypeAttribute {
125 pub fn set_header_method_info() -> &'static ::unity::il2cpp::MethodInfo {
126 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
127 }
128
129 pub fn set_intermediate_scripting_struct_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
130 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
131 }
132
133 pub fn set_codegen_options_method_info() -> &'static ::unity::il2cpp::MethodInfo {
134 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
135 }
136
137 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
138 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
139 }
140
141 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
142 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
143 }
144
145 pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
146 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
147 }
148
149 pub fn ctor_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
150 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
151 }
152}
153
154#[cfg(feature = "unity_engine-bindings-nativetypeattribute")]
155impl NativeTypeAttribute {
156 #[doc = "Direct (non-virtual) call to `NativeTypeAttribute`'s own `set_Header`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
157 pub unsafe fn set_header(this: impl ::core::convert::Into<::unity::IlInstance>, value: ::unity::Il2CppString) -> () {
158 let __mi = Self::set_header_method_info();
159 let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
160 ::core::mem::transmute(__mi.method_ptr);
161 __inner(this.into(), value, ::core::option::Option::None)
162 }
163
164 #[doc = "Direct (non-virtual) call to `NativeTypeAttribute`'s own `set_CodegenOptions`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
165 pub unsafe fn set_codegen_options(
166 this: impl ::core::convert::Into<::unity::IlInstance>,
167 value: crate::unity_engine::bindings::codegenoptions::CodegenOptions,
168 ) -> () {
169 let __mi = Self::set_codegen_options_method_info();
170 let __inner: extern "C" fn(
171 ::unity::IlInstance,
172 crate::unity_engine::bindings::codegenoptions::CodegenOptions,
173 ::unity::OptionalMethod,
174 ) -> () = ::core::mem::transmute(__mi.method_ptr);
175 __inner(this.into(), value, ::core::option::Option::None)
176 }
177}
178
179#[cfg(feature = "unity_engine-bindings-nativetypeattribute")]
180impl NativeTypeAttribute {
181 #[doc = "`.ctor()` — no args"]
182 pub fn new() -> Self {
183 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
184 panic!(
185 "{}
186::{}
187 failed to instantiate",
188 ::core::stringify!(NativeTypeAttribute),
189 ::core::stringify!(new),
190 )
191 });
192 <Self as INativeTypeAttributeMethods>::ctor(this);
193 this
194 }
195
196 #[doc = "`.ctor(crate::unity_engine::bindings::codegenoptions::CodegenOptions)` — overload selector"]
197 pub fn new_2(codegen_options: crate::unity_engine::bindings::codegenoptions::CodegenOptions) -> Self {
198 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
199 panic!(
200 "{}
201::{}
202 failed to instantiate",
203 ::core::stringify!(NativeTypeAttribute),
204 ::core::stringify!(new_2),
205 )
206 });
207 <Self as INativeTypeAttributeMethods>::ctor_2(this, codegen_options);
208 this
209 }
210
211 #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
212 pub fn new_3(header: ::unity::Il2CppString) -> Self {
213 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
214 panic!(
215 "{}
216::{}
217 failed to instantiate",
218 ::core::stringify!(NativeTypeAttribute),
219 ::core::stringify!(new_3),
220 )
221 });
222 <Self as INativeTypeAttributeMethods>::ctor_3(this, header);
223 this
224 }
225
226 #[doc = "`.ctor(crate::unity_engine::bindings::codegenoptions::CodegenOptions, ::unity::Il2CppString)` — overload selector"]
227 pub fn new_4(
228 codegen_options: crate::unity_engine::bindings::codegenoptions::CodegenOptions,
229 intermediate_struct_name: ::unity::Il2CppString,
230 ) -> Self {
231 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
232 panic!(
233 "{}
234::{}
235 failed to instantiate",
236 ::core::stringify!(NativeTypeAttribute),
237 ::core::stringify!(new_4),
238 )
239 });
240 <Self as INativeTypeAttributeMethods>::ctor_4(this, codegen_options, intermediate_struct_name);
241 this
242 }
243}
244
245#[cfg(feature = "unity_engine-bindings-nativetypeattribute")]
246#[doc(hidden)]
247pub mod prelude {
248 pub use super::{INativeTypeAttribute, INativeTypeAttributeMethods, NativeTypeAttribute};
249}