Skip to main content

engage/generated/app/
disposunit.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-disposunit-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::{
10            object::{IObject, Object},
11            valuetype::{IValueType, ValueType},
12        },
13        unity_engine::{
14            behaviour::{Behaviour, IBehaviour},
15            component::{Component, IComponent},
16            monobehaviour::{IMonoBehaviour, MonoBehaviour},
17            object_2::{IObject_2, Object_2},
18        },
19    };
20
21    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/disposunit/DisposUnit.md"))]
22    #[::unity::class(namespace = "App", name = "DisposUnit")]
23    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
24    pub struct DisposUnit {
25        #[static_field]
26        #[rename(name = "LevelMax")]
27        pub level_max: i32,
28        #[offset(24)]
29        #[rename(name = "m_Person")]
30        pub m_person: ::unity::Il2CppString,
31        #[offset(32)]
32        #[rename(name = "m_Job")]
33        pub m_job: ::unity::Il2CppString,
34        #[offset(40)]
35        #[rename(name = "m_Force")]
36        pub m_force: ::unity::Il2CppString,
37        #[offset(48)]
38        #[rename(name = "m_Level")]
39        pub m_level: i32,
40        #[offset(52)]
41        #[rename(name = "m_Normal")]
42        pub m_normal: bool,
43        #[offset(53)]
44        #[rename(name = "m_Hard")]
45        pub m_hard: bool,
46        #[offset(54)]
47        #[rename(name = "m_Lunatic")]
48        pub m_lunatic: bool,
49        #[offset(55)]
50        #[rename(name = "新規生成")]
51        pub 新規生成: bool,
52        #[offset(56)]
53        #[rename(name = "リーダー")]
54        pub リーダー: bool,
55        #[offset(57)]
56        #[rename(name = "移動禁止")]
57        pub 移動禁止: bool,
58        #[offset(58)]
59        #[rename(name = "進撃位置")]
60        pub 進撃位置: bool,
61        #[offset(59)]
62        #[rename(name = "進撃強制")]
63        pub 進撃強制: bool,
64        #[offset(60)]
65        #[rename(name = "進撃固定")]
66        pub 進撃固定: bool,
67        #[offset(61)]
68        #[rename(name = "外枠配置")]
69        pub 外枠配置: bool,
70        #[offset(62)]
71        #[rename(name = "ゲスト")]
72        pub ゲスト: bool,
73        #[offset(64)]
74        #[rename(name = "m_Items")]
75        pub m_items: ::unity::Array<crate::app::disposunit::DisposUnit_Item>,
76    }
77
78    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/disposunit/DisposUnit_Item.md"))]
79    #[repr(C)]
80    #[derive(::core::clone::Clone, ::core::marker::Copy)]
81    pub struct DisposUnit_Item {
82        pub m_item: ::unity::Il2CppString,
83        pub m_is_drop: bool,
84    }
85    impl ::unity::ClassIdentity for DisposUnit_Item {
86        const NAME: &'static str = "DisposUnit.Item";
87        const NAMESPACE: &'static str = "App";
88
89        fn class() -> ::unity::Class {
90            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
91            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
92        }
93    }
94    impl ::unity::IlType for DisposUnit_Item {
95        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
96            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
97        }
98    }
99}
100
101#[cfg(feature = "app-disposunit-types")]
102pub use __types::*;
103
104#[cfg(feature = "app-disposunit")]
105impl DisposUnit {
106    #[doc = "`GetForceNames()` overload"]
107    pub fn get_force_names() -> ::unity::Array<::unity::Il2CppString> {
108        unsafe {
109            ::unity::il2cpp_call!((::unity::module_base()+0x1cfbe80usize)as*mut u8, ::unity::Array< ::unity::Il2CppString> ;
110            )
111        }
112    }
113
114    #[doc = "`GetForceName(i32)` overload"]
115    pub fn get_force_name(index: impl ::core::convert::Into<i32>) -> ::unity::Il2CppString {
116        unsafe {
117            ::unity::il2cpp_call!((::unity::module_base()+0x1cfc060usize)as*mut u8, ::unity::Il2CppString;
118(i32)::core::convert::Into::into(index))
119        }
120    }
121
122    #[doc = "`GetForceIndex(::unity::Il2CppString)` overload"]
123    pub fn get_force_index(name: impl ::core::convert::Into<::unity::Il2CppString>) -> i32 {
124        unsafe {
125            ::unity::il2cpp_call!((::unity::module_base()+0x1cfc0a0usize)as*mut u8,i32;
126(::unity::Il2CppString)::core::convert::Into::into(name))
127        }
128    }
129}
130
131#[cfg(feature = "app-disposunit")]
132pub trait IDisposUnitMethods: IDisposUnit {
133    #[doc = "`GetForceType()` overload"]
134    fn get_force_type(self) -> crate::app::force::Force_Type {
135        unsafe {
136            let __receiver = <DisposUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
137            ::unity::il2cpp_call!((::unity::module_base()+0x1cfbd70usize)as*mut u8,crate::app::force::Force_Type;
138(DisposUnit)__receiver)
139        }
140    }
141    #[doc = "`.ctor()` overload"]
142    fn ctor(self) -> () {
143        unsafe {
144            let __receiver = <DisposUnit as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
145            ::unity::il2cpp_call!((::unity::module_base()+0x1cfc130usize)as*mut u8,();
146(DisposUnit)__receiver)
147        }
148    }
149}
150
151#[cfg(feature = "app-disposunit")]
152impl<__T: IDisposUnit> IDisposUnitMethods for __T {}
153
154#[cfg(feature = "app-disposunit")]
155impl DisposUnit {
156    pub fn get_force_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
158    }
159
160    pub fn get_force_names_method_info() -> &'static ::unity::il2cpp::MethodInfo {
161        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
162    }
163
164    pub fn get_force_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
165        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
166    }
167
168    pub fn get_force_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
169        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
170    }
171
172    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
174    }
175}
176
177#[cfg(feature = "app-disposunit")]
178impl DisposUnit {
179    #[doc = "`.ctor()` — no args"]
180    pub fn new() -> Self {
181        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
182            panic!(
183                "{}
184::{}
185 failed to instantiate",
186                ::core::stringify!(DisposUnit),
187                ::core::stringify!(new),
188            )
189        });
190        <Self as IDisposUnitMethods>::ctor(this);
191        this
192    }
193}
194
195#[cfg(feature = "app-disposunit")]
196#[doc(hidden)]
197pub mod prelude {
198    pub use super::{DisposUnit, DisposUnit_Item, IDisposUnit, IDisposUnitMethods};
199    #[cfg(feature = "system-object")]
200    pub use crate::system::object::IObjectMethods;
201    #[cfg(feature = "system-valuetype")]
202    pub use crate::system::valuetype::IValueTypeMethods;
203    #[cfg(feature = "unity_engine-behaviour")]
204    pub use crate::unity_engine::behaviour::IBehaviourMethods;
205    #[cfg(feature = "unity_engine-component")]
206    pub use crate::unity_engine::component::IComponentMethods;
207    #[cfg(feature = "unity_engine-monobehaviour")]
208    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
209    #[cfg(feature = "unity_engine-object_2")]
210    pub use crate::unity_engine::object_2::IObject_2Methods;
211    pub use crate::{
212        system::{object::IObject, valuetype::IValueType},
213        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
214    };
215}