Skip to main content

engage/generated/app/
commonwaitmessage.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-commonwaitmessage-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            procinst::{IProcInst, ProcInst},
11            procwaitmessagebase::{IProcWaitMessageBase, ProcWaitMessageBase},
12        },
13        system::object::{IObject, Object},
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/commonwaitmessage/CommonWaitMessage.md"))]
17    #[::unity::class(namespace = "App", name = "CommonWaitMessage")]
18    #[parent(crate::app::procwaitmessagebase::ProcWaitMessageBase)]
19    pub struct CommonWaitMessage {
20        #[offset(120)]
21        #[rename(name = "m_IsLoopSE")]
22        pub m_is_loop_se: bool,
23        #[offset(121)]
24        #[rename(name = "m_IsPlaySE")]
25        pub m_is_play_se: bool,
26        #[static_field]
27        #[rename(name = "s_Instance")]
28        pub s_instance: crate::app::commonwaitmessage::CommonWaitMessage,
29    }
30}
31
32#[cfg(feature = "app-commonwaitmessage-types")]
33pub use __types::*;
34
35#[cfg(feature = "app-commonwaitmessage")]
36impl CommonWaitMessage {
37    #[doc = "`Open(::unity::Il2CppString, bool, bool)` overload"]
38    pub fn open(
39        msg: impl ::core::convert::Into<::unity::Il2CppString>,
40        is_play_sound: impl ::core::convert::Into<bool>,
41        is_hide_wait_anime: impl ::core::convert::Into<bool>,
42    ) -> () {
43        unsafe {
44            ::unity::il2cpp_call!((::unity::module_base()+0x2536160usize)as*mut u8,();
45(::unity::Il2CppString)::core::convert::Into::into(msg),(bool)::core::convert::Into::into(is_play_sound),(bool)::core::convert::Into::into(is_hide_wait_anime))
46        }
47    }
48
49    #[doc = "`Close(bool)` overload"]
50    pub fn close(is_success: impl ::core::convert::Into<bool>) -> () {
51        unsafe {
52            ::unity::il2cpp_call!((::unity::module_base()+0x25364f0usize)as*mut u8,();
53(bool)::core::convert::Into::into(is_success))
54        }
55    }
56
57    #[doc = "`IsAlive()` overload"]
58    pub fn is_alive() -> bool {
59        unsafe {
60            ::unity::il2cpp_call!((::unity::module_base()+0x2536600usize)as*mut u8,bool;
61            )
62        }
63    }
64}
65
66#[cfg(feature = "app-commonwaitmessage")]
67pub trait ICommonWaitMessageMethods: ICommonWaitMessage {
68    #[doc = "`.ctor(bool)` overload"]
69    fn ctor(self, is_play_sound: impl ::core::convert::Into<bool>) -> () {
70        unsafe {
71            let __receiver = <CommonWaitMessage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72            ::unity::il2cpp_call!((::unity::module_base()+0x2536590usize)as*mut u8,();
73(CommonWaitMessage)__receiver,(bool)::core::convert::Into::into(is_play_sound))
74        }
75    }
76    #[doc = "`OnDispose()` overload"]
77    fn on_dispose(self) -> () {
78        unsafe {
79            let __receiver = <CommonWaitMessage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80            {
81                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
82                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
83                    panic!(
84                        "unity: virtual slot {}
85 out of range (vtable len {}
86) on the runtime class behind {}
87 (method `{}
88`)",
89                        10usize,
90                        __vt.len(),
91                        <CommonWaitMessage as ::unity::ClassIdentity>::NAME,
92                        "OnDispose",
93                    )
94                });
95                let __inner: extern "C" fn(CommonWaitMessage, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
96                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
97                __inner(__receiver, __mi)
98            }
99        }
100    }
101    #[doc = "`PlayLoopSE()` overload"]
102    fn play_loop_se(self) -> () {
103        unsafe {
104            let __receiver = <CommonWaitMessage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
105            ::unity::il2cpp_call!((::unity::module_base()+0x25366e0usize)as*mut u8,();
106(CommonWaitMessage)__receiver)
107        }
108    }
109    #[doc = "`StopLoopSE()` overload"]
110    fn stop_loop_se(self) -> () {
111        unsafe {
112            let __receiver = <CommonWaitMessage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
113            ::unity::il2cpp_call!((::unity::module_base()+0x25365e0usize)as*mut u8,();
114(CommonWaitMessage)__receiver)
115        }
116    }
117    #[doc = "`PlayResultSE(bool)` overload"]
118    fn play_result_se(self, is_success: impl ::core::convert::Into<bool>) -> () {
119        unsafe {
120            let __receiver = <CommonWaitMessage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
121            ::unity::il2cpp_call!((::unity::module_base()+0x25365f0usize)as*mut u8,();
122(CommonWaitMessage)__receiver,(bool)::core::convert::Into::into(is_success))
123        }
124    }
125}
126
127#[cfg(feature = "app-commonwaitmessage")]
128impl<__T: ICommonWaitMessage> ICommonWaitMessageMethods for __T {}
129
130#[cfg(feature = "app-commonwaitmessage")]
131impl CommonWaitMessage {
132    pub fn open_method_info() -> &'static ::unity::il2cpp::MethodInfo {
133        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
134    }
135
136    pub fn close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
137        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
138    }
139
140    pub fn is_alive_method_info() -> &'static ::unity::il2cpp::MethodInfo {
141        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
142    }
143
144    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
145        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
146    }
147
148    pub fn on_dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
149        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
150    }
151
152    pub fn play_loop_se_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
154    }
155
156    pub fn stop_loop_se_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
158    }
159
160    pub fn play_result_se_method_info() -> &'static ::unity::il2cpp::MethodInfo {
161        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
162    }
163}
164
165#[cfg(feature = "app-commonwaitmessage")]
166impl CommonWaitMessage {
167    #[doc = "Direct (non-virtual) call to `CommonWaitMessage`'s own `OnDispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
168    pub unsafe fn on_dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
169        let __mi = Self::on_dispose_method_info();
170        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
171        __inner(this.into(), ::core::option::Option::None)
172    }
173}
174
175#[cfg(feature = "app-commonwaitmessage")]
176impl CommonWaitMessage {
177    #[doc = "`.ctor(bool)` — overload selector"]
178    pub fn new(is_play_sound: bool) -> Self {
179        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
180            panic!(
181                "{}
182::{}
183 failed to instantiate",
184                ::core::stringify!(CommonWaitMessage),
185                ::core::stringify!(new),
186            )
187        });
188        <Self as ICommonWaitMessageMethods>::ctor(this, is_play_sound);
189        this
190    }
191}
192
193#[cfg(feature = "app-commonwaitmessage")]
194#[doc(hidden)]
195pub mod prelude {
196    pub use super::{CommonWaitMessage, ICommonWaitMessage, ICommonWaitMessageMethods};
197    #[cfg(feature = "app-procinst")]
198    pub use crate::app::procinst::IProcInstMethods;
199    #[cfg(feature = "app-procwaitmessagebase")]
200    pub use crate::app::procwaitmessagebase::IProcWaitMessageBaseMethods;
201    #[cfg(feature = "system-object")]
202    pub use crate::system::object::IObjectMethods;
203    pub use crate::{
204        app::{procinst::IProcInst, procwaitmessagebase::IProcWaitMessageBase},
205        system::object::IObject,
206    };
207}