Skip to main content

engage/generated/app/
groundattribute.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-groundattribute-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            structbase::{IStructBase, StructBase},
11            structdata_1::{IStructData_1, StructData_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/groundattribute/GroundAttribute.md"))]
18    #[::unity::class(namespace = "App", name = "GroundAttribute")]
19    #[parent(crate::app::structdata_1::StructData_1<crate::app::groundattribute::GroundAttribute>)]
20    pub struct GroundAttribute {}
21}
22
23#[cfg(feature = "app-groundattribute-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-groundattribute")]
27impl GroundAttribute {
28    #[doc = "`Load()` overload"]
29    pub fn load() -> () {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x29708d0usize)as*mut u8,();
32            )
33        }
34    }
35}
36
37#[cfg(feature = "app-groundattribute")]
38pub trait IGroundAttributeMethods: IGroundAttribute {
39    #[doc = "`get_Label()` overload"]
40    fn get_label(self) -> ::unity::Il2CppString {
41        unsafe {
42            let __receiver = <GroundAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43            ::unity::il2cpp_call!((::unity::module_base()+0x2970980usize)as*mut u8, ::unity::Il2CppString;
44(GroundAttribute)__receiver)
45        }
46    }
47    #[doc = "`set_Label(::unity::Il2CppString)` overload"]
48    fn set_label(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
49        unsafe {
50            let __receiver = <GroundAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51            ::unity::il2cpp_call!((::unity::module_base()+0x2970990usize)as*mut u8,();
52(GroundAttribute)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
53        }
54    }
55    #[doc = "`get_Name()` overload"]
56    fn get_name(self) -> ::unity::Il2CppString {
57        unsafe {
58            let __receiver = <GroundAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59            ::unity::il2cpp_call!((::unity::module_base()+0x29709a0usize)as*mut u8, ::unity::Il2CppString;
60(GroundAttribute)__receiver)
61        }
62    }
63    #[doc = "`set_Name(::unity::Il2CppString)` overload"]
64    fn set_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
65        unsafe {
66            let __receiver = <GroundAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67            ::unity::il2cpp_call!((::unity::module_base()+0x29709b0usize)as*mut u8,();
68(GroundAttribute)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
69        }
70    }
71    #[doc = "`get_Sound()` overload"]
72    fn get_sound(self) -> ::unity::Il2CppString {
73        unsafe {
74            let __receiver = <GroundAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75            ::unity::il2cpp_call!((::unity::module_base()+0x29709c0usize)as*mut u8, ::unity::Il2CppString;
76(GroundAttribute)__receiver)
77        }
78    }
79    #[doc = "`set_Sound(::unity::Il2CppString)` overload"]
80    fn set_sound(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
81        unsafe {
82            let __receiver = <GroundAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83            ::unity::il2cpp_call!((::unity::module_base()+0x29709d0usize)as*mut u8,();
84(GroundAttribute)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
85        }
86    }
87    #[doc = "`get_Particle()` overload"]
88    fn get_particle(self) -> ::unity::Il2CppString {
89        unsafe {
90            let __receiver = <GroundAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91            ::unity::il2cpp_call!((::unity::module_base()+0x29709e0usize)as*mut u8, ::unity::Il2CppString;
92(GroundAttribute)__receiver)
93        }
94    }
95    #[doc = "`set_Particle(::unity::Il2CppString)` overload"]
96    fn set_particle(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
97        unsafe {
98            let __receiver = <GroundAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99            ::unity::il2cpp_call!((::unity::module_base()+0x29709f0usize)as*mut u8,();
100(GroundAttribute)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
101        }
102    }
103    #[doc = "`GetDebugName()` overload"]
104    fn get_debug_name(self) -> ::unity::Il2CppString {
105        unsafe {
106            let __receiver = <GroundAttribute 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                        <GroundAttribute as ::unity::ClassIdentity>::NAME,
119                        "GetDebugName",
120                    )
121                });
122                let __inner: extern "C" fn(GroundAttribute, ::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 = <GroundAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
133            ::unity::il2cpp_call!((::unity::module_base()+0x2970a10usize)as*mut u8,();
134(GroundAttribute)__receiver)
135        }
136    }
137}
138
139#[cfg(feature = "app-groundattribute")]
140impl<__T: IGroundAttribute> IGroundAttributeMethods for __T {}
141
142#[cfg(feature = "app-groundattribute")]
143impl GroundAttribute {
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_label_method_info() -> &'static ::unity::il2cpp::MethodInfo {
149        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
150    }
151
152    pub fn set_label_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
154    }
155
156    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
158    }
159
160    pub fn set_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
161        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
162    }
163
164    pub fn get_sound_method_info() -> &'static ::unity::il2cpp::MethodInfo {
165        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
166    }
167
168    pub fn set_sound_method_info() -> &'static ::unity::il2cpp::MethodInfo {
169        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
170    }
171
172    pub fn get_particle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
174    }
175
176    pub fn set_particle_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-groundattribute")]
190impl GroundAttribute {
191    #[doc = "Direct (non-virtual) call to `GroundAttribute`'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-groundattribute")]
200impl GroundAttribute {
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!(GroundAttribute),
209                ::core::stringify!(new),
210            )
211        });
212        <Self as IGroundAttributeMethods>::ctor(this);
213        this
214    }
215}
216
217#[cfg(feature = "app-groundattribute")]
218#[doc(hidden)]
219pub mod prelude {
220    pub use super::{GroundAttribute, IGroundAttribute, IGroundAttributeMethods};
221    #[cfg(feature = "app-structbase")]
222    pub use crate::app::structbase::IStructBaseMethods;
223    #[cfg(feature = "app-structdata_1")]
224    pub use crate::app::structdata_1::IStructData_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, structdata_1::IStructData_1, structtemplate_1::IStructTemplate_1},
231        system::object::IObject,
232    };
233}