1#[cfg(feature = "app-conditiongettercommand-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::calculatorcommand::{CalculatorCommand, ICalculatorCommand},
10 system::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/conditiongettercommand/ConditionGetterCommand_Command.md"))]
14 #[::unity::class(namespace = "App", name = "ConditionGetterCommand.Command")]
15 #[parent(crate::system::object::Object)]
16 pub struct ConditionGetterCommand_Command {
17 #[offset(16)]
18 #[rename(name = "Condition")]
19 pub condition: crate::app::stringcalculator::StringCalculator,
20 #[offset(24)]
21 #[rename(name = "Function")]
22 pub function: crate::app::stringcalculator::StringCalculator,
23 }
24
25 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/conditiongettercommand/ConditionGetterCommand.md"))]
26 #[::unity::class(namespace = "App", name = "ConditionGetterCommand")]
27 #[parent(crate::app::calculatorcommand::CalculatorCommand)]
28 pub struct ConditionGetterCommand {
29 #[offset(24)]
30 #[rename(name = "m_Commands")]
31 pub m_commands: crate::system::collections::generic::list_1::List_1<crate::app::conditiongettercommand::ConditionGetterCommand_Command>,
32 #[offset(32)]
33 #[rename(name = "m_Name")]
34 pub m_name: ::unity::Il2CppString,
35 }
36}
37
38#[cfg(feature = "app-conditiongettercommand-types")]
39pub use __types::*;
40
41#[cfg(feature = "app-conditiongettercommand")]
42pub trait IConditionGetterCommand_CommandMethods: IConditionGetterCommand_Command {
43 #[doc = "`.ctor()` overload"]
44 fn ctor(self) -> () {
45 unsafe {
46 let __receiver =
47 <ConditionGetterCommand_Command as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48 ::unity::il2cpp_call!((::unity::module_base()+0x19cbb20usize)as*mut u8,();
49(ConditionGetterCommand_Command)__receiver)
50 }
51 }
52}
53
54#[cfg(feature = "app-conditiongettercommand")]
55impl<__T: IConditionGetterCommand_Command> IConditionGetterCommand_CommandMethods for __T {}
56
57#[cfg(feature = "app-conditiongettercommand")]
58impl ConditionGetterCommand_Command {
59 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
60 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
61 }
62}
63
64#[cfg(feature = "app-conditiongettercommand")]
65impl ConditionGetterCommand_Command {
66 #[doc = "`.ctor()` — no args"]
67 pub fn new() -> Self {
68 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
69 panic!(
70 "{}
71::{}
72 failed to instantiate",
73 ::core::stringify!(ConditionGetterCommand_Command),
74 ::core::stringify!(new),
75 )
76 });
77 <Self as IConditionGetterCommand_CommandMethods>::ctor(this);
78 this
79 }
80}
81
82#[cfg(feature = "app-conditiongettercommand")]
83pub trait IConditionGetterCommandMethods: IConditionGetterCommand {
84 #[doc = "`.ctor(::unity::Il2CppString)` overload"]
85 fn ctor(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
86 unsafe {
87 let __receiver =
88 <ConditionGetterCommand as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
89 ::unity::il2cpp_call!((::unity::module_base()+0x2536b20usize)as*mut u8,();
90(ConditionGetterCommand)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
91 }
92 }
93 #[doc = "`get_Name()` overload"]
94 fn get_name(self) -> ::unity::Il2CppString {
95 unsafe {
96 let __receiver =
97 <ConditionGetterCommand as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98 {
99 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
100 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
101 panic!(
102 "unity: virtual slot {}
103 out of range (vtable len {}
104) on the runtime class behind {}
105 (method `{}
106`)",
107 4usize,
108 __vt.len(),
109 <ConditionGetterCommand as ::unity::ClassIdentity>::NAME,
110 "get_Name",
111 )
112 });
113 let __inner: extern "C" fn(ConditionGetterCommand, ::unity::OptionalMethod) -> ::unity::Il2CppString =
114 ::core::mem::transmute(__vi.method_ptr);
115 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
116 __inner(__receiver, __mi)
117 }
118 }
119 }
120 #[doc = "`Get(crate::system::object::Object, crate::system::object::Object)` overload"]
121 fn get(
122 self,
123 obj1: impl ::core::convert::Into<crate::system::object::Object>,
124 obj2: impl ::core::convert::Into<crate::system::object::Object>,
125 ) -> f32 {
126 unsafe {
127 let __receiver =
128 <ConditionGetterCommand as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
129 {
130 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
131 let __vi = *__vt.get(11usize).unwrap_or_else(|| {
132 panic!(
133 "unity: virtual slot {}
134 out of range (vtable len {}
135) on the runtime class behind {}
136 (method `{}
137`)",
138 11usize,
139 __vt.len(),
140 <ConditionGetterCommand as ::unity::ClassIdentity>::NAME,
141 "Get",
142 )
143 });
144 let __inner: extern "C" fn(
145 ConditionGetterCommand,
146 crate::system::object::Object,
147 crate::system::object::Object,
148 ::unity::OptionalMethod,
149 ) -> f32 = ::core::mem::transmute(__vi.method_ptr);
150 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
151 __inner(__receiver, ::core::convert::Into::into(obj1), ::core::convert::Into::into(obj2), __mi)
152 }
153 }
154 }
155 #[doc = "`Func(crate::system::collections::generic::list_1::List_1<f32>, crate::system::object::Object, crate::system::object::Object)` overload"]
156 fn func(
157 self,
158 args: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<f32>>,
159 obj1: impl ::core::convert::Into<crate::system::object::Object>,
160 obj2: impl ::core::convert::Into<crate::system::object::Object>,
161 ) -> f32 {
162 unsafe {
163 let __receiver =
164 <ConditionGetterCommand as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
165 {
166 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
167 let __vi = *__vt.get(26usize).unwrap_or_else(|| {
168 panic!(
169 "unity: virtual slot {}
170 out of range (vtable len {}
171) on the runtime class behind {}
172 (method `{}
173`)",
174 26usize,
175 __vt.len(),
176 <ConditionGetterCommand as ::unity::ClassIdentity>::NAME,
177 "Func",
178 )
179 });
180 let __inner: extern "C" fn(
181 ConditionGetterCommand,
182 crate::system::collections::generic::list_1::List_1<f32>,
183 crate::system::object::Object,
184 crate::system::object::Object,
185 ::unity::OptionalMethod,
186 ) -> f32 = ::core::mem::transmute(__vi.method_ptr);
187 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
188 __inner(
189 __receiver,
190 ::core::convert::Into::into(args),
191 ::core::convert::Into::into(obj1),
192 ::core::convert::Into::into(obj2),
193 __mi,
194 )
195 }
196 }
197 }
198 #[doc = "`Add(::unity::Il2CppString)` overload"]
199 fn add(self, funcion: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
200 unsafe {
201 let __receiver =
202 <ConditionGetterCommand as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
203 ::unity::il2cpp_call!((::unity::module_base()+0x2536d80usize)as*mut u8,();
204(ConditionGetterCommand)__receiver,(::unity::Il2CppString)::core::convert::Into::into(funcion))
205 }
206 }
207 #[doc = "`Add(::unity::Il2CppString, ::unity::Il2CppString)` overload"]
208 fn add_2(self, condtion: impl ::core::convert::Into<::unity::Il2CppString>, funcion: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
209 unsafe {
210 let __receiver =
211 <ConditionGetterCommand as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
212 ::unity::il2cpp_call!((::unity::module_base()+0x2536d90usize)as*mut u8,();
213(ConditionGetterCommand)__receiver,(::unity::Il2CppString)::core::convert::Into::into(condtion),(::unity::Il2CppString)::core::convert::Into::into(funcion))
214 }
215 }
216}
217
218#[cfg(feature = "app-conditiongettercommand")]
219impl<__T: IConditionGetterCommand> IConditionGetterCommandMethods for __T {}
220
221#[cfg(feature = "app-conditiongettercommand")]
222impl ConditionGetterCommand {
223 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
224 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
225 }
226
227 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
228 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
229 }
230
231 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
232 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
233 }
234
235 pub fn func_method_info() -> &'static ::unity::il2cpp::MethodInfo {
236 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
237 }
238
239 pub fn add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
240 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
241 }
242
243 pub fn add_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
244 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
245 }
246}
247
248#[cfg(feature = "app-conditiongettercommand")]
249impl ConditionGetterCommand {
250 #[doc = "Direct (non-virtual) call to `ConditionGetterCommand`'s own `get_Name`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
251 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
252 let __mi = Self::get_name_method_info();
253 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
254 __inner(this.into(), ::core::option::Option::None)
255 }
256
257 #[doc = "Direct (non-virtual) call to `ConditionGetterCommand`'s own `Get`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
258 pub unsafe fn get(
259 this: impl ::core::convert::Into<::unity::IlInstance>,
260 obj1: crate::system::object::Object,
261 obj2: crate::system::object::Object,
262 ) -> f32 {
263 let __mi = Self::get_method_info();
264 let __inner: extern "C" fn(
265 ::unity::IlInstance,
266 crate::system::object::Object,
267 crate::system::object::Object,
268 ::unity::OptionalMethod,
269 ) -> f32 = ::core::mem::transmute(__mi.method_ptr);
270 __inner(this.into(), obj1, obj2, ::core::option::Option::None)
271 }
272
273 #[doc = "Direct (non-virtual) call to `ConditionGetterCommand`'s own `Func`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
274 pub unsafe fn func(
275 this: impl ::core::convert::Into<::unity::IlInstance>,
276 args: crate::system::collections::generic::list_1::List_1<f32>,
277 obj1: crate::system::object::Object,
278 obj2: crate::system::object::Object,
279 ) -> f32 {
280 let __mi = Self::func_method_info();
281 let __inner: extern "C" fn(
282 ::unity::IlInstance,
283 crate::system::collections::generic::list_1::List_1<f32>,
284 crate::system::object::Object,
285 crate::system::object::Object,
286 ::unity::OptionalMethod,
287 ) -> f32 = ::core::mem::transmute(__mi.method_ptr);
288 __inner(this.into(), args, obj1, obj2, ::core::option::Option::None)
289 }
290}
291
292#[cfg(feature = "app-conditiongettercommand")]
293impl ConditionGetterCommand {
294 #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
295 pub fn new(name: ::unity::Il2CppString) -> Self {
296 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
297 panic!(
298 "{}
299::{}
300 failed to instantiate",
301 ::core::stringify!(ConditionGetterCommand),
302 ::core::stringify!(new),
303 )
304 });
305 <Self as IConditionGetterCommandMethods>::ctor(this, name);
306 this
307 }
308}
309
310#[cfg(feature = "app-conditiongettercommand")]
311#[doc(hidden)]
312pub mod prelude {
313 pub use super::{
314 ConditionGetterCommand, ConditionGetterCommand_Command, IConditionGetterCommand, IConditionGetterCommandMethods,
315 IConditionGetterCommand_Command, IConditionGetterCommand_CommandMethods,
316 };
317 #[cfg(feature = "app-calculatorcommand")]
318 pub use crate::app::calculatorcommand::ICalculatorCommandMethods;
319 #[cfg(feature = "system-object")]
320 pub use crate::system::object::IObjectMethods;
321 pub use crate::{app::calculatorcommand::ICalculatorCommand, system::object::IObject};
322}