Skip to main content

engage/generated/app/
trooplistroot.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-trooplistroot-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/trooplistroot/TroopListRoot.md"))]
19    #[::unity::class(namespace = "App", name = "TroopListRoot")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct TroopListRoot {
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_SortRoot")]
27        pub m_sort_root: crate::unity_engine::gameobject::GameObject,
28    }
29}
30
31#[cfg(feature = "app-trooplistroot-types")]
32pub use __types::*;
33
34#[cfg(feature = "app-trooplistroot")]
35pub trait ITroopListRootMethods: ITroopListRoot {
36    #[doc = "`GetUnitListRoot()` overload"]
37    fn get_unit_list_root(self) -> crate::unity_engine::gameobject::GameObject {
38        unsafe {
39            let __receiver = <TroopListRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40            ::unity::il2cpp_call!((::unity::module_base()+0x22abb00usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
41(TroopListRoot)__receiver)
42        }
43    }
44    #[doc = "`GetSortRoot()` overload"]
45    fn get_sort_root(self) -> crate::unity_engine::gameobject::GameObject {
46        unsafe {
47            let __receiver = <TroopListRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48            ::unity::il2cpp_call!((::unity::module_base()+0x22abb10usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
49(TroopListRoot)__receiver)
50        }
51    }
52    #[doc = "`Start()` overload"]
53    fn start(self) -> () {
54        unsafe {
55            let __receiver = <TroopListRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56            ::unity::il2cpp_call!((::unity::module_base()+0x22abb20usize)as*mut u8,();
57(TroopListRoot)__receiver)
58        }
59    }
60    #[doc = "`Init()` overload"]
61    fn init(self) -> () {
62        unsafe {
63            let __receiver = <TroopListRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64            ::unity::il2cpp_call!((::unity::module_base()+0x22abb30usize)as*mut u8,();
65(TroopListRoot)__receiver)
66        }
67    }
68    #[doc = "`Update()` overload"]
69    fn update(self) -> () {
70        unsafe {
71            let __receiver = <TroopListRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72            ::unity::il2cpp_call!((::unity::module_base()+0x22abb40usize)as*mut u8,();
73(TroopListRoot)__receiver)
74        }
75    }
76    #[doc = "`.ctor()` overload"]
77    fn ctor(self) -> () {
78        unsafe {
79            let __receiver = <TroopListRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80            ::unity::il2cpp_call!((::unity::module_base()+0x22abb50usize)as*mut u8,();
81(TroopListRoot)__receiver)
82        }
83    }
84}
85
86#[cfg(feature = "app-trooplistroot")]
87impl<__T: ITroopListRoot> ITroopListRootMethods for __T {}
88
89#[cfg(feature = "app-trooplistroot")]
90impl TroopListRoot {
91    pub fn get_unit_list_root_method_info() -> &'static ::unity::il2cpp::MethodInfo {
92        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
93    }
94
95    pub fn get_sort_root_method_info() -> &'static ::unity::il2cpp::MethodInfo {
96        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
97    }
98
99    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
100        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
101    }
102
103    pub fn init_method_info() -> &'static ::unity::il2cpp::MethodInfo {
104        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
105    }
106
107    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
108        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
109    }
110
111    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
112        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
113    }
114}
115
116#[cfg(feature = "app-trooplistroot")]
117impl TroopListRoot {
118    #[doc = "`.ctor()` — no args"]
119    pub fn new() -> Self {
120        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
121            panic!(
122                "{}
123::{}
124 failed to instantiate",
125                ::core::stringify!(TroopListRoot),
126                ::core::stringify!(new),
127            )
128        });
129        <Self as ITroopListRootMethods>::ctor(this);
130        this
131    }
132}
133
134#[cfg(feature = "app-trooplistroot")]
135#[doc(hidden)]
136pub mod prelude {
137    pub use super::{ITroopListRoot, ITroopListRootMethods, TroopListRoot};
138    #[cfg(feature = "system-object")]
139    pub use crate::system::object::IObjectMethods;
140    #[cfg(feature = "unity_engine-behaviour")]
141    pub use crate::unity_engine::behaviour::IBehaviourMethods;
142    #[cfg(feature = "unity_engine-component")]
143    pub use crate::unity_engine::component::IComponentMethods;
144    #[cfg(feature = "unity_engine-monobehaviour")]
145    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
146    #[cfg(feature = "unity_engine-object_2")]
147    pub use crate::unity_engine::object_2::IObject_2Methods;
148    pub use crate::{
149        system::object::IObject,
150        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
151    };
152}