Skip to main content

engage/generated/app/
eventscript.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-eventscript-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        moon_sharp::interpreter::script::{IScript, Script},
10        system::{
11            delegate::{Delegate, IDelegate},
12            multicastdelegate::{IMulticastDelegate, MulticastDelegate},
13            object::{IObject, Object},
14        },
15    };
16
17    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/eventscript/EventScript_FunctionArgs.md"))]
18    #[::unity::class(namespace = "App", name = "EventScript.FunctionArgs")]
19    #[parent(crate::system::multicastdelegate::MulticastDelegate)]
20    pub struct EventScript_FunctionArgs {}
21
22    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/eventscript/EventScript_ActionArgs.md"))]
23    #[::unity::class(namespace = "App", name = "EventScript.ActionArgs")]
24    #[parent(crate::system::multicastdelegate::MulticastDelegate)]
25    pub struct EventScript_ActionArgs {}
26
27    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/eventscript/EventScript.md"))]
28    #[::unity::class(namespace = "App", name = "EventScript")]
29    #[parent(crate::moon_sharp::interpreter::script::Script)]
30    pub struct EventScript {
31        #[static_field]
32        #[rename(name = "s_Stack")]
33        pub s_stack: crate::system::collections::generic::stack_1::Stack_1<crate::app::eventscript::EventScript>,
34    }
35}
36
37#[cfg(feature = "app-eventscript-types")]
38pub use __types::*;
39
40#[cfg(feature = "app-eventscript")]
41pub trait IEventScript_FunctionArgsMethods: IEventScript_FunctionArgs {
42    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
43    fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
44        unsafe {
45            let __receiver =
46                <EventScript_FunctionArgs as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
47            ::unity::il2cpp_call!((::unity::module_base()+0x1e584f0usize)as*mut u8,();
48(EventScript_FunctionArgs)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
49        }
50    }
51    #[doc = "`Invoke(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
52    fn invoke(
53        self,
54        args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>,
55    ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
56        unsafe {
57            let __receiver =
58                <EventScript_FunctionArgs as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59            {
60                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
61                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
62                    panic!(
63                        "unity: virtual slot {}
64 out of range (vtable len {}
65) on the runtime class behind {}
66 (method `{}
67`)",
68                        13usize,
69                        __vt.len(),
70                        <EventScript_FunctionArgs as ::unity::ClassIdentity>::NAME,
71                        "Invoke",
72                    )
73                });
74                let __inner: extern "C" fn(
75                    EventScript_FunctionArgs,
76                    ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>,
77                    ::unity::OptionalMethod,
78                ) -> crate::moon_sharp::interpreter::dynvalue::DynValue = ::core::mem::transmute(__vi.method_ptr);
79                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
80                __inner(__receiver, ::core::convert::Into::into(args), __mi)
81            }
82        }
83    }
84}
85
86#[cfg(feature = "app-eventscript")]
87impl<__T: IEventScript_FunctionArgs> IEventScript_FunctionArgsMethods for __T {}
88
89#[cfg(feature = "app-eventscript")]
90impl EventScript_FunctionArgs {
91    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
92        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
93    }
94
95    pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
96        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
97    }
98}
99
100#[cfg(feature = "app-eventscript")]
101impl EventScript_FunctionArgs {
102    #[doc = "Direct (non-virtual) call to `EventScript_FunctionArgs`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
103    pub unsafe fn invoke(
104        this: impl ::core::convert::Into<::unity::IlInstance>,
105        args: ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>,
106    ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
107        let __mi = Self::invoke_method_info();
108        let __inner: extern "C" fn(
109            ::unity::IlInstance,
110            ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>,
111            ::unity::OptionalMethod,
112        ) -> crate::moon_sharp::interpreter::dynvalue::DynValue = ::core::mem::transmute(__mi.method_ptr);
113        __inner(this.into(), args, ::core::option::Option::None)
114    }
115}
116
117#[cfg(feature = "app-eventscript")]
118impl EventScript_FunctionArgs {
119    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
120    pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
121        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
122            panic!(
123                "{}
124::{}
125 failed to instantiate",
126                ::core::stringify!(EventScript_FunctionArgs),
127                ::core::stringify!(new),
128            )
129        });
130        <Self as IEventScript_FunctionArgsMethods>::ctor(this, object, method);
131        this
132    }
133}
134
135#[cfg(feature = "app-eventscript")]
136pub trait IEventScript_ActionArgsMethods: IEventScript_ActionArgs {
137    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
138    fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
139        unsafe {
140            let __receiver =
141                <EventScript_ActionArgs as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
142            ::unity::il2cpp_call!((::unity::module_base()+0x1e58130usize)as*mut u8,();
143(EventScript_ActionArgs)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
144        }
145    }
146    #[doc = "`Invoke(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
147    fn invoke(self, args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>) -> () {
148        unsafe {
149            let __receiver =
150                <EventScript_ActionArgs as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
151            {
152                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
153                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
154                    panic!(
155                        "unity: virtual slot {}
156 out of range (vtable len {}
157) on the runtime class behind {}
158 (method `{}
159`)",
160                        13usize,
161                        __vt.len(),
162                        <EventScript_ActionArgs as ::unity::ClassIdentity>::NAME,
163                        "Invoke",
164                    )
165                });
166                let __inner: extern "C" fn(
167                    EventScript_ActionArgs,
168                    ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>,
169                    ::unity::OptionalMethod,
170                ) -> () = ::core::mem::transmute(__vi.method_ptr);
171                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
172                __inner(__receiver, ::core::convert::Into::into(args), __mi)
173            }
174        }
175    }
176}
177
178#[cfg(feature = "app-eventscript")]
179impl<__T: IEventScript_ActionArgs> IEventScript_ActionArgsMethods for __T {}
180
181#[cfg(feature = "app-eventscript")]
182impl EventScript_ActionArgs {
183    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
184        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
185    }
186
187    pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
188        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
189    }
190}
191
192#[cfg(feature = "app-eventscript")]
193impl EventScript_ActionArgs {
194    #[doc = "Direct (non-virtual) call to `EventScript_ActionArgs`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
195    pub unsafe fn invoke(
196        this: impl ::core::convert::Into<::unity::IlInstance>,
197        args: ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>,
198    ) -> () {
199        let __mi = Self::invoke_method_info();
200        let __inner: extern "C" fn(
201            ::unity::IlInstance,
202            ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>,
203            ::unity::OptionalMethod,
204        ) -> () = ::core::mem::transmute(__mi.method_ptr);
205        __inner(this.into(), args, ::core::option::Option::None)
206    }
207}
208
209#[cfg(feature = "app-eventscript")]
210impl EventScript_ActionArgs {
211    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
212    pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
213        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
214            panic!(
215                "{}
216::{}
217 failed to instantiate",
218                ::core::stringify!(EventScript_ActionArgs),
219                ::core::stringify!(new),
220            )
221        });
222        <Self as IEventScript_ActionArgsMethods>::ctor(this, object, method);
223        this
224    }
225}
226
227#[cfg(feature = "app-eventscript")]
228impl EventScript {
229    #[doc = "`Initialize()` overload"]
230    pub fn initialize() -> () {
231        unsafe {
232            ::unity::il2cpp_call!((::unity::module_base()+0x24e2500usize)as*mut u8,();
233            )
234        }
235    }
236
237    #[doc = "`Load(::unity::Il2CppString)` overload"]
238    pub fn load(path: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
239        unsafe {
240            ::unity::il2cpp_call!((::unity::module_base()+0x24e2990usize)as*mut u8,();
241(::unity::Il2CppString)::core::convert::Into::into(path))
242        }
243    }
244
245    #[doc = "`Unload()` overload"]
246    pub fn unload() -> () {
247        unsafe {
248            ::unity::il2cpp_call!((::unity::module_base()+0x24e2b60usize)as*mut u8,();
249            )
250        }
251    }
252
253    #[doc = "`get_Instance()` overload"]
254    pub fn get_instance() -> crate::app::eventscript::EventScript {
255        unsafe {
256            ::unity::il2cpp_call!((::unity::module_base()+0x24e2c70usize)as*mut u8,crate::app::eventscript::EventScript;
257            )
258        }
259    }
260
261    #[doc = "`.cctor()` overload"]
262    pub fn cctor() -> () {
263        unsafe {
264            ::unity::il2cpp_call!((::unity::module_base()+0x24e2d80usize)as*mut u8,();
265            )
266        }
267    }
268}
269
270#[cfg(feature = "app-eventscript")]
271pub trait IEventScriptMethods: IEventScript {
272    #[doc = "`get_Name()` overload"]
273    fn get_name(self) -> ::unity::Il2CppString {
274        unsafe {
275            let __receiver = <EventScript as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
276            ::unity::il2cpp_call!((::unity::module_base()+0x24e1ce0usize)as*mut u8, ::unity::Il2CppString;
277(EventScript)__receiver)
278        }
279    }
280    #[doc = "`set_Name(::unity::Il2CppString)` overload"]
281    fn set_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
282        unsafe {
283            let __receiver = <EventScript as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
284            ::unity::il2cpp_call!((::unity::module_base()+0x24e1cf0usize)as*mut u8,();
285(EventScript)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
286        }
287    }
288    #[doc = "`GetFunc(::unity::Il2CppString)` overload"]
289    fn get_func(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
290        unsafe {
291            let __receiver = <EventScript as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
292            ::unity::il2cpp_call!((::unity::module_base()+0x24e1d00usize)as*mut u8,crate::moon_sharp::interpreter::dynvalue::DynValue;
293(EventScript)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
294        }
295    }
296    #[doc = "`Call(::unity::Il2CppString, ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
297    fn call(
298        self,
299        name: impl ::core::convert::Into<::unity::Il2CppString>,
300        args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>,
301    ) -> () {
302        unsafe {
303            let __receiver = <EventScript as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
304            ::unity::il2cpp_call!((::unity::module_base()+0x24e1d30usize)as*mut u8,();
305(EventScript)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name),(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
306        }
307    }
308    #[doc = "`TryCreateCoroutine(::unity::Il2CppString)` overload"]
309    fn try_create_coroutine(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
310        unsafe {
311            let __receiver = <EventScript as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
312            ::unity::il2cpp_call!((::unity::module_base()+0x24e1da0usize)as*mut u8,crate::moon_sharp::interpreter::dynvalue::DynValue;
313(EventScript)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
314        }
315    }
316    #[doc = "`TryCreateCoroutine(crate::moon_sharp::interpreter::dynvalue::DynValue)` overload"]
317    fn try_create_coroutine_2(
318        self,
319        function: impl ::core::convert::Into<crate::moon_sharp::interpreter::dynvalue::DynValue>,
320    ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
321        unsafe {
322            let __receiver = <EventScript as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
323            ::unity::il2cpp_call!((::unity::module_base()+0x24e1de0usize)as*mut u8,crate::moon_sharp::interpreter::dynvalue::DynValue;
324(EventScript)__receiver,(crate::moon_sharp::interpreter::dynvalue::DynValue)::core::convert::Into::into(function))
325        }
326    }
327    #[doc = "`IsDead(crate::moon_sharp::interpreter::dynvalue::DynValue)` overload"]
328    fn is_dead(self, coroutine: impl ::core::convert::Into<crate::moon_sharp::interpreter::dynvalue::DynValue>) -> bool {
329        unsafe {
330            let __receiver = <EventScript as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
331            ::unity::il2cpp_call!((::unity::module_base()+0x24e1ea0usize)as*mut u8,bool;
332(EventScript)__receiver,(crate::moon_sharp::interpreter::dynvalue::DynValue)::core::convert::Into::into(coroutine))
333        }
334    }
335    #[doc = "`DoCoroutine(crate::moon_sharp::interpreter::dynvalue::DynValue, ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
336    fn do_coroutine(
337        self,
338        coroutine: impl ::core::convert::Into<crate::moon_sharp::interpreter::dynvalue::DynValue>,
339        args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>,
340    ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
341        unsafe {
342            let __receiver = <EventScript as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
343            ::unity::il2cpp_call!((::unity::module_base()+0x24e1f00usize)as*mut u8,crate::moon_sharp::interpreter::dynvalue::DynValue;
344(EventScript)__receiver,(crate::moon_sharp::interpreter::dynvalue::DynValue)::core::convert::Into::into(coroutine),(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
345        }
346    }
347    #[doc = "`Dump()` overload"]
348    fn dump(self) -> () {
349        unsafe {
350            let __receiver = <EventScript as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
351            ::unity::il2cpp_call!((::unity::module_base()+0x24e2150usize)as*mut u8,();
352(EventScript)__receiver)
353        }
354    }
355    #[doc = "`RegistFunction(crate::app::eventscript::EventScript_FunctionArgs, ::unity::Il2CppString)` overload"]
356    fn regist_function(
357        self,
358        func: impl ::core::convert::Into<crate::app::eventscript::EventScript_FunctionArgs>,
359        name: impl ::core::convert::Into<::unity::Il2CppString>,
360    ) -> () {
361        unsafe {
362            let __receiver = <EventScript as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
363            ::unity::il2cpp_call!((::unity::module_base()+0x24e23e0usize)as*mut u8,();
364(EventScript)__receiver,(crate::app::eventscript::EventScript_FunctionArgs)::core::convert::Into::into(func),(::unity::Il2CppString)::core::convert::Into::into(name))
365        }
366    }
367    #[doc = "`RegistAction(crate::app::eventscript::EventScript_ActionArgs, ::unity::Il2CppString)` overload"]
368    fn regist_action(
369        self,
370        func: impl ::core::convert::Into<crate::app::eventscript::EventScript_ActionArgs>,
371        name: impl ::core::convert::Into<::unity::Il2CppString>,
372    ) -> () {
373        unsafe {
374            let __receiver = <EventScript as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
375            ::unity::il2cpp_call!((::unity::module_base()+0x24e2430usize)as*mut u8,();
376(EventScript)__receiver,(crate::app::eventscript::EventScript_ActionArgs)::core::convert::Into::into(func),(::unity::Il2CppString)::core::convert::Into::into(name))
377        }
378    }
379    #[doc = "`Regist()` overload"]
380    fn regist(self) -> () {
381        unsafe {
382            let __receiver = <EventScript as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
383            ::unity::il2cpp_call!((::unity::module_base()+0x24e2480usize)as*mut u8,();
384(EventScript)__receiver)
385        }
386    }
387    #[doc = "`LoadImpl(::unity::Il2CppString)` overload"]
388    fn load_impl(self, path: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
389        unsafe {
390            let __receiver = <EventScript as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
391            ::unity::il2cpp_call!((::unity::module_base()+0x24e2620usize)as*mut u8,();
392(EventScript)__receiver,(::unity::Il2CppString)::core::convert::Into::into(path))
393        }
394    }
395    #[doc = "`UnloadImpl()` overload"]
396    fn unload_impl(self) -> () {
397        unsafe {
398            let __receiver = <EventScript as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
399            ::unity::il2cpp_call!((::unity::module_base()+0x24e2980usize)as*mut u8,();
400(EventScript)__receiver)
401        }
402    }
403    #[doc = "`.ctor()` overload"]
404    fn ctor(self) -> () {
405        unsafe {
406            let __receiver = <EventScript as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
407            ::unity::il2cpp_call!((::unity::module_base()+0x24e2af0usize)as*mut u8,();
408(EventScript)__receiver)
409        }
410    }
411}
412
413#[cfg(feature = "app-eventscript")]
414impl<__T: IEventScript> IEventScriptMethods for __T {}
415
416#[cfg(feature = "app-eventscript")]
417impl EventScript {
418    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
419        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
420    }
421
422    pub fn set_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
423        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
424    }
425
426    pub fn get_func_method_info() -> &'static ::unity::il2cpp::MethodInfo {
427        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
428    }
429
430    pub fn call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
431        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
432    }
433
434    pub fn try_create_coroutine_method_info() -> &'static ::unity::il2cpp::MethodInfo {
435        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
436    }
437
438    pub fn try_create_coroutine_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
439        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
440    }
441
442    pub fn is_dead_method_info() -> &'static ::unity::il2cpp::MethodInfo {
443        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
444    }
445
446    pub fn do_coroutine_method_info() -> &'static ::unity::il2cpp::MethodInfo {
447        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
448    }
449
450    pub fn dump_method_info() -> &'static ::unity::il2cpp::MethodInfo {
451        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
452    }
453
454    pub fn regist_function_method_info() -> &'static ::unity::il2cpp::MethodInfo {
455        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
456    }
457
458    pub fn regist_action_method_info() -> &'static ::unity::il2cpp::MethodInfo {
459        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
460    }
461
462    pub fn regist_method_info() -> &'static ::unity::il2cpp::MethodInfo {
463        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
464    }
465
466    pub fn initialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
467        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
468    }
469
470    pub fn load_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
471        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
472    }
473
474    pub fn unload_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
475        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
476    }
477
478    pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
479        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
480    }
481
482    pub fn unload_method_info() -> &'static ::unity::il2cpp::MethodInfo {
483        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
484    }
485
486    pub fn get_instance_method_info() -> &'static ::unity::il2cpp::MethodInfo {
487        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
488    }
489
490    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
491        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
492    }
493
494    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
495        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
496    }
497}
498
499#[cfg(feature = "app-eventscript")]
500impl EventScript {
501    #[doc = "`.ctor()` — no args"]
502    pub fn new() -> Self {
503        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
504            panic!(
505                "{}
506::{}
507 failed to instantiate",
508                ::core::stringify!(EventScript),
509                ::core::stringify!(new),
510            )
511        });
512        <Self as IEventScriptMethods>::ctor(this);
513        this
514    }
515}
516
517#[cfg(feature = "app-eventscript")]
518#[doc(hidden)]
519pub mod prelude {
520    pub use super::{
521        EventScript, EventScript_ActionArgs, EventScript_FunctionArgs, IEventScript, IEventScriptMethods, IEventScript_ActionArgs,
522        IEventScript_ActionArgsMethods, IEventScript_FunctionArgs, IEventScript_FunctionArgsMethods,
523    };
524    #[cfg(feature = "moon_sharp-interpreter-script")]
525    pub use crate::moon_sharp::interpreter::script::IScriptMethods;
526    #[cfg(feature = "system-delegate")]
527    pub use crate::system::delegate::IDelegateMethods;
528    #[cfg(feature = "system-multicastdelegate")]
529    pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
530    #[cfg(feature = "system-object")]
531    pub use crate::system::object::IObjectMethods;
532    pub use crate::{
533        moon_sharp::interpreter::script::IScript,
534        system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject},
535    };
536}