Skip to main content

engage/generated/app/
classchangeroot.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-classchangeroot-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::object::{IObject, Object},
10        unity_engine::{
11            behaviour::{Behaviour, IBehaviour},
12            component::{Component, IComponent},
13            monobehaviour::{IMonoBehaviour, MonoBehaviour},
14            object_2::{IObject_2, Object_2},
15        },
16    };
17
18    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/classchangeroot/ClassChangeRoot.md"))]
19    #[::unity::class(namespace = "App", name = "ClassChangeRoot")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct ClassChangeRoot {
22        #[offset(24)]
23        #[rename(name = "m_MenuContent")]
24        pub m_menu_content: crate::app::classchangejobmenucontent::ClassChangeJobMenuContent,
25        #[offset(32)]
26        #[rename(name = "m_UnitName")]
27        pub m_unit_name: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
28        #[offset(40)]
29        #[rename(name = "m_UnitInfoBefore")]
30        pub m_unit_info_before: crate::app::unitstatussetter::UnitStatusSetter,
31        #[offset(48)]
32        #[rename(name = "m_UnitInfoAfter")]
33        pub m_unit_info_after: crate::app::unitstatussetter::UnitStatusSetter,
34        #[offset(56)]
35        #[rename(name = "m_WeaponIconList")]
36        pub m_weapon_icon_list: crate::system::collections::generic::list_1::List_1<crate::unity_engine::ui::image::Image>,
37    }
38}
39
40#[cfg(feature = "app-classchangeroot-types")]
41pub use __types::*;
42
43#[cfg(feature = "app-classchangeroot")]
44pub trait IClassChangeRootMethods: IClassChangeRoot {
45    #[doc = "`Start()` overload"]
46    fn start(self) -> () {
47        unsafe {
48            let __receiver = <ClassChangeRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
49            ::unity::il2cpp_call!((::unity::module_base()+0x1ea6700usize)as*mut u8,();
50(ClassChangeRoot)__receiver)
51        }
52    }
53    #[doc = "`InitUnitInfoAll()` overload"]
54    fn init_unit_info_all(self) -> () {
55        unsafe {
56            let __receiver = <ClassChangeRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57            ::unity::il2cpp_call!((::unity::module_base()+0x1ea6800usize)as*mut u8,();
58(ClassChangeRoot)__receiver)
59        }
60    }
61    #[doc = "`GetMenuContent()` overload"]
62    fn get_menu_content(self) -> crate::app::classchangejobmenucontent::ClassChangeJobMenuContent {
63        unsafe {
64            let __receiver = <ClassChangeRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
65            ::unity::il2cpp_call!((::unity::module_base()+0x1ea6850usize)as*mut u8,crate::app::classchangejobmenucontent::ClassChangeJobMenuContent;
66(ClassChangeRoot)__receiver)
67        }
68    }
69    #[doc = "`SetUnitInfoAfter(crate::app::unit::Unit, crate::app::unit::Unit)` overload"]
70    fn set_unit_info_after(
71        self,
72        before: impl ::core::convert::Into<crate::app::unit::Unit>,
73        after: impl ::core::convert::Into<crate::app::unit::Unit>,
74    ) -> () {
75        unsafe {
76            let __receiver = <ClassChangeRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
77            ::unity::il2cpp_call!((::unity::module_base()+0x1ea52c0usize)as*mut u8,();
78(ClassChangeRoot)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(before),(crate::app::unit::Unit)::core::convert::Into::into(after))
79        }
80    }
81    #[doc = "`SetUnitInfoBefore(crate::app::unit::Unit)` overload"]
82    fn set_unit_info_before(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
83        unsafe {
84            let __receiver = <ClassChangeRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
85            ::unity::il2cpp_call!((::unity::module_base()+0x1ea47d0usize)as*mut u8,();
86(ClassChangeRoot)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit))
87        }
88    }
89    #[doc = "`.ctor()` overload"]
90    fn ctor(self) -> () {
91        unsafe {
92            let __receiver = <ClassChangeRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
93            ::unity::il2cpp_call!((::unity::module_base()+0x1ea6860usize)as*mut u8,();
94(ClassChangeRoot)__receiver)
95        }
96    }
97}
98
99#[cfg(feature = "app-classchangeroot")]
100impl<__T: IClassChangeRoot> IClassChangeRootMethods for __T {}
101
102#[cfg(feature = "app-classchangeroot")]
103impl ClassChangeRoot {
104    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
105        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
106    }
107
108    pub fn init_unit_info_all_method_info() -> &'static ::unity::il2cpp::MethodInfo {
109        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
110    }
111
112    pub fn get_menu_content_method_info() -> &'static ::unity::il2cpp::MethodInfo {
113        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
114    }
115
116    pub fn set_unit_info_after_method_info() -> &'static ::unity::il2cpp::MethodInfo {
117        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
118    }
119
120    pub fn set_unit_info_before_method_info() -> &'static ::unity::il2cpp::MethodInfo {
121        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
122    }
123
124    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
125        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
126    }
127}
128
129#[cfg(feature = "app-classchangeroot")]
130impl ClassChangeRoot {
131    #[doc = "`.ctor()` — no args"]
132    pub fn new() -> Self {
133        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
134            panic!(
135                "{}
136::{}
137 failed to instantiate",
138                ::core::stringify!(ClassChangeRoot),
139                ::core::stringify!(new),
140            )
141        });
142        <Self as IClassChangeRootMethods>::ctor(this);
143        this
144    }
145}
146
147#[cfg(feature = "app-classchangeroot")]
148#[doc(hidden)]
149pub mod prelude {
150    pub use super::{ClassChangeRoot, IClassChangeRoot, IClassChangeRootMethods};
151    #[cfg(feature = "system-object")]
152    pub use crate::system::object::IObjectMethods;
153    #[cfg(feature = "unity_engine-behaviour")]
154    pub use crate::unity_engine::behaviour::IBehaviourMethods;
155    #[cfg(feature = "unity_engine-component")]
156    pub use crate::unity_engine::component::IComponentMethods;
157    #[cfg(feature = "unity_engine-monobehaviour")]
158    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
159    #[cfg(feature = "unity_engine-object_2")]
160    pub use crate::unity_engine::object_2::IObject_2Methods;
161    pub use crate::{
162        system::object::IObject,
163        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
164    };
165}