Skip to main content

engage/generated/app/
noticemanager.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-noticemanager-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::singletonmonobehaviour_1::{ISingletonMonoBehaviour_1, SingletonMonoBehaviour_1},
10        system::{
11            object::{IObject, Object},
12            r#enum::{Enum, IEnum},
13            valuetype::{IValueType, ValueType},
14        },
15        unity_engine::{
16            behaviour::{Behaviour, IBehaviour},
17            component::{Component, IComponent},
18            monobehaviour::{IMonoBehaviour, MonoBehaviour},
19            object_2::{IObject_2, Object_2},
20        },
21    };
22
23    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/noticemanager/NoticeManager.md"))]
24    #[::unity::class(namespace = "App", name = "NoticeManager")]
25    #[parent(crate::app::singletonmonobehaviour_1::SingletonMonoBehaviour_1<crate::app::noticemanager::NoticeManager>)]
26    pub struct NoticeManager {
27        #[offset(32)]
28        #[rename(name = "m_AchievementPopUp")]
29        pub m_achievement_pop_up: crate::unity_engine::gameobject::GameObject,
30        #[offset(40)]
31        #[rename(name = "m_Animator")]
32        pub m_animator: crate::unity_engine::animator::Animator,
33        #[offset(48)]
34        #[rename(name = "m_TextMesh")]
35        pub m_text_mesh: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
36        #[offset(56)]
37        #[rename(name = "m_ClearObject")]
38        pub m_clear_object: crate::unity_engine::gameobject::GameObject,
39        #[offset(64)]
40        #[rename(name = "m_Queues")]
41        pub m_queues: ::unity::Array<crate::system::collections::generic::queue_1::Queue_1<::unity::Il2CppString>>,
42    }
43
44    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/noticemanager/NoticeManager_Kinds.md"))]
45    #[repr(C)]
46    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
47    pub struct NoticeManager_Kinds {
48        pub value: i32,
49    }
50    impl ::unity::ClassIdentity for NoticeManager_Kinds {
51        const NAME: &'static str = "NoticeManager.Kinds";
52        const NAMESPACE: &'static str = "App";
53
54        fn class() -> ::unity::Class {
55            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
56            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
57        }
58    }
59    impl ::unity::IlType for NoticeManager_Kinds {
60        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
61            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
62        }
63    }
64    impl NoticeManager_Kinds {
65        pub fn none() -> Self {
66            Self { value: 0 }
67        }
68
69        pub fn facility() -> Self {
70            Self { value: 1 }
71        }
72
73        pub fn kizuna() -> Self {
74            Self { value: 2 }
75        }
76
77        pub fn tutorial() -> Self {
78            Self { value: 3 }
79        }
80
81        pub fn notebook() -> Self {
82            Self { value: 4 }
83        }
84
85        pub fn ring_list() -> Self {
86            Self { value: 5 }
87        }
88
89        pub fn num() -> Self {
90            Self { value: 6 }
91        }
92    }
93}
94
95#[cfg(feature = "app-noticemanager-types")]
96pub use __types::*;
97
98#[cfg(feature = "app-noticemanager")]
99impl NoticeManager {
100    #[doc = "`Add(crate::app::noticemanager::NoticeManager_Kinds, ::unity::Il2CppString)` overload"]
101    pub fn add(
102        kind: impl ::core::convert::Into<crate::app::noticemanager::NoticeManager_Kinds>,
103        text: impl ::core::convert::Into<::unity::Il2CppString>,
104    ) -> () {
105        unsafe {
106            ::unity::il2cpp_call!((::unity::module_base()+0x1f1b540usize)as*mut u8,();
107(crate::app::noticemanager::NoticeManager_Kinds)::core::convert::Into::into(kind),(::unity::Il2CppString)::core::convert::Into::into(text))
108        }
109    }
110
111    #[doc = "`Clear()` overload"]
112    pub fn clear() -> () {
113        unsafe {
114            ::unity::il2cpp_call!((::unity::module_base()+0x1f1b690usize)as*mut u8,();
115            )
116        }
117    }
118
119    #[doc = "`Stop()` overload"]
120    pub fn stop() -> () {
121        unsafe {
122            ::unity::il2cpp_call!((::unity::module_base()+0x1f1b820usize)as*mut u8,();
123            )
124        }
125    }
126
127    #[doc = "`CanKizunaTalk()` overload"]
128    pub fn can_kizuna_talk() -> bool {
129        unsafe {
130            ::unity::il2cpp_call!((::unity::module_base()+0x1f1b950usize)as*mut u8,bool;
131            )
132        }
133    }
134
135    #[doc = "`UpdateKizunaTalk()` overload"]
136    pub fn update_kizuna_talk() -> () {
137        unsafe {
138            ::unity::il2cpp_call!((::unity::module_base()+0x1f1be90usize)as*mut u8,();
139            )
140        }
141    }
142}
143
144#[cfg(feature = "app-noticemanager")]
145pub trait INoticeManagerMethods: INoticeManager {
146    #[doc = "`Awake()` overload"]
147    fn awake(self) -> () {
148        unsafe {
149            let __receiver = <NoticeManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
150            {
151                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
152                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
153                    panic!(
154                        "unity: virtual slot {}
155 out of range (vtable len {}
156) on the runtime class behind {}
157 (method `{}
158`)",
159                        4usize,
160                        __vt.len(),
161                        <NoticeManager as ::unity::ClassIdentity>::NAME,
162                        "Awake",
163                    )
164                });
165                let __inner: extern "C" fn(NoticeManager, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
166                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
167                __inner(__receiver, __mi)
168            }
169        }
170    }
171    #[doc = "`Start()` overload"]
172    fn start(self) -> () {
173        unsafe {
174            let __receiver = <NoticeManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
175            ::unity::il2cpp_call!((::unity::module_base()+0x1f1c1e0usize)as*mut u8,();
176(NoticeManager)__receiver)
177        }
178    }
179    #[doc = "`IsFinish(crate::unity_engine::animator::Animator)` overload"]
180    fn is_finish(self, animator: impl ::core::convert::Into<crate::unity_engine::animator::Animator>) -> bool {
181        unsafe {
182            let __receiver = <NoticeManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
183            ::unity::il2cpp_call!((::unity::module_base()+0x1f1c420usize)as*mut u8,bool;
184(NoticeManager)__receiver,(crate::unity_engine::animator::Animator)::core::convert::Into::into(animator))
185        }
186    }
187    #[doc = "`CanShow()` overload"]
188    fn can_show(self) -> bool {
189        unsafe {
190            let __receiver = <NoticeManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
191            ::unity::il2cpp_call!((::unity::module_base()+0x1f1c500usize)as*mut u8,bool;
192(NoticeManager)__receiver)
193        }
194    }
195    #[doc = "`Show(::unity::Il2CppString, bool)` overload"]
196    fn show(self, text: impl ::core::convert::Into<::unity::Il2CppString>, clear: impl ::core::convert::Into<bool>) -> () {
197        unsafe {
198            let __receiver = <NoticeManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
199            ::unity::il2cpp_call!((::unity::module_base()+0x1f1c8b0usize)as*mut u8,();
200(NoticeManager)__receiver,(::unity::Il2CppString)::core::convert::Into::into(text),(bool)::core::convert::Into::into(clear))
201        }
202    }
203    #[doc = "`Update()` overload"]
204    fn update(self) -> () {
205        unsafe {
206            let __receiver = <NoticeManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
207            ::unity::il2cpp_call!((::unity::module_base()+0x1f1c980usize)as*mut u8,();
208(NoticeManager)__receiver)
209        }
210    }
211    #[doc = "`.ctor()` overload"]
212    fn ctor(self) -> () {
213        unsafe {
214            let __receiver = <NoticeManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
215            ::unity::il2cpp_call!((::unity::module_base()+0x1f1cba0usize)as*mut u8,();
216(NoticeManager)__receiver)
217        }
218    }
219}
220
221#[cfg(feature = "app-noticemanager")]
222impl<__T: INoticeManager> INoticeManagerMethods for __T {}
223
224#[cfg(feature = "app-noticemanager")]
225impl NoticeManager {
226    pub fn add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
227        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
228    }
229
230    pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
231        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
232    }
233
234    pub fn stop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
235        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
236    }
237
238    pub fn can_kizuna_talk_method_info() -> &'static ::unity::il2cpp::MethodInfo {
239        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
240    }
241
242    pub fn update_kizuna_talk_method_info() -> &'static ::unity::il2cpp::MethodInfo {
243        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
244    }
245
246    pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
247        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
248    }
249
250    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
251        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
252    }
253
254    pub fn is_finish_method_info() -> &'static ::unity::il2cpp::MethodInfo {
255        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
256    }
257
258    pub fn can_show_method_info() -> &'static ::unity::il2cpp::MethodInfo {
259        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
260    }
261
262    pub fn show_method_info() -> &'static ::unity::il2cpp::MethodInfo {
263        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
264    }
265
266    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
267        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
268    }
269
270    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
271        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
272    }
273}
274
275#[cfg(feature = "app-noticemanager")]
276impl NoticeManager {
277    #[doc = "Direct (non-virtual) call to `NoticeManager`'s own `Awake`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
278    pub unsafe fn awake(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
279        let __mi = Self::awake_method_info();
280        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
281        __inner(this.into(), ::core::option::Option::None)
282    }
283}
284
285#[cfg(feature = "app-noticemanager")]
286impl NoticeManager {
287    #[doc = "`.ctor()` — no args"]
288    pub fn new() -> Self {
289        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
290            panic!(
291                "{}
292::{}
293 failed to instantiate",
294                ::core::stringify!(NoticeManager),
295                ::core::stringify!(new),
296            )
297        });
298        <Self as INoticeManagerMethods>::ctor(this);
299        this
300    }
301}
302
303#[cfg(feature = "app-noticemanager")]
304#[doc(hidden)]
305pub mod prelude {
306    pub use super::{INoticeManager, INoticeManagerMethods, NoticeManager, NoticeManager_Kinds};
307    #[cfg(feature = "app-singletonmonobehaviour_1")]
308    pub use crate::app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1Methods;
309    #[cfg(feature = "system-object")]
310    pub use crate::system::object::IObjectMethods;
311    #[cfg(feature = "system-enum")]
312    pub use crate::system::r#enum::IEnumMethods;
313    #[cfg(feature = "system-valuetype")]
314    pub use crate::system::valuetype::IValueTypeMethods;
315    #[cfg(feature = "unity_engine-behaviour")]
316    pub use crate::unity_engine::behaviour::IBehaviourMethods;
317    #[cfg(feature = "unity_engine-component")]
318    pub use crate::unity_engine::component::IComponentMethods;
319    #[cfg(feature = "unity_engine-monobehaviour")]
320    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
321    #[cfg(feature = "unity_engine-object_2")]
322    pub use crate::unity_engine::object_2::IObject_2Methods;
323    pub use crate::{
324        app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1,
325        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
326        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
327    };
328}