Skip to main content

engage/generated/app/
capetowertopmenucontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-capetowertopmenucontent-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/capetowertopmenucontent/CapeTowerTopMenuContent.md"))]
20    #[::unity::class(namespace = "App", name = "CapeTowerTopMenuContent")]
21    #[parent(crate::app::basicmenucontent::BasicMenuContent)]
22    pub struct CapeTowerTopMenuContent {}
23}
24
25#[cfg(feature = "app-capetowertopmenucontent-types")]
26pub use __types::*;
27
28#[cfg(feature = "app-capetowertopmenucontent")]
29pub trait ICapeTowerTopMenuContentMethods: ICapeTowerTopMenuContent {
30    #[doc = "`AfterBuild()` overload"]
31    fn after_build(self) -> () {
32        unsafe {
33            let __receiver =
34                <CapeTowerTopMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
35            {
36                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
37                let __vi = *__vt.get(27usize).unwrap_or_else(|| {
38                    panic!(
39                        "unity: virtual slot {}
40 out of range (vtable len {}
41) on the runtime class behind {}
42 (method `{}
43`)",
44                        27usize,
45                        __vt.len(),
46                        <CapeTowerTopMenuContent as ::unity::ClassIdentity>::NAME,
47                        "AfterBuild",
48                    )
49                });
50                let __inner: extern "C" fn(CapeTowerTopMenuContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
51                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
52                __inner(__receiver, __mi)
53            }
54        }
55    }
56    #[doc = "`CalcCursorMovedPosY(i32)` overload"]
57    fn calc_cursor_moved_pos_y(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
58        unsafe {
59            let __receiver =
60                <CapeTowerTopMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
61            {
62                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
63                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
64                    panic!(
65                        "unity: virtual slot {}
66 out of range (vtable len {}
67) on the runtime class behind {}
68 (method `{}
69`)",
70                        10usize,
71                        __vt.len(),
72                        <CapeTowerTopMenuContent as ::unity::ClassIdentity>::NAME,
73                        "CalcCursorMovedPosY",
74                    )
75                });
76                let __inner: extern "C" fn(CapeTowerTopMenuContent, i32, ::unity::OptionalMethod) -> f32 = ::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(menu_item_index), __mi)
79            }
80        }
81    }
82    #[doc = "`CalcW()` overload"]
83    fn calc_w(self) -> f32 {
84        unsafe {
85            let __receiver =
86                <CapeTowerTopMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
87            {
88                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
89                let __vi = *__vt.get(21usize).unwrap_or_else(|| {
90                    panic!(
91                        "unity: virtual slot {}
92 out of range (vtable len {}
93) on the runtime class behind {}
94 (method `{}
95`)",
96                        21usize,
97                        __vt.len(),
98                        <CapeTowerTopMenuContent as ::unity::ClassIdentity>::NAME,
99                        "CalcW",
100                    )
101                });
102                let __inner: extern "C" fn(CapeTowerTopMenuContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
103                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
104                __inner(__receiver, __mi)
105            }
106        }
107    }
108    #[doc = "`CalcH()` overload"]
109    fn calc_h(self) -> f32 {
110        unsafe {
111            let __receiver =
112                <CapeTowerTopMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
113            {
114                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
115                let __vi = *__vt.get(22usize).unwrap_or_else(|| {
116                    panic!(
117                        "unity: virtual slot {}
118 out of range (vtable len {}
119) on the runtime class behind {}
120 (method `{}
121`)",
122                        22usize,
123                        __vt.len(),
124                        <CapeTowerTopMenuContent as ::unity::ClassIdentity>::NAME,
125                        "CalcH",
126                    )
127                });
128                let __inner: extern "C" fn(CapeTowerTopMenuContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
129                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
130                __inner(__receiver, __mi)
131            }
132        }
133    }
134    #[doc = "`.ctor()` overload"]
135    fn ctor(self) -> () {
136        unsafe {
137            let __receiver =
138                <CapeTowerTopMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
139            ::unity::il2cpp_call!((::unity::module_base()+0x25c0cb0usize)as*mut u8,();
140(CapeTowerTopMenuContent)__receiver)
141        }
142    }
143}
144
145#[cfg(feature = "app-capetowertopmenucontent")]
146impl<__T: ICapeTowerTopMenuContent> ICapeTowerTopMenuContentMethods for __T {}
147
148#[cfg(feature = "app-capetowertopmenucontent")]
149impl CapeTowerTopMenuContent {
150    pub fn after_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
151        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
152    }
153
154    pub fn calc_cursor_moved_pos_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
155        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
156    }
157
158    pub fn calc_w_method_info() -> &'static ::unity::il2cpp::MethodInfo {
159        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
160    }
161
162    pub fn calc_h_method_info() -> &'static ::unity::il2cpp::MethodInfo {
163        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
164    }
165
166    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
167        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
168    }
169}
170
171#[cfg(feature = "app-capetowertopmenucontent")]
172impl CapeTowerTopMenuContent {
173    #[doc = "Direct (non-virtual) call to `CapeTowerTopMenuContent`'s own `AfterBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
174    pub unsafe fn after_build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
175        let __mi = Self::after_build_method_info();
176        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
177        __inner(this.into(), ::core::option::Option::None)
178    }
179
180    #[doc = "Direct (non-virtual) call to `CapeTowerTopMenuContent`'s own `CalcCursorMovedPosY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
181    pub unsafe fn calc_cursor_moved_pos_y(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
182        let __mi = Self::calc_cursor_moved_pos_y_method_info();
183        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
184        __inner(this.into(), menu_item_index, ::core::option::Option::None)
185    }
186
187    #[doc = "Direct (non-virtual) call to `CapeTowerTopMenuContent`'s own `CalcW`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
188    pub unsafe fn calc_w(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
189        let __mi = Self::calc_w_method_info();
190        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
191        __inner(this.into(), ::core::option::Option::None)
192    }
193
194    #[doc = "Direct (non-virtual) call to `CapeTowerTopMenuContent`'s own `CalcH`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
195    pub unsafe fn calc_h(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
196        let __mi = Self::calc_h_method_info();
197        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
198        __inner(this.into(), ::core::option::Option::None)
199    }
200}
201
202#[cfg(feature = "app-capetowertopmenucontent")]
203impl CapeTowerTopMenuContent {
204    #[doc = "`.ctor()` — no args"]
205    pub fn new() -> Self {
206        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
207            panic!(
208                "{}
209::{}
210 failed to instantiate",
211                ::core::stringify!(CapeTowerTopMenuContent),
212                ::core::stringify!(new),
213            )
214        });
215        <Self as ICapeTowerTopMenuContentMethods>::ctor(this);
216        this
217    }
218}
219
220#[cfg(feature = "app-capetowertopmenucontent")]
221#[doc(hidden)]
222pub mod prelude {
223    pub use super::{CapeTowerTopMenuContent, ICapeTowerTopMenuContent, ICapeTowerTopMenuContentMethods};
224    #[cfg(feature = "app-basicmenucontent")]
225    pub use crate::app::basicmenucontent::IBasicMenuContentMethods;
226    #[cfg(feature = "system-object")]
227    pub use crate::system::object::IObjectMethods;
228    #[cfg(feature = "unity_engine-behaviour")]
229    pub use crate::unity_engine::behaviour::IBehaviourMethods;
230    #[cfg(feature = "unity_engine-component")]
231    pub use crate::unity_engine::component::IComponentMethods;
232    #[cfg(feature = "unity_engine-monobehaviour")]
233    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
234    #[cfg(feature = "unity_engine-object_2")]
235    pub use crate::unity_engine::object_2::IObject_2Methods;
236    pub use crate::{
237        app::basicmenucontent::IBasicMenuContent,
238        system::object::IObject,
239        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
240    };
241}