Skip to main content

engage/generated/app/
arenabondunitselectroot.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-arenabondunitselectroot-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/arenabondunitselectroot/ArenaBondUnitSelectRoot.md"))]
19    #[::unity::class(namespace = "App", name = "ArenaBondUnitSelectRoot")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct ArenaBondUnitSelectRoot {
22        #[static_field]
23        #[rename(name = "PrefabPath")]
24        pub prefab_path: ::unity::Il2CppString,
25        #[offset(24)]
26        #[rename(name = "m_MenuContent")]
27        pub m_menu_content: crate::app::arenabondunitselectmenucontent::ArenaBondUnitSelectMenuContent,
28        #[offset(32)]
29        #[rename(name = "m_GodInfo")]
30        pub m_god_info: crate::app::godroomgodinfosetter::GodRoomGodInfoSetter,
31        #[offset(40)]
32        #[rename(name = "m_Status")]
33        pub m_status: crate::app::arenaunitselectstatus::ArenaUnitSelectStatus,
34        #[offset(48)]
35        #[rename(name = "m_DecideEventHandler")]
36        pub m_decide_event_handler: crate::app::arenabondunitselectmenu::ArenaBondUnitSelectMenu_DecideEventHandler,
37    }
38}
39
40#[cfg(feature = "app-arenabondunitselectroot-types")]
41pub use __types::*;
42
43#[cfg(feature = "app-arenabondunitselectroot")]
44impl ArenaBondUnitSelectRoot {
45    #[doc = "`LoadPrefabAsync()` overload"]
46    pub fn load_prefab_async() -> () {
47        unsafe {
48            ::unity::il2cpp_call!((::unity::module_base()+0x1ca2840usize)as*mut u8,();
49            )
50        }
51    }
52
53    #[doc = "`IsLoadingPrefab()` overload"]
54    pub fn is_loading_prefab() -> bool {
55        unsafe {
56            ::unity::il2cpp_call!((::unity::module_base()+0x1ca28c0usize)as*mut u8,bool;
57            )
58        }
59    }
60
61    #[doc = "`UnloadPrefab()` overload"]
62    pub fn unload_prefab() -> () {
63        unsafe {
64            ::unity::il2cpp_call!((::unity::module_base()+0x1ca2940usize)as*mut u8,();
65            )
66        }
67    }
68
69    #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::unit::Unit, crate::app::arenabondunitselectmenu::ArenaBondUnitSelectMenu_DecideEventHandler)` overload"]
70    pub fn create_bind(
71        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
72        default_unit: impl ::core::convert::Into<crate::app::unit::Unit>,
73        decide_event_handler: impl ::core::convert::Into<crate::app::arenabondunitselectmenu::ArenaBondUnitSelectMenu_DecideEventHandler>,
74    ) -> crate::app::arenabondunitselectroot::ArenaBondUnitSelectRoot {
75        unsafe {
76            ::unity::il2cpp_call!((::unity::module_base()+0x1ca29c0usize)as*mut u8,crate::app::arenabondunitselectroot::ArenaBondUnitSelectRoot;
77(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::unit::Unit)::core::convert::Into::into(default_unit),(crate::app::arenabondunitselectmenu::ArenaBondUnitSelectMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
78        }
79    }
80}
81
82#[cfg(feature = "app-arenabondunitselectroot")]
83pub trait IArenaBondUnitSelectRootMethods: IArenaBondUnitSelectRoot {
84    #[doc = "`Create(crate::app::procinst::ProcInst, crate::app::unit::Unit, crate::app::arenabondunitselectmenu::ArenaBondUnitSelectMenu_DecideEventHandler)` overload"]
85    fn create(
86        self,
87        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
88        default_unit: impl ::core::convert::Into<crate::app::unit::Unit>,
89        decide_event_handler: impl ::core::convert::Into<crate::app::arenabondunitselectmenu::ArenaBondUnitSelectMenu_DecideEventHandler>,
90    ) -> () {
91        unsafe {
92            let __receiver =
93                <ArenaBondUnitSelectRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
94            ::unity::il2cpp_call!((::unity::module_base()+0x1ca2b40usize)as*mut u8,();
95(ArenaBondUnitSelectRoot)__receiver,(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::unit::Unit)::core::convert::Into::into(default_unit),(crate::app::arenabondunitselectmenu::ArenaBondUnitSelectMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
96        }
97    }
98    #[doc = "`OnSelectMenuItem(crate::app::unit::Unit)` overload"]
99    fn on_select_menu_item(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
100        unsafe {
101            let __receiver =
102                <ArenaBondUnitSelectRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
103            ::unity::il2cpp_call!((::unity::module_base()+0x1ca2d90usize)as*mut u8,();
104(ArenaBondUnitSelectRoot)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit))
105        }
106    }
107    #[doc = "`OnDecideMenuItem(crate::app::unit::Unit)` overload"]
108    fn on_decide_menu_item(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
109        unsafe {
110            let __receiver =
111                <ArenaBondUnitSelectRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
112            ::unity::il2cpp_call!((::unity::module_base()+0x1ca2ed0usize)as*mut u8,();
113(ArenaBondUnitSelectRoot)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit))
114        }
115    }
116    #[doc = "`OnHelp(crate::app::procinst::ProcInst)` overload"]
117    fn on_help(self, parent: impl ::core::convert::Into<crate::app::procinst::ProcInst>) -> () {
118        unsafe {
119            let __receiver =
120                <ArenaBondUnitSelectRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
121            ::unity::il2cpp_call!((::unity::module_base()+0x1ca2f00usize)as*mut u8,();
122(ArenaBondUnitSelectRoot)__receiver,(crate::app::procinst::ProcInst)::core::convert::Into::into(parent))
123        }
124    }
125    #[doc = "`.ctor()` overload"]
126    fn ctor(self) -> () {
127        unsafe {
128            let __receiver =
129                <ArenaBondUnitSelectRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
130            ::unity::il2cpp_call!((::unity::module_base()+0x1ca2f90usize)as*mut u8,();
131(ArenaBondUnitSelectRoot)__receiver)
132        }
133    }
134}
135
136#[cfg(feature = "app-arenabondunitselectroot")]
137impl<__T: IArenaBondUnitSelectRoot> IArenaBondUnitSelectRootMethods for __T {}
138
139#[cfg(feature = "app-arenabondunitselectroot")]
140impl ArenaBondUnitSelectRoot {
141    pub fn load_prefab_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
142        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
143    }
144
145    pub fn is_loading_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
146        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
147    }
148
149    pub fn unload_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
150        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
151    }
152
153    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
154        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
155    }
156
157    pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
158        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
159    }
160
161    pub fn on_select_menu_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
162        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
163    }
164
165    pub fn on_decide_menu_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
166        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
167    }
168
169    pub fn on_help_method_info() -> &'static ::unity::il2cpp::MethodInfo {
170        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
171    }
172
173    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
174        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
175    }
176}
177
178#[cfg(feature = "app-arenabondunitselectroot")]
179impl ArenaBondUnitSelectRoot {
180    #[doc = "`.ctor()` — no args"]
181    pub fn new() -> Self {
182        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
183            panic!(
184                "{}
185::{}
186 failed to instantiate",
187                ::core::stringify!(ArenaBondUnitSelectRoot),
188                ::core::stringify!(new),
189            )
190        });
191        <Self as IArenaBondUnitSelectRootMethods>::ctor(this);
192        this
193    }
194}
195
196#[cfg(feature = "app-arenabondunitselectroot")]
197#[doc(hidden)]
198pub mod prelude {
199    pub use super::{ArenaBondUnitSelectRoot, IArenaBondUnitSelectRoot, IArenaBondUnitSelectRootMethods};
200    #[cfg(feature = "system-object")]
201    pub use crate::system::object::IObjectMethods;
202    #[cfg(feature = "unity_engine-behaviour")]
203    pub use crate::unity_engine::behaviour::IBehaviourMethods;
204    #[cfg(feature = "unity_engine-component")]
205    pub use crate::unity_engine::component::IComponentMethods;
206    #[cfg(feature = "unity_engine-monobehaviour")]
207    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
208    #[cfg(feature = "unity_engine-object_2")]
209    pub use crate::unity_engine::object_2::IObject_2Methods;
210    pub use crate::{
211        system::object::IObject,
212        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
213    };
214}