Skip to main content

engage/generated/app/
aidata.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-aidata-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            structbase::{IStructBase, StructBase},
11            structdataarray_1::{IStructDataArray_1, StructDataArray_1},
12            structtemplate_1::{IStructTemplate_1, StructTemplate_1},
13        },
14        system::object::{IObject, Object},
15    };
16
17    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/aidata/AIData.md"))]
18    #[::unity::class(namespace = "App", name = "AIData")]
19    #[parent(crate::app::structdataarray_1::StructDataArray_1<crate::app::aidata::AIData>)]
20    pub struct AIData {}
21}
22
23#[cfg(feature = "app-aidata-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-aidata")]
27impl AIData {
28    #[doc = "`Load()` overload"]
29    pub fn load() -> () {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x192f970usize)as*mut u8,();
32            )
33        }
34    }
35
36    #[doc = "`Serialize(crate::app::stream_2::Stream_2, ::unity::Il2CppString)` overload"]
37    pub fn serialize(
38        stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>,
39        sequence: impl ::core::convert::Into<::unity::Il2CppString>,
40    ) -> () {
41        unsafe {
42            ::unity::il2cpp_call!((::unity::module_base()+0x192fc60usize)as*mut u8,();
43(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream),(::unity::Il2CppString)::core::convert::Into::into(sequence))
44        }
45    }
46
47    #[doc = "`Deserialize(crate::app::stream_2::Stream_2)` overload"]
48    pub fn deserialize(stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> ::unity::Il2CppString {
49        unsafe {
50            ::unity::il2cpp_call!((::unity::module_base()+0x192fc70usize)as*mut u8, ::unity::Il2CppString;
51(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
52        }
53    }
54}
55
56#[cfg(feature = "app-aidata")]
57pub trait IAIDataMethods: IAIData {
58    #[doc = "`get_Code()` overload"]
59    fn get_code(self) -> i8 {
60        unsafe {
61            let __receiver = <AIData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
62            ::unity::il2cpp_call!((::unity::module_base()+0x192f870usize)as*mut u8,i8;
63(AIData)__receiver)
64        }
65    }
66    #[doc = "`set_Code(i8)` overload"]
67    fn set_code(self, value: impl ::core::convert::Into<i8>) -> () {
68        unsafe {
69            let __receiver = <AIData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
70            ::unity::il2cpp_call!((::unity::module_base()+0x192f880usize)as*mut u8,();
71(AIData)__receiver,(i8)::core::convert::Into::into(value))
72        }
73    }
74    #[doc = "`get_Mind()` overload"]
75    fn get_mind(self) -> i8 {
76        unsafe {
77            let __receiver = <AIData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78            ::unity::il2cpp_call!((::unity::module_base()+0x192f890usize)as*mut u8,i8;
79(AIData)__receiver)
80        }
81    }
82    #[doc = "`set_Mind(i8)` overload"]
83    fn set_mind(self, value: impl ::core::convert::Into<i8>) -> () {
84        unsafe {
85            let __receiver = <AIData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
86            ::unity::il2cpp_call!((::unity::module_base()+0x192f8a0usize)as*mut u8,();
87(AIData)__receiver,(i8)::core::convert::Into::into(value))
88        }
89    }
90    #[doc = "`get_Active()` overload"]
91    fn get_active(self) -> i8 {
92        unsafe {
93            let __receiver = <AIData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
94            ::unity::il2cpp_call!((::unity::module_base()+0x192f8b0usize)as*mut u8,i8;
95(AIData)__receiver)
96        }
97    }
98    #[doc = "`set_Active(i8)` overload"]
99    fn set_active(self, value: impl ::core::convert::Into<i8>) -> () {
100        unsafe {
101            let __receiver = <AIData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
102            ::unity::il2cpp_call!((::unity::module_base()+0x192f8c0usize)as*mut u8,();
103(AIData)__receiver,(i8)::core::convert::Into::into(value))
104        }
105    }
106    #[doc = "`get_Trans()` overload"]
107    fn get_trans(self) -> i8 {
108        unsafe {
109            let __receiver = <AIData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
110            ::unity::il2cpp_call!((::unity::module_base()+0x192f8d0usize)as*mut u8,i8;
111(AIData)__receiver)
112        }
113    }
114    #[doc = "`set_Trans(i8)` overload"]
115    fn set_trans(self, value: impl ::core::convert::Into<i8>) -> () {
116        unsafe {
117            let __receiver = <AIData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
118            ::unity::il2cpp_call!((::unity::module_base()+0x192f8e0usize)as*mut u8,();
119(AIData)__receiver,(i8)::core::convert::Into::into(value))
120        }
121    }
122    #[doc = "`get_StrValue0()` overload"]
123    fn get_str_value0(self) -> ::unity::Il2CppString {
124        unsafe {
125            let __receiver = <AIData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
126            ::unity::il2cpp_call!((::unity::module_base()+0x192f8f0usize)as*mut u8, ::unity::Il2CppString;
127(AIData)__receiver)
128        }
129    }
130    #[doc = "`set_StrValue0(::unity::Il2CppString)` overload"]
131    fn set_str_value0(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
132        unsafe {
133            let __receiver = <AIData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134            ::unity::il2cpp_call!((::unity::module_base()+0x192f900usize)as*mut u8,();
135(AIData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
136        }
137    }
138    #[doc = "`get_StrValue1()` overload"]
139    fn get_str_value1(self) -> ::unity::Il2CppString {
140        unsafe {
141            let __receiver = <AIData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
142            ::unity::il2cpp_call!((::unity::module_base()+0x192f910usize)as*mut u8, ::unity::Il2CppString;
143(AIData)__receiver)
144        }
145    }
146    #[doc = "`set_StrValue1(::unity::Il2CppString)` overload"]
147    fn set_str_value1(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
148        unsafe {
149            let __receiver = <AIData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
150            ::unity::il2cpp_call!((::unity::module_base()+0x192f920usize)as*mut u8,();
151(AIData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
152        }
153    }
154    #[doc = "`get_Value0()` overload"]
155    fn get_value0(self) -> crate::app::aivalue::AIValue {
156        unsafe {
157            let __receiver = <AIData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
158            ::unity::il2cpp_call!((::unity::module_base()+0x192f930usize)as*mut u8,crate::app::aivalue::AIValue;
159(AIData)__receiver)
160        }
161    }
162    #[doc = "`set_Value0(crate::app::aivalue::AIValue)` overload"]
163    fn set_value0(self, value: impl ::core::convert::Into<crate::app::aivalue::AIValue>) -> () {
164        unsafe {
165            let __receiver = <AIData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
166            ::unity::il2cpp_call!((::unity::module_base()+0x192f940usize)as*mut u8,();
167(AIData)__receiver,(crate::app::aivalue::AIValue)::core::convert::Into::into(value))
168        }
169    }
170    #[doc = "`get_Value1()` overload"]
171    fn get_value1(self) -> crate::app::aivalue::AIValue {
172        unsafe {
173            let __receiver = <AIData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
174            ::unity::il2cpp_call!((::unity::module_base()+0x192f950usize)as*mut u8,crate::app::aivalue::AIValue;
175(AIData)__receiver)
176        }
177    }
178    #[doc = "`set_Value1(crate::app::aivalue::AIValue)` overload"]
179    fn set_value1(self, value: impl ::core::convert::Into<crate::app::aivalue::AIValue>) -> () {
180        unsafe {
181            let __receiver = <AIData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
182            ::unity::il2cpp_call!((::unity::module_base()+0x192f960usize)as*mut u8,();
183(AIData)__receiver,(crate::app::aivalue::AIValue)::core::convert::Into::into(value))
184        }
185    }
186    #[doc = "`OnCompleted()` overload"]
187    fn on_completed(self) -> () {
188        unsafe {
189            let __receiver = <AIData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
190            {
191                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
192                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
193                    panic!(
194                        "unity: virtual slot {}
195 out of range (vtable len {}
196) on the runtime class behind {}
197 (method `{}
198`)",
199                        5usize,
200                        __vt.len(),
201                        <AIData as ::unity::ClassIdentity>::NAME,
202                        "OnCompleted",
203                    )
204                });
205                let __inner: extern "C" fn(AIData, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
206                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
207                __inner(__receiver, __mi)
208            }
209        }
210    }
211    #[doc = "`OnCompletedEnd()` overload"]
212    fn on_completed_end(self) -> () {
213        unsafe {
214            let __receiver = <AIData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
215            {
216                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
217                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
218                    panic!(
219                        "unity: virtual slot {}
220 out of range (vtable len {}
221) on the runtime class behind {}
222 (method `{}
223`)",
224                        6usize,
225                        __vt.len(),
226                        <AIData as ::unity::ClassIdentity>::NAME,
227                        "OnCompletedEnd",
228                    )
229                });
230                let __inner: extern "C" fn(AIData, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
231                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
232                __inner(__receiver, __mi)
233            }
234        }
235    }
236    #[doc = "`.ctor()` overload"]
237    fn ctor(self) -> () {
238        unsafe {
239            let __receiver = <AIData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
240            ::unity::il2cpp_call!((::unity::module_base()+0x192fb40usize)as*mut u8,();
241(AIData)__receiver)
242        }
243    }
244    #[doc = "`Convert()` overload"]
245    fn convert(self) -> () {
246        unsafe {
247            let __receiver = <AIData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
248            ::unity::il2cpp_call!((::unity::module_base()+0x192fa90usize)as*mut u8,();
249(AIData)__receiver)
250        }
251    }
252    #[doc = "`GetDebugName()` overload"]
253    fn get_debug_name(self) -> ::unity::Il2CppString {
254        unsafe {
255            let __receiver = <AIData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
256            {
257                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
258                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
259                    panic!(
260                        "unity: virtual slot {}
261 out of range (vtable len {}
262) on the runtime class behind {}
263 (method `{}
264`)",
265                        8usize,
266                        __vt.len(),
267                        <AIData as ::unity::ClassIdentity>::NAME,
268                        "GetDebugName",
269                    )
270                });
271                let __inner: extern "C" fn(AIData, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
272                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
273                __inner(__receiver, __mi)
274            }
275        }
276    }
277}
278
279#[cfg(feature = "app-aidata")]
280impl<__T: IAIData> IAIDataMethods for __T {}
281
282#[cfg(feature = "app-aidata")]
283impl AIData {
284    pub fn get_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
285        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
286    }
287
288    pub fn set_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
289        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
290    }
291
292    pub fn get_mind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
293        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
294    }
295
296    pub fn set_mind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
298    }
299
300    pub fn get_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
301        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
302    }
303
304    pub fn set_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
305        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
306    }
307
308    pub fn get_trans_method_info() -> &'static ::unity::il2cpp::MethodInfo {
309        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
310    }
311
312    pub fn set_trans_method_info() -> &'static ::unity::il2cpp::MethodInfo {
313        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
314    }
315
316    pub fn get_str_value0_method_info() -> &'static ::unity::il2cpp::MethodInfo {
317        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
318    }
319
320    pub fn set_str_value0_method_info() -> &'static ::unity::il2cpp::MethodInfo {
321        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
322    }
323
324    pub fn get_str_value1_method_info() -> &'static ::unity::il2cpp::MethodInfo {
325        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
326    }
327
328    pub fn set_str_value1_method_info() -> &'static ::unity::il2cpp::MethodInfo {
329        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
330    }
331
332    pub fn get_value0_method_info() -> &'static ::unity::il2cpp::MethodInfo {
333        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
334    }
335
336    pub fn set_value0_method_info() -> &'static ::unity::il2cpp::MethodInfo {
337        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
338    }
339
340    pub fn get_value1_method_info() -> &'static ::unity::il2cpp::MethodInfo {
341        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
342    }
343
344    pub fn set_value1_method_info() -> &'static ::unity::il2cpp::MethodInfo {
345        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
346    }
347
348    pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
349        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
350    }
351
352    pub fn on_completed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
353        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
354    }
355
356    pub fn on_completed_end_method_info() -> &'static ::unity::il2cpp::MethodInfo {
357        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
358    }
359
360    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
361        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
362    }
363
364    pub fn convert_method_info() -> &'static ::unity::il2cpp::MethodInfo {
365        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
366    }
367
368    pub fn get_debug_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
369        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
370    }
371
372    pub fn serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
373        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
374    }
375
376    pub fn deserialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
377        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
378    }
379}
380
381#[cfg(feature = "app-aidata")]
382impl AIData {
383    #[doc = "Direct (non-virtual) call to `AIData`'s own `OnCompleted`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
384    pub unsafe fn on_completed(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
385        let __mi = Self::on_completed_method_info();
386        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
387        __inner(this.into(), ::core::option::Option::None)
388    }
389
390    #[doc = "Direct (non-virtual) call to `AIData`'s own `OnCompletedEnd`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
391    pub unsafe fn on_completed_end(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
392        let __mi = Self::on_completed_end_method_info();
393        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
394        __inner(this.into(), ::core::option::Option::None)
395    }
396
397    #[doc = "Direct (non-virtual) call to `AIData`'s own `GetDebugName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
398    pub unsafe fn get_debug_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
399        let __mi = Self::get_debug_name_method_info();
400        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
401        __inner(this.into(), ::core::option::Option::None)
402    }
403}
404
405#[cfg(feature = "app-aidata")]
406impl AIData {
407    #[doc = "`.ctor()` — no args"]
408    pub fn new() -> Self {
409        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
410            panic!(
411                "{}
412::{}
413 failed to instantiate",
414                ::core::stringify!(AIData),
415                ::core::stringify!(new),
416            )
417        });
418        <Self as IAIDataMethods>::ctor(this);
419        this
420    }
421}
422
423#[cfg(feature = "app-aidata")]
424#[doc(hidden)]
425pub mod prelude {
426    pub use super::{AIData, IAIData, IAIDataMethods};
427    #[cfg(feature = "app-structbase")]
428    pub use crate::app::structbase::IStructBaseMethods;
429    #[cfg(feature = "app-structdataarray_1")]
430    pub use crate::app::structdataarray_1::IStructDataArray_1Methods;
431    #[cfg(feature = "app-structtemplate_1")]
432    pub use crate::app::structtemplate_1::IStructTemplate_1Methods;
433    #[cfg(feature = "system-object")]
434    pub use crate::system::object::IObjectMethods;
435    pub use crate::{
436        app::{structbase::IStructBase, structdataarray_1::IStructDataArray_1, structtemplate_1::IStructTemplate_1},
437        system::object::IObject,
438    };
439}