engage/generated/app/
photographmodesequence.rs1#[cfg(feature = "app-photographmodesequence-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/photographmodesequence/PhotographModeSequence.md"))]
18 #[::unity::class(namespace = "App", name = "PhotographModeSequence")]
19 #[parent(crate::app::procinst::ProcInst)]
20 pub struct PhotographModeSequence {
21 #[offset(112)]
22 #[rename(name = "m_AllMenuContent")]
23 pub m_all_menu_content: crate::app::photographallmenucontent::PhotographAllMenuContent,
24 #[offset(120)]
25 #[rename(name = "m_CameraController")]
26 pub m_camera_controller: crate::app::photographcameracontroller::PhotographCameraController,
27 #[offset(128)]
28 #[rename(name = "m_DisposManager")]
29 pub m_dispos_manager: crate::app::photographdisposmanager::PhotographDisposManager,
30 #[offset(136)]
31 #[rename(name = "m_IsHelpVisible")]
32 pub m_is_help_visible: bool,
33 #[offset(140)]
34 #[rename(name = "m_ReservedLabel")]
35 pub m_reserved_label: crate::app::photographmodesequence::PhotographModeSequence_Label,
36 }
37
38 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/photographmodesequence/PhotographModeSequence_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 PhotographModeSequence_Label {
42 pub value: i32,
43 }
44 impl ::unity::ClassIdentity for PhotographModeSequence_Label {
45 const NAME: &'static str = "PhotographModeSequence.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 PhotographModeSequence_Label {
54 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
55 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
56 }
57 }
58 impl PhotographModeSequence_Label {
59 pub fn entry() -> Self {
60 Self { value: 0 }
61 }
62
63 pub fn tick() -> Self {
64 Self { value: 1 }
65 }
66
67 pub fn photograph() -> Self {
68 Self { value: 2 }
69 }
70
71 pub fn exit() -> Self {
72 Self { value: 3 }
73 }
74 }
75}
76
77#[cfg(feature = "app-photographmodesequence-types")]
78pub use __types::*;
79
80#[cfg(feature = "app-photographmodesequence")]
81impl PhotographModeSequence {
82 #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::photographallmenucontent::PhotographAllMenuContent, crate::app::photographcameracontroller::PhotographCameraController, crate::app::photographdisposmanager::PhotographDisposManager)` overload"]
83 pub fn create_bind(
84 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
85 all_menu_content: impl ::core::convert::Into<crate::app::photographallmenucontent::PhotographAllMenuContent>,
86 camera_controller: impl ::core::convert::Into<crate::app::photographcameracontroller::PhotographCameraController>,
87 dispos_manager: impl ::core::convert::Into<crate::app::photographdisposmanager::PhotographDisposManager>,
88 ) -> () {
89 unsafe {
90 ::unity::il2cpp_call!((::unity::module_base()+0x2693cd0usize)as*mut u8,();
91(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::photographallmenucontent::PhotographAllMenuContent)::core::convert::Into::into(all_menu_content),(crate::app::photographcameracontroller::PhotographCameraController)::core::convert::Into::into(camera_controller),(crate::app::photographdisposmanager::PhotographDisposManager)::core::convert::Into::into(dispos_manager))
92 }
93 }
94}
95
96#[cfg(feature = "app-photographmodesequence")]
97pub trait IPhotographModeSequenceMethods: IPhotographModeSequence {
98 #[doc = "`JumpReservedLabel()` overload"]
99 fn jump_reserved_label(self) -> () {
100 unsafe {
101 let __receiver =
102 <PhotographModeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
103 ::unity::il2cpp_call!((::unity::module_base()+0x2694140usize)as*mut u8,();
104(PhotographModeSequence)__receiver)
105 }
106 }
107 #[doc = "`.ctor(crate::app::photographallmenucontent::PhotographAllMenuContent, crate::app::photographcameracontroller::PhotographCameraController, crate::app::photographdisposmanager::PhotographDisposManager)` overload"]
108 fn ctor(
109 self,
110 all_menu_content: impl ::core::convert::Into<crate::app::photographallmenucontent::PhotographAllMenuContent>,
111 camera_controller: impl ::core::convert::Into<crate::app::photographcameracontroller::PhotographCameraController>,
112 dispos_manager: impl ::core::convert::Into<crate::app::photographdisposmanager::PhotographDisposManager>,
113 ) -> () {
114 unsafe {
115 let __receiver =
116 <PhotographModeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
117 ::unity::il2cpp_call!((::unity::module_base()+0x26940d0usize)as*mut u8,();
118(PhotographModeSequence)__receiver,(crate::app::photographallmenucontent::PhotographAllMenuContent)::core::convert::Into::into(all_menu_content),(crate::app::photographcameracontroller::PhotographCameraController)::core::convert::Into::into(camera_controller),(crate::app::photographdisposmanager::PhotographDisposManager)::core::convert::Into::into(dispos_manager))
119 }
120 }
121 #[doc = "`Tick()` overload"]
122 fn tick(self) -> () {
123 unsafe {
124 let __receiver =
125 <PhotographModeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
126 ::unity::il2cpp_call!((::unity::module_base()+0x26941b0usize)as*mut u8,();
127(PhotographModeSequence)__receiver)
128 }
129 }
130 #[doc = "`PhotographCoroutine()` overload"]
131 fn photograph_coroutine(self) -> crate::system::collections::ienumerator::IEnumerator {
132 unsafe {
133 let __receiver =
134 <PhotographModeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135 ::unity::il2cpp_call!((::unity::module_base()+0x2694830usize)as*mut u8,crate::system::collections::ienumerator::IEnumerator;
136(PhotographModeSequence)__receiver)
137 }
138 }
139}
140
141#[cfg(feature = "app-photographmodesequence")]
142impl<__T: IPhotographModeSequence> IPhotographModeSequenceMethods for __T {}
143
144#[cfg(feature = "app-photographmodesequence")]
145impl PhotographModeSequence {
146 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
147 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
148 }
149
150 pub fn jump_reserved_label_method_info() -> &'static ::unity::il2cpp::MethodInfo {
151 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
152 }
153
154 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
155 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
156 }
157
158 pub fn tick_method_info() -> &'static ::unity::il2cpp::MethodInfo {
159 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
160 }
161
162 pub fn photograph_coroutine_method_info() -> &'static ::unity::il2cpp::MethodInfo {
163 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
164 }
165}
166
167#[cfg(feature = "app-photographmodesequence")]
168impl PhotographModeSequence {
169 #[doc = "`.ctor(crate::app::photographallmenucontent::PhotographAllMenuContent, crate::app::photographcameracontroller::PhotographCameraController, crate::app::photographdisposmanager::PhotographDisposManager)` — overload selector"]
170 pub fn new(
171 all_menu_content: crate::app::photographallmenucontent::PhotographAllMenuContent,
172 camera_controller: crate::app::photographcameracontroller::PhotographCameraController,
173 dispos_manager: crate::app::photographdisposmanager::PhotographDisposManager,
174 ) -> Self {
175 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
176 panic!(
177 "{}
178::{}
179 failed to instantiate",
180 ::core::stringify!(PhotographModeSequence),
181 ::core::stringify!(new),
182 )
183 });
184 <Self as IPhotographModeSequenceMethods>::ctor(this, all_menu_content, camera_controller, dispos_manager);
185 this
186 }
187}
188
189#[cfg(feature = "app-photographmodesequence")]
190#[doc(hidden)]
191pub mod prelude {
192 pub use super::{IPhotographModeSequence, IPhotographModeSequenceMethods, PhotographModeSequence, PhotographModeSequence_Label};
193 #[cfg(feature = "app-procinst")]
194 pub use crate::app::procinst::IProcInstMethods;
195 #[cfg(feature = "system-object")]
196 pub use crate::system::object::IObjectMethods;
197 #[cfg(feature = "system-enum")]
198 pub use crate::system::r#enum::IEnumMethods;
199 #[cfg(feature = "system-valuetype")]
200 pub use crate::system::valuetype::IValueTypeMethods;
201 pub use crate::{
202 app::procinst::IProcInst,
203 system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
204 };
205}