Skip to main content

engage/generated/app/
animalinsidemenucontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-animalinsidemenucontent-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::basicmenucontent::{BasicMenuContent, IBasicMenuContent},
10        system::object::{IObject, Object},
11        unity_engine::{
12            behaviour::{Behaviour, IBehaviour},
13            component::{Component, IComponent},
14            monobehaviour::{IMonoBehaviour, MonoBehaviour},
15            object_2::{IObject_2, Object_2},
16        },
17    };
18
19    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/animalinsidemenucontent/AnimalInsideMenuContent.md"))]
20    #[::unity::class(namespace = "App", name = "AnimalInsideMenuContent")]
21    #[parent(crate::app::basicmenucontent::BasicMenuContent)]
22    pub struct AnimalInsideMenuContent {}
23}
24
25#[cfg(feature = "app-animalinsidemenucontent-types")]
26pub use __types::*;
27
28#[cfg(feature = "app-animalinsidemenucontent")]
29pub trait IAnimalInsideMenuContentMethods: IAnimalInsideMenuContent {
30    #[doc = "`get_InnerCursor()` overload"]
31    fn get_inner_cursor(self) -> crate::unity_engine::gameobject::GameObject {
32        unsafe {
33            let __receiver =
34                <AnimalInsideMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
35            ::unity::il2cpp_call!((::unity::module_base()+0x1c93c10usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
36(AnimalInsideMenuContent)__receiver)
37        }
38    }
39    #[doc = "`set_InnerCursor(crate::unity_engine::gameobject::GameObject)` overload"]
40    fn set_inner_cursor(self, value: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> () {
41        unsafe {
42            let __receiver =
43                <AnimalInsideMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
44            ::unity::il2cpp_call!((::unity::module_base()+0x1c93c20usize)as*mut u8,();
45(AnimalInsideMenuContent)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(value))
46        }
47    }
48    #[doc = "`GetMenuItemContentMax()` overload"]
49    fn get_menu_item_content_max(self) -> i32 {
50        unsafe {
51            let __receiver =
52                <AnimalInsideMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
53            {
54                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
55                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
56                    panic!(
57                        "unity: virtual slot {}
58 out of range (vtable len {}
59) on the runtime class behind {}
60 (method `{}
61`)",
62                        4usize,
63                        __vt.len(),
64                        <AnimalInsideMenuContent as ::unity::ClassIdentity>::NAME,
65                        "GetMenuItemContentMax",
66                    )
67                });
68                let __inner: extern "C" fn(AnimalInsideMenuContent, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
69                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
70                __inner(__receiver, __mi)
71            }
72        }
73    }
74    #[doc = "`CalcW()` overload"]
75    fn calc_w(self) -> f32 {
76        unsafe {
77            let __receiver =
78                <AnimalInsideMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79            {
80                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
81                let __vi = *__vt.get(21usize).unwrap_or_else(|| {
82                    panic!(
83                        "unity: virtual slot {}
84 out of range (vtable len {}
85) on the runtime class behind {}
86 (method `{}
87`)",
88                        21usize,
89                        __vt.len(),
90                        <AnimalInsideMenuContent as ::unity::ClassIdentity>::NAME,
91                        "CalcW",
92                    )
93                });
94                let __inner: extern "C" fn(AnimalInsideMenuContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
95                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
96                __inner(__receiver, __mi)
97            }
98        }
99    }
100    #[doc = "`CalcH()` overload"]
101    fn calc_h(self) -> f32 {
102        unsafe {
103            let __receiver =
104                <AnimalInsideMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
105            {
106                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
107                let __vi = *__vt.get(22usize).unwrap_or_else(|| {
108                    panic!(
109                        "unity: virtual slot {}
110 out of range (vtable len {}
111) on the runtime class behind {}
112 (method `{}
113`)",
114                        22usize,
115                        __vt.len(),
116                        <AnimalInsideMenuContent as ::unity::ClassIdentity>::NAME,
117                        "CalcH",
118                    )
119                });
120                let __inner: extern "C" fn(AnimalInsideMenuContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
121                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
122                __inner(__receiver, __mi)
123            }
124        }
125    }
126    #[doc = "`AfterBuild()` overload"]
127    fn after_build(self) -> () {
128        unsafe {
129            let __receiver =
130                <AnimalInsideMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
131            {
132                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
133                let __vi = *__vt.get(27usize).unwrap_or_else(|| {
134                    panic!(
135                        "unity: virtual slot {}
136 out of range (vtable len {}
137) on the runtime class behind {}
138 (method `{}
139`)",
140                        27usize,
141                        __vt.len(),
142                        <AnimalInsideMenuContent as ::unity::ClassIdentity>::NAME,
143                        "AfterBuild",
144                    )
145                });
146                let __inner: extern "C" fn(AnimalInsideMenuContent, ::unity::OptionalMethod) -> () = ::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, __mi)
149            }
150        }
151    }
152    #[doc = "`CalcCursorMovedPosY(i32)` overload"]
153    fn calc_cursor_moved_pos_y(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
154        unsafe {
155            let __receiver =
156                <AnimalInsideMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
157            {
158                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
159                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
160                    panic!(
161                        "unity: virtual slot {}
162 out of range (vtable len {}
163) on the runtime class behind {}
164 (method `{}
165`)",
166                        10usize,
167                        __vt.len(),
168                        <AnimalInsideMenuContent as ::unity::ClassIdentity>::NAME,
169                        "CalcCursorMovedPosY",
170                    )
171                });
172                let __inner: extern "C" fn(AnimalInsideMenuContent, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
173                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
174                __inner(__receiver, ::core::convert::Into::into(menu_item_index), __mi)
175            }
176        }
177    }
178    #[doc = "`.ctor()` overload"]
179    fn ctor(self) -> () {
180        unsafe {
181            let __receiver =
182                <AnimalInsideMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
183            ::unity::il2cpp_call!((::unity::module_base()+0x1c93e90usize)as*mut u8,();
184(AnimalInsideMenuContent)__receiver)
185        }
186    }
187}
188
189#[cfg(feature = "app-animalinsidemenucontent")]
190impl<__T: IAnimalInsideMenuContent> IAnimalInsideMenuContentMethods for __T {}
191
192#[cfg(feature = "app-animalinsidemenucontent")]
193impl AnimalInsideMenuContent {
194    pub fn get_inner_cursor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
195        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
196    }
197
198    pub fn set_inner_cursor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
199        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
200    }
201
202    pub fn get_menu_item_content_max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
203        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
204    }
205
206    pub fn calc_w_method_info() -> &'static ::unity::il2cpp::MethodInfo {
207        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
208    }
209
210    pub fn calc_h_method_info() -> &'static ::unity::il2cpp::MethodInfo {
211        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
212    }
213
214    pub fn after_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
215        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
216    }
217
218    pub fn calc_cursor_moved_pos_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
219        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
220    }
221
222    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
223        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
224    }
225}
226
227#[cfg(feature = "app-animalinsidemenucontent")]
228impl AnimalInsideMenuContent {
229    #[doc = "Direct (non-virtual) call to `AnimalInsideMenuContent`'s own `GetMenuItemContentMax`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
230    pub unsafe fn get_menu_item_content_max(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
231        let __mi = Self::get_menu_item_content_max_method_info();
232        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
233        __inner(this.into(), ::core::option::Option::None)
234    }
235
236    #[doc = "Direct (non-virtual) call to `AnimalInsideMenuContent`'s own `CalcW`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
237    pub unsafe fn calc_w(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
238        let __mi = Self::calc_w_method_info();
239        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
240        __inner(this.into(), ::core::option::Option::None)
241    }
242
243    #[doc = "Direct (non-virtual) call to `AnimalInsideMenuContent`'s own `CalcH`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
244    pub unsafe fn calc_h(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
245        let __mi = Self::calc_h_method_info();
246        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
247        __inner(this.into(), ::core::option::Option::None)
248    }
249
250    #[doc = "Direct (non-virtual) call to `AnimalInsideMenuContent`'s own `AfterBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
251    pub unsafe fn after_build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
252        let __mi = Self::after_build_method_info();
253        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
254        __inner(this.into(), ::core::option::Option::None)
255    }
256
257    #[doc = "Direct (non-virtual) call to `AnimalInsideMenuContent`'s own `CalcCursorMovedPosY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
258    pub unsafe fn calc_cursor_moved_pos_y(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
259        let __mi = Self::calc_cursor_moved_pos_y_method_info();
260        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
261        __inner(this.into(), menu_item_index, ::core::option::Option::None)
262    }
263}
264
265#[cfg(feature = "app-animalinsidemenucontent")]
266impl AnimalInsideMenuContent {
267    #[doc = "`.ctor()` — no args"]
268    pub fn new() -> Self {
269        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
270            panic!(
271                "{}
272::{}
273 failed to instantiate",
274                ::core::stringify!(AnimalInsideMenuContent),
275                ::core::stringify!(new),
276            )
277        });
278        <Self as IAnimalInsideMenuContentMethods>::ctor(this);
279        this
280    }
281}
282
283#[cfg(feature = "app-animalinsidemenucontent")]
284#[doc(hidden)]
285pub mod prelude {
286    pub use super::{AnimalInsideMenuContent, IAnimalInsideMenuContent, IAnimalInsideMenuContentMethods};
287    #[cfg(feature = "app-basicmenucontent")]
288    pub use crate::app::basicmenucontent::IBasicMenuContentMethods;
289    #[cfg(feature = "system-object")]
290    pub use crate::system::object::IObjectMethods;
291    #[cfg(feature = "unity_engine-behaviour")]
292    pub use crate::unity_engine::behaviour::IBehaviourMethods;
293    #[cfg(feature = "unity_engine-component")]
294    pub use crate::unity_engine::component::IComponentMethods;
295    #[cfg(feature = "unity_engine-monobehaviour")]
296    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
297    #[cfg(feature = "unity_engine-object_2")]
298    pub use crate::unity_engine::object_2::IObject_2Methods;
299    pub use crate::{
300        app::basicmenucontent::IBasicMenuContent,
301        system::object::IObject,
302        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
303    };
304}