Skip to main content

engage/generated/app/
templatearraydata.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-templatearraydata-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            structbase::{IStructBase, StructBase},
11            structdataarray_1::{IStructDataArray_1, StructDataArray_1},
12            structtemplate_1::{IStructTemplate_1, StructTemplate_1},
13        },
14        system::object::{IObject, Object},
15    };
16
17    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/templatearraydata/TemplateArrayData.md"))]
18    #[::unity::class(namespace = "App", name = "TemplateArrayData")]
19    #[parent(crate::app::structdataarray_1::StructDataArray_1<crate::app::templatearraydata::TemplateArrayData>)]
20    pub struct TemplateArrayData {}
21}
22
23#[cfg(feature = "app-templatearraydata-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-templatearraydata")]
27impl TemplateArrayData {
28    #[doc = "`Load()` overload"]
29    pub fn load() -> () {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x21e20e0usize)as*mut u8,();
32            )
33        }
34    }
35}
36
37#[cfg(feature = "app-templatearraydata")]
38pub trait ITemplateArrayDataMethods: ITemplateArrayData {
39    #[doc = "`get_Name()` overload"]
40    fn get_name(self) -> ::unity::Il2CppString {
41        unsafe {
42            let __receiver = <TemplateArrayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43            ::unity::il2cpp_call!((::unity::module_base()+0x21e2190usize)as*mut u8, ::unity::Il2CppString;
44(TemplateArrayData)__receiver)
45        }
46    }
47    #[doc = "`set_Name(::unity::Il2CppString)` overload"]
48    fn set_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
49        unsafe {
50            let __receiver = <TemplateArrayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51            ::unity::il2cpp_call!((::unity::module_base()+0x21e21a0usize)as*mut u8,();
52(TemplateArrayData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
53        }
54    }
55    #[doc = "`get_Value1()` overload"]
56    fn get_value1(self) -> i32 {
57        unsafe {
58            let __receiver = <TemplateArrayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59            ::unity::il2cpp_call!((::unity::module_base()+0x21e21b0usize)as*mut u8,i32;
60(TemplateArrayData)__receiver)
61        }
62    }
63    #[doc = "`set_Value1(i32)` overload"]
64    fn set_value1(self, value: impl ::core::convert::Into<i32>) -> () {
65        unsafe {
66            let __receiver = <TemplateArrayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67            ::unity::il2cpp_call!((::unity::module_base()+0x21e21c0usize)as*mut u8,();
68(TemplateArrayData)__receiver,(i32)::core::convert::Into::into(value))
69        }
70    }
71    #[doc = "`get_Value2()` overload"]
72    fn get_value2(self) -> f32 {
73        unsafe {
74            let __receiver = <TemplateArrayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75            ::unity::il2cpp_call!((::unity::module_base()+0x21e21d0usize)as*mut u8,f32;
76(TemplateArrayData)__receiver)
77        }
78    }
79    #[doc = "`set_Value2(f32)` overload"]
80    fn set_value2(self, value: impl ::core::convert::Into<f32>) -> () {
81        unsafe {
82            let __receiver = <TemplateArrayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83            ::unity::il2cpp_call!((::unity::module_base()+0x21e21e0usize)as*mut u8,();
84(TemplateArrayData)__receiver,(f32)::core::convert::Into::into(value))
85        }
86    }
87    #[doc = "`get_Value3()` overload"]
88    fn get_value3(self) -> i32 {
89        unsafe {
90            let __receiver = <TemplateArrayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91            ::unity::il2cpp_call!((::unity::module_base()+0x21e21f0usize)as*mut u8,i32;
92(TemplateArrayData)__receiver)
93        }
94    }
95    #[doc = "`set_Value3(i32)` overload"]
96    fn set_value3(self, value: impl ::core::convert::Into<i32>) -> () {
97        unsafe {
98            let __receiver = <TemplateArrayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99            ::unity::il2cpp_call!((::unity::module_base()+0x21e2200usize)as*mut u8,();
100(TemplateArrayData)__receiver,(i32)::core::convert::Into::into(value))
101        }
102    }
103    #[doc = "`GetDebugName()` overload"]
104    fn get_debug_name(self) -> ::unity::Il2CppString {
105        unsafe {
106            let __receiver = <TemplateArrayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107            {
108                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
109                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
110                    panic!(
111                        "unity: virtual slot {}
112 out of range (vtable len {}
113) on the runtime class behind {}
114 (method `{}
115`)",
116                        8usize,
117                        __vt.len(),
118                        <TemplateArrayData as ::unity::ClassIdentity>::NAME,
119                        "GetDebugName",
120                    )
121                });
122                let __inner: extern "C" fn(TemplateArrayData, ::unity::OptionalMethod) -> ::unity::Il2CppString =
123                    ::core::mem::transmute(__vi.method_ptr);
124                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
125                __inner(__receiver, __mi)
126            }
127        }
128    }
129    #[doc = "`.ctor()` overload"]
130    fn ctor(self) -> () {
131        unsafe {
132            let __receiver = <TemplateArrayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
133            ::unity::il2cpp_call!((::unity::module_base()+0x21e2220usize)as*mut u8,();
134(TemplateArrayData)__receiver)
135        }
136    }
137}
138
139#[cfg(feature = "app-templatearraydata")]
140impl<__T: ITemplateArrayData> ITemplateArrayDataMethods for __T {}
141
142#[cfg(feature = "app-templatearraydata")]
143impl TemplateArrayData {
144    pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
145        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
146    }
147
148    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
149        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
150    }
151
152    pub fn set_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
154    }
155
156    pub fn get_value1_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
158    }
159
160    pub fn set_value1_method_info() -> &'static ::unity::il2cpp::MethodInfo {
161        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
162    }
163
164    pub fn get_value2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
165        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
166    }
167
168    pub fn set_value2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
169        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
170    }
171
172    pub fn get_value3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
174    }
175
176    pub fn set_value3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
177        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
178    }
179
180    pub fn get_debug_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
182    }
183
184    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
186    }
187}
188
189#[cfg(feature = "app-templatearraydata")]
190impl TemplateArrayData {
191    #[doc = "Direct (non-virtual) call to `TemplateArrayData`'s own `GetDebugName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
192    pub unsafe fn get_debug_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
193        let __mi = Self::get_debug_name_method_info();
194        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
195        __inner(this.into(), ::core::option::Option::None)
196    }
197}
198
199#[cfg(feature = "app-templatearraydata")]
200impl TemplateArrayData {
201    #[doc = "`.ctor()` — no args"]
202    pub fn new() -> Self {
203        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
204            panic!(
205                "{}
206::{}
207 failed to instantiate",
208                ::core::stringify!(TemplateArrayData),
209                ::core::stringify!(new),
210            )
211        });
212        <Self as ITemplateArrayDataMethods>::ctor(this);
213        this
214    }
215}
216
217#[cfg(feature = "app-templatearraydata")]
218#[doc(hidden)]
219pub mod prelude {
220    pub use super::{ITemplateArrayData, ITemplateArrayDataMethods, TemplateArrayData};
221    #[cfg(feature = "app-structbase")]
222    pub use crate::app::structbase::IStructBaseMethods;
223    #[cfg(feature = "app-structdataarray_1")]
224    pub use crate::app::structdataarray_1::IStructDataArray_1Methods;
225    #[cfg(feature = "app-structtemplate_1")]
226    pub use crate::app::structtemplate_1::IStructTemplate_1Methods;
227    #[cfg(feature = "system-object")]
228    pub use crate::system::object::IObjectMethods;
229    pub use crate::{
230        app::{structbase::IStructBase, structdataarray_1::IStructDataArray_1, structtemplate_1::IStructTemplate_1},
231        system::object::IObject,
232    };
233}