Skip to main content

engage/generated/app/
relayreplayplayername.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-relayreplayplayername-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/relayreplayplayername/RelayReplayPlayerName.md"))]
24    #[::unity::class(namespace = "App", name = "RelayReplayPlayerName")]
25    #[parent(crate::app::singletonmonobehaviour_1::SingletonMonoBehaviour_1<crate::app::relayreplayplayername::RelayReplayPlayerName>)]
26    pub struct RelayReplayPlayerName {
27        #[offset(32)]
28        #[rename(name = "m_Text")]
29        pub m_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
30        #[static_field]
31        #[rename(name = "PrefabPath")]
32        pub prefab_path: ::unity::Il2CppString,
33        #[offset(40)]
34        #[rename(name = "m_CanvasManager")]
35        pub m_canvas_manager: crate::app::canvasmanager::CanvasManager,
36        #[offset(48)]
37        #[rename(name = "m_Animator")]
38        pub m_animator: crate::unity_engine::animator::Animator,
39        #[offset(56)]
40        #[rename(name = "m_Seq")]
41        pub m_seq: crate::app::relayreplayplayername::RelayReplayPlayerName_Seq,
42        #[offset(60)]
43        #[rename(name = "m_IsReqClose")]
44        pub m_is_req_close: bool,
45    }
46
47    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/relayreplayplayername/RelayReplayPlayerName_Seq.md"))]
48    #[repr(C)]
49    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
50    pub struct RelayReplayPlayerName_Seq {
51        pub value: i32,
52    }
53    impl ::unity::ClassIdentity for RelayReplayPlayerName_Seq {
54        const NAME: &'static str = "RelayReplayPlayerName.Seq";
55        const NAMESPACE: &'static str = "App";
56
57        fn class() -> ::unity::Class {
58            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
59            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
60        }
61    }
62    impl ::unity::IlType for RelayReplayPlayerName_Seq {
63        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
64            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
65        }
66    }
67    impl RelayReplayPlayerName_Seq {
68        pub fn hide() -> Self {
69            Self { value: 0 }
70        }
71
72        pub fn opening() -> Self {
73            Self { value: 1 }
74        }
75
76        pub fn show() -> Self {
77            Self { value: 2 }
78        }
79
80        pub fn closing() -> Self {
81            Self { value: 3 }
82        }
83    }
84}
85
86#[cfg(feature = "app-relayreplayplayername-types")]
87pub use __types::*;
88
89#[cfg(feature = "app-relayreplayplayername")]
90impl RelayReplayPlayerName {
91    #[doc = "`TryShow()` overload"]
92    pub fn try_show() -> () {
93        unsafe {
94            ::unity::il2cpp_call!((::unity::module_base()+0x2003a30usize)as*mut u8,();
95            )
96        }
97    }
98
99    #[doc = "`TryHide()` overload"]
100    pub fn try_hide() -> () {
101        unsafe {
102            ::unity::il2cpp_call!((::unity::module_base()+0x2003b20usize)as*mut u8,();
103            )
104        }
105    }
106
107    #[doc = "`TryUpdatePlayerName()` overload"]
108    pub fn try_update_player_name() -> () {
109        unsafe {
110            ::unity::il2cpp_call!((::unity::module_base()+0x2003c20usize)as*mut u8,();
111            )
112        }
113    }
114
115    #[doc = "`TryCreateAsync()` overload"]
116    pub fn try_create_async() -> () {
117        unsafe {
118            ::unity::il2cpp_call!((::unity::module_base()+0x2003d10usize)as*mut u8,();
119            )
120        }
121    }
122
123    #[doc = "`IsCreating()` overload"]
124    pub fn is_creating() -> bool {
125        unsafe {
126            ::unity::il2cpp_call!((::unity::module_base()+0x2003f40usize)as*mut u8,bool;
127            )
128        }
129    }
130
131    #[doc = "`TryDestroy()` overload"]
132    pub fn try_destroy() -> () {
133        unsafe {
134            ::unity::il2cpp_call!((::unity::module_base()+0x2004010usize)as*mut u8,();
135            )
136        }
137    }
138
139    #[doc = "`IsRequired()` overload"]
140    pub fn is_required() -> bool {
141        unsafe {
142            ::unity::il2cpp_call!((::unity::module_base()+0x2003e90usize)as*mut u8,bool;
143            )
144        }
145    }
146}
147
148#[cfg(feature = "app-relayreplayplayername")]
149pub trait IRelayReplayPlayerNameMethods: IRelayReplayPlayerName {
150    #[doc = "`Awake()` overload"]
151    fn awake(self) -> () {
152        unsafe {
153            let __receiver = <RelayReplayPlayerName as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
154            {
155                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
156                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
157                    panic!(
158                        "unity: virtual slot {}
159 out of range (vtable len {}
160) on the runtime class behind {}
161 (method `{}
162`)",
163                        4usize,
164                        __vt.len(),
165                        <RelayReplayPlayerName as ::unity::ClassIdentity>::NAME,
166                        "Awake",
167                    )
168                });
169                let __inner: extern "C" fn(RelayReplayPlayerName, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
170                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
171                __inner(__receiver, __mi)
172            }
173        }
174    }
175    #[doc = "`Update()` overload"]
176    fn update(self) -> () {
177        unsafe {
178            let __receiver = <RelayReplayPlayerName as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
179            ::unity::il2cpp_call!((::unity::module_base()+0x2002ca0usize)as*mut u8,();
180(RelayReplayPlayerName)__receiver)
181        }
182    }
183    #[doc = "`ShowImpl()` overload"]
184    fn show_impl(self) -> () {
185        unsafe {
186            let __receiver = <RelayReplayPlayerName as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
187            ::unity::il2cpp_call!((::unity::module_base()+0x20032c0usize)as*mut u8,();
188(RelayReplayPlayerName)__receiver)
189        }
190    }
191    #[doc = "`HideImpl()` overload"]
192    fn hide_impl(self) -> () {
193        unsafe {
194            let __receiver = <RelayReplayPlayerName as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
195            ::unity::il2cpp_call!((::unity::module_base()+0x2003880usize)as*mut u8,();
196(RelayReplayPlayerName)__receiver)
197        }
198    }
199    #[doc = "`UpdatePlayerNameImpl()` overload"]
200    fn update_player_name_impl(self) -> () {
201        unsafe {
202            let __receiver = <RelayReplayPlayerName as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
203            ::unity::il2cpp_call!((::unity::module_base()+0x20036f0usize)as*mut u8,();
204(RelayReplayPlayerName)__receiver)
205        }
206    }
207    #[doc = "`IsOpening()` overload"]
208    fn is_opening(self) -> bool {
209        unsafe {
210            let __receiver = <RelayReplayPlayerName as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
211            ::unity::il2cpp_call!((::unity::module_base()+0x2003100usize)as*mut u8,bool;
212(RelayReplayPlayerName)__receiver)
213        }
214    }
215    #[doc = "`IsClosing()` overload"]
216    fn is_closing(self) -> bool {
217        unsafe {
218            let __receiver = <RelayReplayPlayerName as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
219            ::unity::il2cpp_call!((::unity::module_base()+0x2003950usize)as*mut u8,bool;
220(RelayReplayPlayerName)__receiver)
221        }
222    }
223    #[doc = "`IsClosed()` overload"]
224    fn is_closed(self) -> bool {
225        unsafe {
226            let __receiver = <RelayReplayPlayerName as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
227            ::unity::il2cpp_call!((::unity::module_base()+0x20031e0usize)as*mut u8,bool;
228(RelayReplayPlayerName)__receiver)
229        }
230    }
231    #[doc = "`GetBool(::unity::Il2CppString)` overload"]
232    fn get_bool(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
233        unsafe {
234            let __receiver = <RelayReplayPlayerName as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
235            ::unity::il2cpp_call!((::unity::module_base()+0x20038a0usize)as*mut u8,bool;
236(RelayReplayPlayerName)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
237        }
238    }
239    #[doc = "`.ctor()` overload"]
240    fn ctor(self) -> () {
241        unsafe {
242            let __receiver = <RelayReplayPlayerName as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
243            ::unity::il2cpp_call!((::unity::module_base()+0x2004290usize)as*mut u8,();
244(RelayReplayPlayerName)__receiver)
245        }
246    }
247}
248
249#[cfg(feature = "app-relayreplayplayername")]
250impl<__T: IRelayReplayPlayerName> IRelayReplayPlayerNameMethods for __T {}
251
252#[cfg(feature = "app-relayreplayplayername")]
253impl RelayReplayPlayerName {
254    pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
255        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
256    }
257
258    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
259        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
260    }
261
262    pub fn show_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
263        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
264    }
265
266    pub fn hide_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
267        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
268    }
269
270    pub fn update_player_name_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
271        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
272    }
273
274    pub fn is_opening_method_info() -> &'static ::unity::il2cpp::MethodInfo {
275        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
276    }
277
278    pub fn is_closing_method_info() -> &'static ::unity::il2cpp::MethodInfo {
279        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
280    }
281
282    pub fn is_closed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
283        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
284    }
285
286    pub fn get_bool_method_info() -> &'static ::unity::il2cpp::MethodInfo {
287        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
288    }
289
290    pub fn try_show_method_info() -> &'static ::unity::il2cpp::MethodInfo {
291        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
292    }
293
294    pub fn try_hide_method_info() -> &'static ::unity::il2cpp::MethodInfo {
295        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
296    }
297
298    pub fn try_update_player_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
299        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
300    }
301
302    pub fn try_create_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
303        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
304    }
305
306    pub fn is_creating_method_info() -> &'static ::unity::il2cpp::MethodInfo {
307        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
308    }
309
310    pub fn try_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
311        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
312    }
313
314    pub fn is_required_method_info() -> &'static ::unity::il2cpp::MethodInfo {
315        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
316    }
317
318    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
319        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
320    }
321}
322
323#[cfg(feature = "app-relayreplayplayername")]
324impl RelayReplayPlayerName {
325    #[doc = "Direct (non-virtual) call to `RelayReplayPlayerName`'s own `Awake`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
326    pub unsafe fn awake(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
327        let __mi = Self::awake_method_info();
328        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
329        __inner(this.into(), ::core::option::Option::None)
330    }
331}
332
333#[cfg(feature = "app-relayreplayplayername")]
334impl RelayReplayPlayerName {
335    #[doc = "`.ctor()` — no args"]
336    pub fn new() -> Self {
337        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
338            panic!(
339                "{}
340::{}
341 failed to instantiate",
342                ::core::stringify!(RelayReplayPlayerName),
343                ::core::stringify!(new),
344            )
345        });
346        <Self as IRelayReplayPlayerNameMethods>::ctor(this);
347        this
348    }
349}
350
351#[cfg(feature = "app-relayreplayplayername")]
352#[doc(hidden)]
353pub mod prelude {
354    pub use super::{IRelayReplayPlayerName, IRelayReplayPlayerNameMethods, RelayReplayPlayerName, RelayReplayPlayerName_Seq};
355    #[cfg(feature = "app-singletonmonobehaviour_1")]
356    pub use crate::app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1Methods;
357    #[cfg(feature = "system-object")]
358    pub use crate::system::object::IObjectMethods;
359    #[cfg(feature = "system-enum")]
360    pub use crate::system::r#enum::IEnumMethods;
361    #[cfg(feature = "system-valuetype")]
362    pub use crate::system::valuetype::IValueTypeMethods;
363    #[cfg(feature = "unity_engine-behaviour")]
364    pub use crate::unity_engine::behaviour::IBehaviourMethods;
365    #[cfg(feature = "unity_engine-component")]
366    pub use crate::unity_engine::component::IComponentMethods;
367    #[cfg(feature = "unity_engine-monobehaviour")]
368    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
369    #[cfg(feature = "unity_engine-object_2")]
370    pub use crate::unity_engine::object_2::IObject_2Methods;
371    pub use crate::{
372        app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1,
373        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
374        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
375    };
376}