Skip to main content

engage/generated/app/
unitfor.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-unitfor-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/unitfor/UnitFor.md"))]
11    #[::unity::class(namespace = "App", name = "UnitFor")]
12    #[parent(crate::system::object::Object)]
13    pub struct UnitFor {}
14}
15
16#[cfg(feature = "app-unitfor-types")]
17pub use __types::*;
18
19#[cfg(feature = "app-unitfor")]
20impl UnitFor {
21    #[doc = "`Each(crate::app::force::Force_Type, crate::system::action_1::Action_1<crate::app::unit::Unit>)` overload"]
22    pub fn each(
23        r#type: impl ::core::convert::Into<crate::app::force::Force_Type>,
24        func: impl ::core::convert::Into<crate::system::action_1::Action_1<crate::app::unit::Unit>>,
25    ) -> () {
26        unsafe {
27            ::unity::il2cpp_call!((::unity::module_base()+0x1f7e2e0usize)as*mut u8,();
28(crate::app::force::Force_Type)::core::convert::Into::into(r#type),(crate::system::action_1::Action_1<crate::app::unit::Unit>)::core::convert::Into::into(func))
29        }
30    }
31
32    #[doc = "`Reverse(crate::app::force::Force_Type, crate::system::action_1::Action_1<crate::app::unit::Unit>)` overload"]
33    pub fn reverse(
34        r#type: impl ::core::convert::Into<crate::app::force::Force_Type>,
35        func: impl ::core::convert::Into<crate::system::action_1::Action_1<crate::app::unit::Unit>>,
36    ) -> () {
37        unsafe {
38            ::unity::il2cpp_call!((::unity::module_base()+0x1f7e370usize)as*mut u8,();
39(crate::app::force::Force_Type)::core::convert::Into::into(r#type),(crate::system::action_1::Action_1<crate::app::unit::Unit>)::core::convert::Into::into(func))
40        }
41    }
42
43    #[doc = "`Each(u32, crate::system::action_1::Action_1<crate::app::unit::Unit>)` overload"]
44    pub fn each_2(
45        force_mask: impl ::core::convert::Into<u32>,
46        func: impl ::core::convert::Into<crate::system::action_1::Action_1<crate::app::unit::Unit>>,
47    ) -> () {
48        unsafe {
49            ::unity::il2cpp_call!((::unity::module_base()+0x1f7e400usize)as*mut u8,();
50(u32)::core::convert::Into::into(force_mask),(crate::system::action_1::Action_1<crate::app::unit::Unit>)::core::convert::Into::into(func))
51        }
52    }
53
54    #[doc = "`Reverse(u32, crate::system::action_1::Action_1<crate::app::unit::Unit>)` overload"]
55    pub fn reverse_2(
56        force_mask: impl ::core::convert::Into<u32>,
57        func: impl ::core::convert::Into<crate::system::action_1::Action_1<crate::app::unit::Unit>>,
58    ) -> () {
59        unsafe {
60            ::unity::il2cpp_call!((::unity::module_base()+0x1f7e560usize)as*mut u8,();
61(u32)::core::convert::Into::into(force_mask),(crate::system::action_1::Action_1<crate::app::unit::Unit>)::core::convert::Into::into(func))
62        }
63    }
64
65    #[doc = "`Find(crate::app::force::Force_Type, crate::system::predicate_1::Predicate_1<crate::app::unit::Unit>)` overload"]
66    pub fn find(
67        r#type: impl ::core::convert::Into<crate::app::force::Force_Type>,
68        pred: impl ::core::convert::Into<crate::system::predicate_1::Predicate_1<crate::app::unit::Unit>>,
69    ) -> crate::app::unit::Unit {
70        unsafe {
71            ::unity::il2cpp_call!((::unity::module_base()+0x1f7e6c0usize)as*mut u8,crate::app::unit::Unit;
72(crate::app::force::Force_Type)::core::convert::Into::into(r#type),(crate::system::predicate_1::Predicate_1<crate::app::unit::Unit>)::core::convert::Into::into(pred))
73        }
74    }
75
76    #[doc = "`FindLast(crate::app::force::Force_Type, crate::system::predicate_1::Predicate_1<crate::app::unit::Unit>)` overload"]
77    pub fn find_last(
78        r#type: impl ::core::convert::Into<crate::app::force::Force_Type>,
79        pred: impl ::core::convert::Into<crate::system::predicate_1::Predicate_1<crate::app::unit::Unit>>,
80    ) -> crate::app::unit::Unit {
81        unsafe {
82            ::unity::il2cpp_call!((::unity::module_base()+0x1f7e750usize)as*mut u8,crate::app::unit::Unit;
83(crate::app::force::Force_Type)::core::convert::Into::into(r#type),(crate::system::predicate_1::Predicate_1<crate::app::unit::Unit>)::core::convert::Into::into(pred))
84        }
85    }
86
87    #[doc = "`Find(u32, crate::system::predicate_1::Predicate_1<crate::app::unit::Unit>)` overload"]
88    pub fn find_2(
89        force_mask: impl ::core::convert::Into<u32>,
90        pred: impl ::core::convert::Into<crate::system::predicate_1::Predicate_1<crate::app::unit::Unit>>,
91    ) -> crate::app::unit::Unit {
92        unsafe {
93            ::unity::il2cpp_call!((::unity::module_base()+0x1f7e7e0usize)as*mut u8,crate::app::unit::Unit;
94(u32)::core::convert::Into::into(force_mask),(crate::system::predicate_1::Predicate_1<crate::app::unit::Unit>)::core::convert::Into::into(pred))
95        }
96    }
97
98    #[doc = "`FindLast(u32, crate::system::predicate_1::Predicate_1<crate::app::unit::Unit>)` overload"]
99    pub fn find_last_2(
100        force_mask: impl ::core::convert::Into<u32>,
101        pred: impl ::core::convert::Into<crate::system::predicate_1::Predicate_1<crate::app::unit::Unit>>,
102    ) -> crate::app::unit::Unit {
103        unsafe {
104            ::unity::il2cpp_call!((::unity::module_base()+0x1f7e8a0usize)as*mut u8,crate::app::unit::Unit;
105(u32)::core::convert::Into::into(force_mask),(crate::system::predicate_1::Predicate_1<crate::app::unit::Unit>)::core::convert::Into::into(pred))
106        }
107    }
108
109    #[doc = "`GetPrev(crate::app::unit::Unit)` overload"]
110    pub fn get_prev(unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> crate::app::unit::Unit {
111        unsafe {
112            ::unity::il2cpp_call!((::unity::module_base()+0x1f7e3f0usize)as*mut u8,crate::app::unit::Unit;
113(crate::app::unit::Unit)::core::convert::Into::into(unit))
114        }
115    }
116
117    #[doc = "`GetNext(crate::app::unit::Unit)` overload"]
118    pub fn get_next(unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> crate::app::unit::Unit {
119        unsafe {
120            ::unity::il2cpp_call!((::unity::module_base()+0x1f7e360usize)as*mut u8,crate::app::unit::Unit;
121(crate::app::unit::Unit)::core::convert::Into::into(unit))
122        }
123    }
124
125    #[doc = "`GetPrev(crate::app::unit::Unit, u32)` overload"]
126    pub fn get_prev_2(
127        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
128        force_mask: impl ::core::convert::Into<u32>,
129    ) -> crate::app::unit::Unit {
130        unsafe {
131            ::unity::il2cpp_call!((::unity::module_base()+0x1f7e660usize)as*mut u8,crate::app::unit::Unit;
132(crate::app::unit::Unit)::core::convert::Into::into(unit),(u32)::core::convert::Into::into(force_mask))
133        }
134    }
135
136    #[doc = "`GetNext(crate::app::unit::Unit, u32)` overload"]
137    pub fn get_next_2(
138        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
139        force_mask: impl ::core::convert::Into<u32>,
140    ) -> crate::app::unit::Unit {
141        unsafe {
142            ::unity::il2cpp_call!((::unity::module_base()+0x1f7e500usize)as*mut u8,crate::app::unit::Unit;
143(crate::app::unit::Unit)::core::convert::Into::into(unit),(u32)::core::convert::Into::into(force_mask))
144        }
145    }
146}
147
148#[cfg(feature = "app-unitfor")]
149pub trait IUnitForMethods: IUnitFor {
150    #[doc = "`.ctor()` overload"]
151    fn ctor(self) -> () {
152        unsafe {
153            let __receiver = <UnitFor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
154            ::unity::il2cpp_call!((::unity::module_base()+0x1f7e960usize)as*mut u8,();
155(UnitFor)__receiver)
156        }
157    }
158}
159
160#[cfg(feature = "app-unitfor")]
161impl<__T: IUnitFor> IUnitForMethods for __T {}
162
163#[cfg(feature = "app-unitfor")]
164impl UnitFor {
165    pub fn each_method_info() -> &'static ::unity::il2cpp::MethodInfo {
166        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
167    }
168
169    pub fn reverse_method_info() -> &'static ::unity::il2cpp::MethodInfo {
170        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
171    }
172
173    pub fn each_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
174        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
175    }
176
177    pub fn reverse_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
178        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
179    }
180
181    pub fn find_method_info() -> &'static ::unity::il2cpp::MethodInfo {
182        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
183    }
184
185    pub fn find_last_method_info() -> &'static ::unity::il2cpp::MethodInfo {
186        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
187    }
188
189    pub fn find_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
190        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
191    }
192
193    pub fn find_last_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
194        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
195    }
196
197    pub fn get_prev_method_info() -> &'static ::unity::il2cpp::MethodInfo {
198        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
199    }
200
201    pub fn get_next_method_info() -> &'static ::unity::il2cpp::MethodInfo {
202        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
203    }
204
205    pub fn get_prev_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
206        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
207    }
208
209    pub fn get_next_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
210        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
211    }
212
213    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
214        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
215    }
216}
217
218#[cfg(feature = "app-unitfor")]
219impl UnitFor {
220    #[doc = "`.ctor()` — no args"]
221    pub fn new() -> Self {
222        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
223            panic!(
224                "{}
225::{}
226 failed to instantiate",
227                ::core::stringify!(UnitFor),
228                ::core::stringify!(new),
229            )
230        });
231        <Self as IUnitForMethods>::ctor(this);
232        this
233    }
234}
235
236#[cfg(feature = "app-unitfor")]
237#[doc(hidden)]
238pub mod prelude {
239    pub use super::{IUnitFor, IUnitForMethods, UnitFor};
240    pub use crate::system::object::IObject;
241    #[cfg(feature = "system-object")]
242    pub use crate::system::object::IObjectMethods;
243}