engage/generated/app/
relayshowdatadialog.rs1#[cfg(feature = "app-relayshowdatadialog-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 r#enum::{Enum, IEnum},
11 valuetype::{IValueType, ValueType},
12 };
13
14 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/relayshowdatadialog/RelayShowDataDialog_Mode.md"))]
15 #[repr(C)]
16 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
17 pub struct RelayShowDataDialog_Mode {
18 pub value: i32,
19 }
20 impl ::unity::ClassIdentity for RelayShowDataDialog_Mode {
21 const NAME: &'static str = "RelayShowDataDialog.Mode";
22 const NAMESPACE: &'static str = "App";
23
24 fn class() -> ::unity::Class {
25 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27 }
28 }
29 impl ::unity::IlType for RelayShowDataDialog_Mode {
30 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32 }
33 }
34 impl RelayShowDataDialog_Mode {
35 pub fn take_over() -> Self {
36 Self { value: 0 }
37 }
38
39 pub fn upload() -> Self {
40 Self { value: 1 }
41 }
42
43 pub fn result() -> Self {
44 Self { value: 2 }
45 }
46 }
47
48 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/relayshowdatadialog/RelayShowDataDialog.md"))]
49 #[::unity::class(namespace = "App", name = "RelayShowDataDialog")]
50 #[parent(crate::system::object::Object)]
51 pub struct RelayShowDataDialog {}
52}
53
54#[cfg(feature = "app-relayshowdatadialog-types")]
55pub use __types::*;
56
57#[cfg(feature = "app-relayshowdatadialog")]
58impl RelayShowDataDialog {
59 #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::relayservermetadata::RelayServerMetaData, crate::app::relayshowdatadialog::RelayShowDataDialog_Mode)` overload"]
60 pub fn create_bind(
61 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
62 meta_data: impl ::core::convert::Into<crate::app::relayservermetadata::RelayServerMetaData>,
63 mode: impl ::core::convert::Into<crate::app::relayshowdatadialog::RelayShowDataDialog_Mode>,
64 ) -> () {
65 unsafe {
66 ::unity::il2cpp_call!((::unity::module_base()+0x200a060usize)as*mut u8,();
67(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::relayservermetadata::RelayServerMetaData)::core::convert::Into::into(meta_data),(crate::app::relayshowdatadialog::RelayShowDataDialog_Mode)::core::convert::Into::into(mode))
68 }
69 }
70}
71
72#[cfg(feature = "app-relayshowdatadialog")]
73pub trait IRelayShowDataDialogMethods: IRelayShowDataDialog {
74 #[doc = "`.ctor()` overload"]
75 fn ctor(self) -> () {
76 unsafe {
77 let __receiver = <RelayShowDataDialog as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78 ::unity::il2cpp_call!((::unity::module_base()+0x200a250usize)as*mut u8,();
79(RelayShowDataDialog)__receiver)
80 }
81 }
82}
83
84#[cfg(feature = "app-relayshowdatadialog")]
85impl<__T: IRelayShowDataDialog> IRelayShowDataDialogMethods for __T {}
86
87#[cfg(feature = "app-relayshowdatadialog")]
88impl RelayShowDataDialog {
89 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
90 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
91 }
92
93 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
94 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
95 }
96}
97
98#[cfg(feature = "app-relayshowdatadialog")]
99impl RelayShowDataDialog {
100 #[doc = "`.ctor()` — no args"]
101 pub fn new() -> Self {
102 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
103 panic!(
104 "{}
105::{}
106 failed to instantiate",
107 ::core::stringify!(RelayShowDataDialog),
108 ::core::stringify!(new),
109 )
110 });
111 <Self as IRelayShowDataDialogMethods>::ctor(this);
112 this
113 }
114}
115
116#[cfg(feature = "app-relayshowdatadialog")]
117#[doc(hidden)]
118pub mod prelude {
119 pub use super::{IRelayShowDataDialog, IRelayShowDataDialogMethods, RelayShowDataDialog, RelayShowDataDialog_Mode};
120 #[cfg(feature = "system-object")]
121 pub use crate::system::object::IObjectMethods;
122 #[cfg(feature = "system-enum")]
123 pub use crate::system::r#enum::IEnumMethods;
124 #[cfg(feature = "system-valuetype")]
125 pub use crate::system::valuetype::IValueTypeMethods;
126 pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
127}