Skip to main content

engage/generated/app/
unitselectroot.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-unitselectroot-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/unitselectroot/UnitSelectRoot.md"))]
19    #[::unity::class(namespace = "App", name = "UnitSelectRoot")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct UnitSelectRoot {
22        #[offset(24)]
23        #[rename(name = "m_UnitListRoot")]
24        pub m_unit_list_root: crate::unity_engine::gameobject::GameObject,
25        #[offset(32)]
26        #[rename(name = "m_GodImageObject")]
27        pub m_god_image_object: crate::unity_engine::gameobject::GameObject,
28        #[offset(40)]
29        #[rename(name = "m_unit")]
30        pub m_unit: crate::app::unit::Unit,
31    }
32}
33
34#[cfg(feature = "app-unitselectroot-types")]
35pub use __types::*;
36
37#[cfg(feature = "app-unitselectroot")]
38pub trait IUnitSelectRootMethods: IUnitSelectRoot {
39    #[doc = "`GetUnitListRoot()` overload"]
40    fn get_unit_list_root(self) -> crate::unity_engine::gameobject::GameObject {
41        unsafe {
42            let __receiver = <UnitSelectRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43            ::unity::il2cpp_call!((::unity::module_base()+0x1c618a0usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
44(UnitSelectRoot)__receiver)
45        }
46    }
47    #[doc = "`Init()` overload"]
48    fn init(self) -> () {
49        unsafe {
50            let __receiver = <UnitSelectRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51            ::unity::il2cpp_call!((::unity::module_base()+0x1c618b0usize)as*mut u8,();
52(UnitSelectRoot)__receiver)
53        }
54    }
55    #[doc = "`Update()` overload"]
56    fn update(self) -> () {
57        unsafe {
58            let __receiver = <UnitSelectRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59            ::unity::il2cpp_call!((::unity::module_base()+0x1c61b80usize)as*mut u8,();
60(UnitSelectRoot)__receiver)
61        }
62    }
63    #[doc = "`UpdateUnitData()` overload"]
64    fn update_unit_data(self) -> () {
65        unsafe {
66            let __receiver = <UnitSelectRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67            ::unity::il2cpp_call!((::unity::module_base()+0x1c61c30usize)as*mut u8,();
68(UnitSelectRoot)__receiver)
69        }
70    }
71    #[doc = "`TimerEnd()` overload"]
72    fn timer_end(self) -> () {
73        unsafe {
74            let __receiver = <UnitSelectRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75            ::unity::il2cpp_call!((::unity::module_base()+0x1c61c40usize)as*mut u8,();
76(UnitSelectRoot)__receiver)
77        }
78    }
79    #[doc = "`UpdateUnitData(crate::app::unit::Unit)` overload"]
80    fn update_unit_data_2(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
81        unsafe {
82            let __receiver = <UnitSelectRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83            ::unity::il2cpp_call!((::unity::module_base()+0x1c61a70usize)as*mut u8,();
84(UnitSelectRoot)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit))
85        }
86    }
87    #[doc = "`.ctor()` overload"]
88    fn ctor(self) -> () {
89        unsafe {
90            let __receiver = <UnitSelectRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91            ::unity::il2cpp_call!((::unity::module_base()+0x1c61d60usize)as*mut u8,();
92(UnitSelectRoot)__receiver)
93        }
94    }
95}
96
97#[cfg(feature = "app-unitselectroot")]
98impl<__T: IUnitSelectRoot> IUnitSelectRootMethods for __T {}
99
100#[cfg(feature = "app-unitselectroot")]
101impl UnitSelectRoot {
102    pub fn get_unit_list_root_method_info() -> &'static ::unity::il2cpp::MethodInfo {
103        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
104    }
105
106    pub fn init_method_info() -> &'static ::unity::il2cpp::MethodInfo {
107        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
108    }
109
110    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
111        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
112    }
113
114    pub fn update_unit_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
115        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
116    }
117
118    pub fn timer_end_method_info() -> &'static ::unity::il2cpp::MethodInfo {
119        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
120    }
121
122    pub fn update_unit_data_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
123        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
124    }
125
126    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
127        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
128    }
129}
130
131#[cfg(feature = "app-unitselectroot")]
132impl UnitSelectRoot {
133    #[doc = "`.ctor()` — no args"]
134    pub fn new() -> Self {
135        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
136            panic!(
137                "{}
138::{}
139 failed to instantiate",
140                ::core::stringify!(UnitSelectRoot),
141                ::core::stringify!(new),
142            )
143        });
144        <Self as IUnitSelectRootMethods>::ctor(this);
145        this
146    }
147}
148
149#[cfg(feature = "app-unitselectroot")]
150#[doc(hidden)]
151pub mod prelude {
152    pub use super::{IUnitSelectRoot, IUnitSelectRootMethods, UnitSelectRoot};
153    #[cfg(feature = "system-object")]
154    pub use crate::system::object::IObjectMethods;
155    #[cfg(feature = "unity_engine-behaviour")]
156    pub use crate::unity_engine::behaviour::IBehaviourMethods;
157    #[cfg(feature = "unity_engine-component")]
158    pub use crate::unity_engine::component::IComponentMethods;
159    #[cfg(feature = "unity_engine-monobehaviour")]
160    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
161    #[cfg(feature = "unity_engine-object_2")]
162    pub use crate::unity_engine::object_2::IObject_2Methods;
163    pub use crate::{
164        system::object::IObject,
165        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
166    };
167}