Skip to main content

engage/generated/app/
dishresultdialog.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-dishresultdialog-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::procinst::{IProcInst, ProcInst},
10        system::{
11            object::{IObject, Object},
12            r#enum::{Enum, IEnum},
13            valuetype::{IValueType, ValueType},
14        },
15    };
16
17    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/dishresultdialog/DishResultDialog.md"))]
18    #[::unity::class(namespace = "App", name = "DishResultDialog")]
19    #[parent(crate::app::procinst::ProcInst)]
20    pub struct DishResultDialog {
21        #[static_field]
22        #[rename(name = "PrefabPath")]
23        pub prefab_path: ::unity::Il2CppString,
24        #[offset(112)]
25        #[rename(name = "m_DishResultRoot")]
26        pub m_dish_result_root: crate::unity_engine::gameobject::GameObject,
27        #[offset(120)]
28        #[rename(name = "m_ResultContent")]
29        pub m_result_content: crate::app::dishresultdialogcontent::DishResultDialogContent,
30        #[offset(128)]
31        #[rename(name = "m_Dish")]
32        pub m_dish: crate::app::dish::Dish,
33        #[offset(136)]
34        #[rename(name = "m_SelectedUnits")]
35        pub m_selected_units: crate::system::collections::generic::list_1::List_1<crate::app::unit::Unit>,
36    }
37
38    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/dishresultdialog/DishResultDialog_Label.md"))]
39    #[repr(C)]
40    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
41    pub struct DishResultDialog_Label {
42        pub value: i32,
43    }
44    impl ::unity::ClassIdentity for DishResultDialog_Label {
45        const NAME: &'static str = "DishResultDialog.Label";
46        const NAMESPACE: &'static str = "App";
47
48        fn class() -> ::unity::Class {
49            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
50            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
51        }
52    }
53    impl ::unity::IlType for DishResultDialog_Label {
54        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
55            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
56        }
57    }
58    impl DishResultDialog_Label {
59        pub fn init() -> Self {
60            Self { value: 0 }
61        }
62
63        pub fn tick() -> Self {
64            Self { value: 1 }
65        }
66
67        pub fn exit() -> Self {
68            Self { value: 2 }
69        }
70    }
71}
72
73#[cfg(feature = "app-dishresultdialog-types")]
74pub use __types::*;
75
76#[cfg(feature = "app-dishresultdialog")]
77impl DishResultDialog {
78    #[doc = "`LoadPrefabAsync()` overload"]
79    pub fn load_prefab_async() -> () {
80        unsafe {
81            ::unity::il2cpp_call!((::unity::module_base()+0x1cf40d0usize)as*mut u8,();
82            )
83        }
84    }
85
86    #[doc = "`IsLoadingPrefab()` overload"]
87    pub fn is_loading_prefab() -> bool {
88        unsafe {
89            ::unity::il2cpp_call!((::unity::module_base()+0x1cf4170usize)as*mut u8,bool;
90            )
91        }
92    }
93
94    #[doc = "`UnloadPrefab()` overload"]
95    pub fn unload_prefab() -> () {
96        unsafe {
97            ::unity::il2cpp_call!((::unity::module_base()+0x1cf41f0usize)as*mut u8,();
98            )
99        }
100    }
101
102    #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::dish::Dish, crate::system::collections::generic::list_1::List_1<crate::app::unit::Unit>)` overload"]
103    pub fn create_bind(
104        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
105        dish: impl ::core::convert::Into<crate::app::dish::Dish>,
106        selected_units: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::unit::Unit>>,
107    ) -> () {
108        unsafe {
109            ::unity::il2cpp_call!((::unity::module_base()+0x1cf5110usize)as*mut u8,();
110(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::dish::Dish)::core::convert::Into::into(dish),(crate::system::collections::generic::list_1::List_1<crate::app::unit::Unit>)::core::convert::Into::into(selected_units))
111        }
112    }
113}
114
115#[cfg(feature = "app-dishresultdialog")]
116pub trait IDishResultDialogMethods: IDishResultDialog {
117    #[doc = "`.ctor(crate::app::dish::Dish, crate::system::collections::generic::list_1::List_1<crate::app::unit::Unit>)` overload"]
118    fn ctor(
119        self,
120        dish: impl ::core::convert::Into<crate::app::dish::Dish>,
121        selected_units: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::unit::Unit>>,
122    ) -> () {
123        unsafe {
124            let __receiver = <DishResultDialog as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
125            ::unity::il2cpp_call!((::unity::module_base()+0x1cf4270usize)as*mut u8,();
126(DishResultDialog)__receiver,(crate::app::dish::Dish)::core::convert::Into::into(dish),(crate::system::collections::generic::list_1::List_1<crate::app::unit::Unit>)::core::convert::Into::into(selected_units))
127        }
128    }
129    #[doc = "`CreateWindow()` overload"]
130    fn create_window(self) -> () {
131        unsafe {
132            let __receiver = <DishResultDialog as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
133            ::unity::il2cpp_call!((::unity::module_base()+0x1cf42c0usize)as*mut u8,();
134(DishResultDialog)__receiver)
135        }
136    }
137    #[doc = "`IsOpening()` overload"]
138    fn is_opening(self) -> bool {
139        unsafe {
140            let __receiver = <DishResultDialog as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
141            ::unity::il2cpp_call!((::unity::module_base()+0x1cf4bc0usize)as*mut u8,bool;
142(DishResultDialog)__receiver)
143        }
144    }
145    #[doc = "`Tick()` overload"]
146    fn tick(self) -> () {
147        unsafe {
148            let __receiver = <DishResultDialog as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
149            ::unity::il2cpp_call!((::unity::module_base()+0x1cf4c80usize)as*mut u8,();
150(DishResultDialog)__receiver)
151        }
152    }
153    #[doc = "`IsClosing()` overload"]
154    fn is_closing(self) -> bool {
155        unsafe {
156            let __receiver = <DishResultDialog as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
157            ::unity::il2cpp_call!((::unity::module_base()+0x1cf4fe0usize)as*mut u8,bool;
158(DishResultDialog)__receiver)
159        }
160    }
161    #[doc = "`DeleteWindow()` overload"]
162    fn delete_window(self) -> () {
163        unsafe {
164            let __receiver = <DishResultDialog as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
165            ::unity::il2cpp_call!((::unity::module_base()+0x1cf50a0usize)as*mut u8,();
166(DishResultDialog)__receiver)
167        }
168    }
169}
170
171#[cfg(feature = "app-dishresultdialog")]
172impl<__T: IDishResultDialog> IDishResultDialogMethods for __T {}
173
174#[cfg(feature = "app-dishresultdialog")]
175impl DishResultDialog {
176    pub fn load_prefab_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
177        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
178    }
179
180    pub fn is_loading_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
182    }
183
184    pub fn unload_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
186    }
187
188    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
189        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
190    }
191
192    pub fn create_window_method_info() -> &'static ::unity::il2cpp::MethodInfo {
193        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
194    }
195
196    pub fn is_opening_method_info() -> &'static ::unity::il2cpp::MethodInfo {
197        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
198    }
199
200    pub fn tick_method_info() -> &'static ::unity::il2cpp::MethodInfo {
201        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
202    }
203
204    pub fn is_closing_method_info() -> &'static ::unity::il2cpp::MethodInfo {
205        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
206    }
207
208    pub fn delete_window_method_info() -> &'static ::unity::il2cpp::MethodInfo {
209        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
210    }
211
212    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
213        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
214    }
215}
216
217#[cfg(feature = "app-dishresultdialog")]
218impl DishResultDialog {
219    #[doc = "`.ctor(crate::app::dish::Dish, crate::system::collections::generic::list_1::List_1<crate::app::unit::Unit>)` — overload selector"]
220    pub fn new(dish: crate::app::dish::Dish, selected_units: crate::system::collections::generic::list_1::List_1<crate::app::unit::Unit>) -> Self {
221        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
222            panic!(
223                "{}
224::{}
225 failed to instantiate",
226                ::core::stringify!(DishResultDialog),
227                ::core::stringify!(new),
228            )
229        });
230        <Self as IDishResultDialogMethods>::ctor(this, dish, selected_units);
231        this
232    }
233}
234
235#[cfg(feature = "app-dishresultdialog")]
236#[doc(hidden)]
237pub mod prelude {
238    pub use super::{DishResultDialog, DishResultDialog_Label, IDishResultDialog, IDishResultDialogMethods};
239    #[cfg(feature = "app-procinst")]
240    pub use crate::app::procinst::IProcInstMethods;
241    #[cfg(feature = "system-object")]
242    pub use crate::system::object::IObjectMethods;
243    #[cfg(feature = "system-enum")]
244    pub use crate::system::r#enum::IEnumMethods;
245    #[cfg(feature = "system-valuetype")]
246    pub use crate::system::valuetype::IValueTypeMethods;
247    pub use crate::{
248        app::procinst::IProcInst,
249        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
250    };
251}