Skip to main content

engage/generated/app/
eventdata.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-eventdata-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::{
15            object::{IObject, Object},
16            r#enum::{Enum, IEnum},
17            valuetype::{IValueType, ValueType},
18        },
19    };
20
21    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/eventdata/EventData.md"))]
22    #[::unity::class(namespace = "App", name = "EventData")]
23    #[parent(crate::app::structdataarray_1::StructDataArray_1<crate::app::eventdata::EventData>)]
24    pub struct EventData {}
25
26    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/eventdata/EventData_Commands.md"))]
27    #[repr(C)]
28    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
29    pub struct EventData_Commands {
30        pub value: i32,
31    }
32    impl ::unity::ClassIdentity for EventData_Commands {
33        const NAME: &'static str = "EventData.Commands";
34        const NAMESPACE: &'static str = "App";
35
36        fn class() -> ::unity::Class {
37            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
38            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
39        }
40    }
41    impl ::unity::IlType for EventData_Commands {
42        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
43            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
44        }
45    }
46    impl EventData_Commands {
47        pub fn none() -> Self {
48            Self { value: 0 }
49        }
50
51        pub fn label() -> Self {
52            Self { value: 10 }
53        }
54
55        pub fn jump() -> Self {
56            Self { value: 11 }
57        }
58
59        pub fn wait() -> Self {
60            Self { value: 12 }
61        }
62
63        pub fn variant() -> Self {
64            Self { value: 13 }
65        }
66
67        pub fn set_background() -> Self {
68            Self { value: 21 }
69        }
70
71        pub fn set_back_ground_auto() -> Self {
72            Self { value: 22 }
73        }
74
75        pub fn fade_in() -> Self {
76            Self { value: 30 }
77        }
78
79        pub fn fade_out() -> Self {
80            Self { value: 31 }
81        }
82
83        pub fn camera_set_chara_camera() -> Self {
84            Self { value: 40 }
85        }
86
87        pub fn camera_set_scene_camera() -> Self {
88            Self { value: 41 }
89        }
90
91        pub fn camera_set_shake() -> Self {
92            Self { value: 42 }
93        }
94
95        pub fn character_create() -> Self {
96            Self { value: 50 }
97        }
98
99        pub fn character_delete() -> Self {
100            Self { value: 51 }
101        }
102
103        pub fn character_adjust_pos() -> Self {
104            Self { value: 52 }
105        }
106
107        pub fn character_show_hide() -> Self {
108            Self { value: 53 }
109        }
110
111        pub fn character_play_motion() -> Self {
112            Self { value: 54 }
113        }
114
115        pub fn character_wait_motion() -> Self {
116            Self { value: 55 }
117        }
118
119        pub fn character_set_angle() -> Self {
120            Self { value: 56 }
121        }
122
123        pub fn character_reset_angle() -> Self {
124            Self { value: 57 }
125        }
126
127        pub fn message_load() -> Self {
128            Self { value: 60 }
129        }
130
131        pub fn talk_begin() -> Self {
132            Self { value: 61 }
133        }
134
135        pub fn talk_face_begin() -> Self {
136            Self { value: 62 }
137        }
138
139        pub fn picture_show() -> Self {
140            Self { value: 70 }
141        }
142
143        pub fn picture_hide() -> Self {
144            Self { value: 71 }
145        }
146
147        pub fn bgm() -> Self {
148            Self { value: 80 }
149        }
150
151        pub fn se() -> Self {
152            Self { value: 81 }
153        }
154
155        pub fn test_system_voice_load() -> Self {
156            Self { value: 100 }
157        }
158
159        pub fn test_system_voice_unload() -> Self {
160            Self { value: 101 }
161        }
162
163        pub fn test_system_voice_play() -> Self {
164            Self { value: 102 }
165        }
166    }
167}
168
169#[cfg(feature = "app-eventdata-types")]
170pub use __types::*;
171
172#[cfg(feature = "app-eventdata")]
173impl EventData {
174    #[doc = "`Load(::unity::Il2CppString)` overload"]
175    pub fn load(file_name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
176        unsafe {
177            ::unity::il2cpp_call!((::unity::module_base()+0x24d38e0usize)as*mut u8,();
178(::unity::Il2CppString)::core::convert::Into::into(file_name))
179        }
180    }
181}
182
183#[cfg(feature = "app-eventdata")]
184pub trait IEventDataMethods: IEventData {
185    #[doc = "`get_Command()` overload"]
186    fn get_command(self) -> crate::app::eventdata::EventData_Commands {
187        unsafe {
188            let __receiver = <EventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
189            ::unity::il2cpp_call!((::unity::module_base()+0x24d37c0usize)as*mut u8,crate::app::eventdata::EventData_Commands;
190(EventData)__receiver)
191        }
192    }
193    #[doc = "`set_Command(crate::app::eventdata::EventData_Commands)` overload"]
194    fn set_command(self, value: impl ::core::convert::Into<crate::app::eventdata::EventData_Commands>) -> () {
195        unsafe {
196            let __receiver = <EventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
197            ::unity::il2cpp_call!((::unity::module_base()+0x24d37d0usize)as*mut u8,();
198(EventData)__receiver,(crate::app::eventdata::EventData_Commands)::core::convert::Into::into(value))
199        }
200    }
201    #[doc = "`get_Arg1()` overload"]
202    fn get_arg1(self) -> ::unity::Il2CppString {
203        unsafe {
204            let __receiver = <EventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
205            ::unity::il2cpp_call!((::unity::module_base()+0x24d37e0usize)as*mut u8, ::unity::Il2CppString;
206(EventData)__receiver)
207        }
208    }
209    #[doc = "`set_Arg1(::unity::Il2CppString)` overload"]
210    fn set_arg1(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
211        unsafe {
212            let __receiver = <EventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
213            ::unity::il2cpp_call!((::unity::module_base()+0x24d37f0usize)as*mut u8,();
214(EventData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
215        }
216    }
217    #[doc = "`get_Arg2()` overload"]
218    fn get_arg2(self) -> ::unity::Il2CppString {
219        unsafe {
220            let __receiver = <EventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
221            ::unity::il2cpp_call!((::unity::module_base()+0x24d3800usize)as*mut u8, ::unity::Il2CppString;
222(EventData)__receiver)
223        }
224    }
225    #[doc = "`set_Arg2(::unity::Il2CppString)` overload"]
226    fn set_arg2(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
227        unsafe {
228            let __receiver = <EventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
229            ::unity::il2cpp_call!((::unity::module_base()+0x24d3810usize)as*mut u8,();
230(EventData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
231        }
232    }
233    #[doc = "`get_Arg3()` overload"]
234    fn get_arg3(self) -> ::unity::Il2CppString {
235        unsafe {
236            let __receiver = <EventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
237            ::unity::il2cpp_call!((::unity::module_base()+0x24d3820usize)as*mut u8, ::unity::Il2CppString;
238(EventData)__receiver)
239        }
240    }
241    #[doc = "`set_Arg3(::unity::Il2CppString)` overload"]
242    fn set_arg3(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
243        unsafe {
244            let __receiver = <EventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
245            ::unity::il2cpp_call!((::unity::module_base()+0x24d3830usize)as*mut u8,();
246(EventData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
247        }
248    }
249    #[doc = "`get_Arg4()` overload"]
250    fn get_arg4(self) -> ::unity::Il2CppString {
251        unsafe {
252            let __receiver = <EventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
253            ::unity::il2cpp_call!((::unity::module_base()+0x24d3840usize)as*mut u8, ::unity::Il2CppString;
254(EventData)__receiver)
255        }
256    }
257    #[doc = "`set_Arg4(::unity::Il2CppString)` overload"]
258    fn set_arg4(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
259        unsafe {
260            let __receiver = <EventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
261            ::unity::il2cpp_call!((::unity::module_base()+0x24d3850usize)as*mut u8,();
262(EventData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
263        }
264    }
265    #[doc = "`get_Arg5()` overload"]
266    fn get_arg5(self) -> ::unity::Il2CppString {
267        unsafe {
268            let __receiver = <EventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
269            ::unity::il2cpp_call!((::unity::module_base()+0x24d3860usize)as*mut u8, ::unity::Il2CppString;
270(EventData)__receiver)
271        }
272    }
273    #[doc = "`set_Arg5(::unity::Il2CppString)` overload"]
274    fn set_arg5(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
275        unsafe {
276            let __receiver = <EventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
277            ::unity::il2cpp_call!((::unity::module_base()+0x24d3870usize)as*mut u8,();
278(EventData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
279        }
280    }
281    #[doc = "`get_Arg6()` overload"]
282    fn get_arg6(self) -> ::unity::Il2CppString {
283        unsafe {
284            let __receiver = <EventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
285            ::unity::il2cpp_call!((::unity::module_base()+0x24d3880usize)as*mut u8, ::unity::Il2CppString;
286(EventData)__receiver)
287        }
288    }
289    #[doc = "`set_Arg6(::unity::Il2CppString)` overload"]
290    fn set_arg6(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
291        unsafe {
292            let __receiver = <EventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
293            ::unity::il2cpp_call!((::unity::module_base()+0x24d3890usize)as*mut u8,();
294(EventData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
295        }
296    }
297    #[doc = "`get_Arg7()` overload"]
298    fn get_arg7(self) -> ::unity::Il2CppString {
299        unsafe {
300            let __receiver = <EventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
301            ::unity::il2cpp_call!((::unity::module_base()+0x24d38a0usize)as*mut u8, ::unity::Il2CppString;
302(EventData)__receiver)
303        }
304    }
305    #[doc = "`set_Arg7(::unity::Il2CppString)` overload"]
306    fn set_arg7(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
307        unsafe {
308            let __receiver = <EventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
309            ::unity::il2cpp_call!((::unity::module_base()+0x24d38b0usize)as*mut u8,();
310(EventData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
311        }
312    }
313    #[doc = "`get_Condition()` overload"]
314    fn get_condition(self) -> ::unity::Il2CppString {
315        unsafe {
316            let __receiver = <EventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
317            ::unity::il2cpp_call!((::unity::module_base()+0x24d38c0usize)as*mut u8, ::unity::Il2CppString;
318(EventData)__receiver)
319        }
320    }
321    #[doc = "`set_Condition(::unity::Il2CppString)` overload"]
322    fn set_condition(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
323        unsafe {
324            let __receiver = <EventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
325            ::unity::il2cpp_call!((::unity::module_base()+0x24d38d0usize)as*mut u8,();
326(EventData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
327        }
328    }
329    #[doc = "`GetDebugName()` overload"]
330    fn get_debug_name(self) -> ::unity::Il2CppString {
331        unsafe {
332            let __receiver = <EventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
333            {
334                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
335                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
336                    panic!(
337                        "unity: virtual slot {}
338 out of range (vtable len {}
339) on the runtime class behind {}
340 (method `{}
341`)",
342                        8usize,
343                        __vt.len(),
344                        <EventData as ::unity::ClassIdentity>::NAME,
345                        "GetDebugName",
346                    )
347                });
348                let __inner: extern "C" fn(EventData, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
349                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
350                __inner(__receiver, __mi)
351            }
352        }
353    }
354    #[doc = "`.ctor()` overload"]
355    fn ctor(self) -> () {
356        unsafe {
357            let __receiver = <EventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
358            ::unity::il2cpp_call!((::unity::module_base()+0x24d3a70usize)as*mut u8,();
359(EventData)__receiver)
360        }
361    }
362}
363
364#[cfg(feature = "app-eventdata")]
365impl<__T: IEventData> IEventDataMethods for __T {}
366
367#[cfg(feature = "app-eventdata")]
368impl EventData {
369    pub fn get_command_method_info() -> &'static ::unity::il2cpp::MethodInfo {
370        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
371    }
372
373    pub fn set_command_method_info() -> &'static ::unity::il2cpp::MethodInfo {
374        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
375    }
376
377    pub fn get_arg1_method_info() -> &'static ::unity::il2cpp::MethodInfo {
378        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
379    }
380
381    pub fn set_arg1_method_info() -> &'static ::unity::il2cpp::MethodInfo {
382        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
383    }
384
385    pub fn get_arg2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
386        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
387    }
388
389    pub fn set_arg2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
390        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
391    }
392
393    pub fn get_arg3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
394        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
395    }
396
397    pub fn set_arg3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
398        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
399    }
400
401    pub fn get_arg4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
402        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
403    }
404
405    pub fn set_arg4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
406        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
407    }
408
409    pub fn get_arg5_method_info() -> &'static ::unity::il2cpp::MethodInfo {
410        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
411    }
412
413    pub fn set_arg5_method_info() -> &'static ::unity::il2cpp::MethodInfo {
414        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
415    }
416
417    pub fn get_arg6_method_info() -> &'static ::unity::il2cpp::MethodInfo {
418        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
419    }
420
421    pub fn set_arg6_method_info() -> &'static ::unity::il2cpp::MethodInfo {
422        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
423    }
424
425    pub fn get_arg7_method_info() -> &'static ::unity::il2cpp::MethodInfo {
426        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
427    }
428
429    pub fn set_arg7_method_info() -> &'static ::unity::il2cpp::MethodInfo {
430        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
431    }
432
433    pub fn get_condition_method_info() -> &'static ::unity::il2cpp::MethodInfo {
434        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
435    }
436
437    pub fn set_condition_method_info() -> &'static ::unity::il2cpp::MethodInfo {
438        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
439    }
440
441    pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
442        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
443    }
444
445    pub fn get_debug_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
446        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
447    }
448
449    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
450        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
451    }
452}
453
454#[cfg(feature = "app-eventdata")]
455impl EventData {
456    #[doc = "Direct (non-virtual) call to `EventData`'s own `GetDebugName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
457    pub unsafe fn get_debug_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
458        let __mi = Self::get_debug_name_method_info();
459        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
460        __inner(this.into(), ::core::option::Option::None)
461    }
462}
463
464#[cfg(feature = "app-eventdata")]
465impl EventData {
466    #[doc = "`.ctor()` — no args"]
467    pub fn new() -> Self {
468        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
469            panic!(
470                "{}
471::{}
472 failed to instantiate",
473                ::core::stringify!(EventData),
474                ::core::stringify!(new),
475            )
476        });
477        <Self as IEventDataMethods>::ctor(this);
478        this
479    }
480}
481
482#[cfg(feature = "app-eventdata")]
483#[doc(hidden)]
484pub mod prelude {
485    pub use super::{EventData, EventData_Commands, IEventData, IEventDataMethods};
486    #[cfg(feature = "app-structbase")]
487    pub use crate::app::structbase::IStructBaseMethods;
488    #[cfg(feature = "app-structdataarray_1")]
489    pub use crate::app::structdataarray_1::IStructDataArray_1Methods;
490    #[cfg(feature = "app-structtemplate_1")]
491    pub use crate::app::structtemplate_1::IStructTemplate_1Methods;
492    #[cfg(feature = "system-object")]
493    pub use crate::system::object::IObjectMethods;
494    #[cfg(feature = "system-enum")]
495    pub use crate::system::r#enum::IEnumMethods;
496    #[cfg(feature = "system-valuetype")]
497    pub use crate::system::valuetype::IValueTypeMethods;
498    pub use crate::{
499        app::{structbase::IStructBase, structdataarray_1::IStructDataArray_1, structtemplate_1::IStructTemplate_1},
500        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
501    };
502}