Skip to main content

engage/generated/app/
skillinheritancemenucontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-skillinheritancemenucontent-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/skillinheritancemenucontent/SkillInheritanceMenuContent.md"))]
20    #[::unity::class(namespace = "App", name = "SkillInheritanceMenuContent")]
21    #[parent(crate::app::basicmenucontent::BasicMenuContent)]
22    pub struct SkillInheritanceMenuContent {
23        #[static_field]
24        #[rename(name = "PrefabPath")]
25        pub prefab_path: ::unity::Il2CppString,
26        #[offset(232)]
27        #[rename(name = "m_TextGodName")]
28        pub m_text_god_name: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
29        #[offset(240)]
30        #[rename(name = "m_IconGod")]
31        pub m_icon_god: crate::app::uniticon::UnitIcon,
32        #[offset(248)]
33        #[rename(name = "m_ObjNaviList")]
34        pub m_obj_navi_list: crate::system::collections::generic::list_1::List_1<crate::unity_engine::gameobject::GameObject>,
35        #[offset(256)]
36        #[rename(name = "m_TextHelp")]
37        pub m_text_help: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
38        #[offset(264)]
39        #[rename(name = "m_TextHelpNg")]
40        pub m_text_help_ng: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
41        #[offset(272)]
42        #[rename(name = "m_TextValueSp")]
43        pub m_text_value_sp: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
44        #[offset(280)]
45        #[rename(name = "m_TextUnitName")]
46        pub m_text_unit_name: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
47        #[offset(288)]
48        #[rename(name = "m_SkillSelectObj")]
49        pub m_skill_select_obj: crate::unity_engine::gameobject::GameObject,
50    }
51}
52
53#[cfg(feature = "app-skillinheritancemenucontent-types")]
54pub use __types::*;
55
56#[cfg(feature = "app-skillinheritancemenucontent")]
57impl SkillInheritanceMenuContent {
58    #[doc = "`LoadPrefabAsync()` overload"]
59    pub fn load_prefab_async() -> () {
60        unsafe {
61            ::unity::il2cpp_call!((::unity::module_base()+0x24a5fe0usize)as*mut u8,();
62            )
63        }
64    }
65
66    #[doc = "`IsLoadingPrefab()` overload"]
67    pub fn is_loading_prefab() -> bool {
68        unsafe {
69            ::unity::il2cpp_call!((::unity::module_base()+0x24a6080usize)as*mut u8,bool;
70            )
71        }
72    }
73
74    #[doc = "`UnloadPrefab()` overload"]
75    pub fn unload_prefab() -> () {
76        unsafe {
77            ::unity::il2cpp_call!((::unity::module_base()+0x24a6100usize)as*mut u8,();
78            )
79        }
80    }
81
82    #[doc = "`Create()` overload"]
83    pub fn create() -> crate::app::skillinheritancemenucontent::SkillInheritanceMenuContent {
84        unsafe {
85            ::unity::il2cpp_call!((::unity::module_base()+0x24a2490usize)as*mut u8,crate::app::skillinheritancemenucontent::SkillInheritanceMenuContent;
86            )
87        }
88    }
89}
90
91#[cfg(feature = "app-skillinheritancemenucontent")]
92pub trait ISkillInheritanceMenuContentMethods: ISkillInheritanceMenuContent {
93    #[doc = "`AfterBuild()` overload"]
94    fn after_build(self) -> () {
95        unsafe {
96            let __receiver =
97                <SkillInheritanceMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98            {
99                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
100                let __vi = *__vt.get(27usize).unwrap_or_else(|| {
101                    panic!(
102                        "unity: virtual slot {}
103 out of range (vtable len {}
104) on the runtime class behind {}
105 (method `{}
106`)",
107                        27usize,
108                        __vt.len(),
109                        <SkillInheritanceMenuContent as ::unity::ClassIdentity>::NAME,
110                        "AfterBuild",
111                    )
112                });
113                let __inner: extern "C" fn(SkillInheritanceMenuContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
114                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
115                __inner(__receiver, __mi)
116            }
117        }
118    }
119    #[doc = "`CalcCursorMovedPosY(i32)` overload"]
120    fn calc_cursor_moved_pos_y(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
121        unsafe {
122            let __receiver =
123                <SkillInheritanceMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
124            {
125                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
126                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
127                    panic!(
128                        "unity: virtual slot {}
129 out of range (vtable len {}
130) on the runtime class behind {}
131 (method `{}
132`)",
133                        10usize,
134                        __vt.len(),
135                        <SkillInheritanceMenuContent as ::unity::ClassIdentity>::NAME,
136                        "CalcCursorMovedPosY",
137                    )
138                });
139                let __inner: extern "C" fn(SkillInheritanceMenuContent, i32, ::unity::OptionalMethod) -> f32 =
140                    ::core::mem::transmute(__vi.method_ptr);
141                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
142                __inner(__receiver, ::core::convert::Into::into(menu_item_index), __mi)
143            }
144        }
145    }
146    #[doc = "`Initialize()` overload"]
147    fn initialize(self) -> () {
148        unsafe {
149            let __receiver =
150                <SkillInheritanceMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
151            ::unity::il2cpp_call!((::unity::module_base()+0x24a30b0usize)as*mut u8,();
152(SkillInheritanceMenuContent)__receiver)
153        }
154    }
155    #[doc = "`SetActive(bool)` overload"]
156    fn set_active(self, is_active: impl ::core::convert::Into<bool>) -> () {
157        unsafe {
158            let __receiver =
159                <SkillInheritanceMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
160            ::unity::il2cpp_call!((::unity::module_base()+0x24a4a20usize)as*mut u8,();
161(SkillInheritanceMenuContent)__receiver,(bool)::core::convert::Into::into(is_active))
162        }
163    }
164    #[doc = "`SetCharaImageIgnoreParentGroups(bool)` overload"]
165    fn set_chara_image_ignore_parent_groups(self, is_ignore: impl ::core::convert::Into<bool>) -> () {
166        unsafe {
167            let __receiver =
168                <SkillInheritanceMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
169            ::unity::il2cpp_call!((::unity::module_base()+0x24a4c10usize)as*mut u8,();
170(SkillInheritanceMenuContent)__receiver,(bool)::core::convert::Into::into(is_ignore))
171        }
172    }
173    #[doc = "`EnableInput(bool)` overload"]
174    fn enable_input(self, is_enable: impl ::core::convert::Into<bool>) -> () {
175        unsafe {
176            let __receiver =
177                <SkillInheritanceMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
178            ::unity::il2cpp_call!((::unity::module_base()+0x24a6180usize)as*mut u8,();
179(SkillInheritanceMenuContent)__receiver,(bool)::core::convert::Into::into(is_enable))
180        }
181    }
182    #[doc = "`CloseOther()` overload"]
183    fn close_other(self) -> () {
184        unsafe {
185            let __receiver =
186                <SkillInheritanceMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
187            ::unity::il2cpp_call!((::unity::module_base()+0x24a3a60usize)as*mut u8,();
188(SkillInheritanceMenuContent)__receiver)
189        }
190    }
191    #[doc = "`CalcW()` overload"]
192    fn calc_w(self) -> f32 {
193        unsafe {
194            let __receiver =
195                <SkillInheritanceMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
196            {
197                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
198                let __vi = *__vt.get(21usize).unwrap_or_else(|| {
199                    panic!(
200                        "unity: virtual slot {}
201 out of range (vtable len {}
202) on the runtime class behind {}
203 (method `{}
204`)",
205                        21usize,
206                        __vt.len(),
207                        <SkillInheritanceMenuContent as ::unity::ClassIdentity>::NAME,
208                        "CalcW",
209                    )
210                });
211                let __inner: extern "C" fn(SkillInheritanceMenuContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
212                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
213                __inner(__receiver, __mi)
214            }
215        }
216    }
217    #[doc = "`CalcH()` overload"]
218    fn calc_h(self) -> f32 {
219        unsafe {
220            let __receiver =
221                <SkillInheritanceMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
222            {
223                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
224                let __vi = *__vt.get(22usize).unwrap_or_else(|| {
225                    panic!(
226                        "unity: virtual slot {}
227 out of range (vtable len {}
228) on the runtime class behind {}
229 (method `{}
230`)",
231                        22usize,
232                        __vt.len(),
233                        <SkillInheritanceMenuContent as ::unity::ClassIdentity>::NAME,
234                        "CalcH",
235                    )
236                });
237                let __inner: extern "C" fn(SkillInheritanceMenuContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
238                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
239                __inner(__receiver, __mi)
240            }
241        }
242    }
243    #[doc = "`SetSkillHelp(crate::app::unit::Unit, crate::app::godunit::GodUnit, crate::app::skilldata::SkillData, i32)` overload"]
244    fn set_skill_help(
245        self,
246        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
247        god: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
248        skill: impl ::core::convert::Into<crate::app::skilldata::SkillData>,
249        level: impl ::core::convert::Into<i32>,
250    ) -> () {
251        unsafe {
252            let __receiver =
253                <SkillInheritanceMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
254            ::unity::il2cpp_call!((::unity::module_base()+0x24a58e0usize)as*mut u8,();
255(SkillInheritanceMenuContent)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::godunit::GodUnit)::core::convert::Into::into(god),(crate::app::skilldata::SkillData)::core::convert::Into::into(skill),(i32)::core::convert::Into::into(level))
256        }
257    }
258    #[doc = "`SetNavi(i32, bool, crate::app::godunit::GodUnit)` overload"]
259    fn set_navi(
260        self,
261        index: impl ::core::convert::Into<i32>,
262        is_active: impl ::core::convert::Into<bool>,
263        god: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
264    ) -> () {
265        unsafe {
266            let __receiver =
267                <SkillInheritanceMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
268            ::unity::il2cpp_call!((::unity::module_base()+0x24a5070usize)as*mut u8,();
269(SkillInheritanceMenuContent)__receiver,(i32)::core::convert::Into::into(index),(bool)::core::convert::Into::into(is_active),(crate::app::godunit::GodUnit)::core::convert::Into::into(god))
270        }
271    }
272    #[doc = "`UpdateSkillPoint()` overload"]
273    fn update_skill_point(self) -> () {
274        unsafe {
275            let __receiver =
276                <SkillInheritanceMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
277            ::unity::il2cpp_call!((::unity::module_base()+0x24a37e0usize)as*mut u8,();
278(SkillInheritanceMenuContent)__receiver)
279        }
280    }
281    #[doc = "`.ctor()` overload"]
282    fn ctor(self) -> () {
283        unsafe {
284            let __receiver =
285                <SkillInheritanceMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
286            ::unity::il2cpp_call!((::unity::module_base()+0x24a62b0usize)as*mut u8,();
287(SkillInheritanceMenuContent)__receiver)
288        }
289    }
290}
291
292#[cfg(feature = "app-skillinheritancemenucontent")]
293impl<__T: ISkillInheritanceMenuContent> ISkillInheritanceMenuContentMethods for __T {}
294
295#[cfg(feature = "app-skillinheritancemenucontent")]
296impl SkillInheritanceMenuContent {
297    pub fn after_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
298        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
299    }
300
301    pub fn calc_cursor_moved_pos_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
302        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
303    }
304
305    pub fn load_prefab_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
306        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
307    }
308
309    pub fn is_loading_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
310        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
311    }
312
313    pub fn unload_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
314        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
315    }
316
317    pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
318        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
319    }
320
321    pub fn initialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
322        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
323    }
324
325    pub fn set_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
326        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
327    }
328
329    pub fn set_chara_image_ignore_parent_groups_method_info() -> &'static ::unity::il2cpp::MethodInfo {
330        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
331    }
332
333    pub fn enable_input_method_info() -> &'static ::unity::il2cpp::MethodInfo {
334        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
335    }
336
337    pub fn close_other_method_info() -> &'static ::unity::il2cpp::MethodInfo {
338        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
339    }
340
341    pub fn calc_w_method_info() -> &'static ::unity::il2cpp::MethodInfo {
342        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
343    }
344
345    pub fn calc_h_method_info() -> &'static ::unity::il2cpp::MethodInfo {
346        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
347    }
348
349    pub fn set_skill_help_method_info() -> &'static ::unity::il2cpp::MethodInfo {
350        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
351    }
352
353    pub fn set_navi_method_info() -> &'static ::unity::il2cpp::MethodInfo {
354        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
355    }
356
357    pub fn update_skill_point_method_info() -> &'static ::unity::il2cpp::MethodInfo {
358        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
359    }
360
361    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
362        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
363    }
364}
365
366#[cfg(feature = "app-skillinheritancemenucontent")]
367impl SkillInheritanceMenuContent {
368    #[doc = "Direct (non-virtual) call to `SkillInheritanceMenuContent`'s own `AfterBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
369    pub unsafe fn after_build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
370        let __mi = Self::after_build_method_info();
371        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
372        __inner(this.into(), ::core::option::Option::None)
373    }
374
375    #[doc = "Direct (non-virtual) call to `SkillInheritanceMenuContent`'s own `CalcCursorMovedPosY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
376    pub unsafe fn calc_cursor_moved_pos_y(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
377        let __mi = Self::calc_cursor_moved_pos_y_method_info();
378        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
379        __inner(this.into(), menu_item_index, ::core::option::Option::None)
380    }
381
382    #[doc = "Direct (non-virtual) call to `SkillInheritanceMenuContent`'s own `CalcW`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
383    pub unsafe fn calc_w(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
384        let __mi = Self::calc_w_method_info();
385        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
386        __inner(this.into(), ::core::option::Option::None)
387    }
388
389    #[doc = "Direct (non-virtual) call to `SkillInheritanceMenuContent`'s own `CalcH`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
390    pub unsafe fn calc_h(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
391        let __mi = Self::calc_h_method_info();
392        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
393        __inner(this.into(), ::core::option::Option::None)
394    }
395}
396
397#[cfg(feature = "app-skillinheritancemenucontent")]
398impl SkillInheritanceMenuContent {
399    #[doc = "`.ctor()` — no args"]
400    pub fn new() -> Self {
401        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
402            panic!(
403                "{}
404::{}
405 failed to instantiate",
406                ::core::stringify!(SkillInheritanceMenuContent),
407                ::core::stringify!(new),
408            )
409        });
410        <Self as ISkillInheritanceMenuContentMethods>::ctor(this);
411        this
412    }
413}
414
415#[cfg(feature = "app-skillinheritancemenucontent")]
416#[doc(hidden)]
417pub mod prelude {
418    pub use super::{ISkillInheritanceMenuContent, ISkillInheritanceMenuContentMethods, SkillInheritanceMenuContent};
419    #[cfg(feature = "app-basicmenucontent")]
420    pub use crate::app::basicmenucontent::IBasicMenuContentMethods;
421    #[cfg(feature = "system-object")]
422    pub use crate::system::object::IObjectMethods;
423    #[cfg(feature = "unity_engine-behaviour")]
424    pub use crate::unity_engine::behaviour::IBehaviourMethods;
425    #[cfg(feature = "unity_engine-component")]
426    pub use crate::unity_engine::component::IComponentMethods;
427    #[cfg(feature = "unity_engine-monobehaviour")]
428    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
429    #[cfg(feature = "unity_engine-object_2")]
430    pub use crate::unity_engine::object_2::IObject_2Methods;
431    pub use crate::{
432        app::basicmenucontent::IBasicMenuContent,
433        system::object::IObject,
434        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
435    };
436}