engage/generated/app/
myroomsoundsequence.rs1#[cfg(feature = "app-myroomsoundsequence-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::{
10 procinst::{IProcInst, ProcInst},
11 singletonprocinst_1::{ISingletonProcInst_1, SingletonProcInst_1},
12 },
13 system::{
14 object::{IObject, Object},
15 r#enum::{Enum, IEnum},
16 valuetype::{IValueType, ValueType},
17 },
18 };
19
20 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/myroomsoundsequence/MyRoomSoundSequence.md"))]
21 #[::unity::class(namespace = "App", name = "MyRoomSoundSequence")]
22 #[parent(crate::app::singletonprocinst_1::SingletonProcInst_1<crate::app::myroomsoundsequence::MyRoomSoundSequence>)]
23 pub struct MyRoomSoundSequence {}
24
25 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/myroomsoundsequence/MyRoomSoundSequence_Label.md"))]
26 #[repr(C)]
27 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
28 pub struct MyRoomSoundSequence_Label {
29 pub value: i32,
30 }
31 impl ::unity::ClassIdentity for MyRoomSoundSequence_Label {
32 const NAME: &'static str = "MyRoomSoundSequence.Label";
33 const NAMESPACE: &'static str = "App";
34
35 fn class() -> ::unity::Class {
36 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
37 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
38 }
39 }
40 impl ::unity::IlType for MyRoomSoundSequence_Label {
41 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
42 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
43 }
44 }
45 impl MyRoomSoundSequence_Label {
46 pub fn entry() -> Self {
47 Self { value: 0 }
48 }
49
50 pub fn main() -> Self {
51 Self { value: 1 }
52 }
53
54 pub fn end() -> Self {
55 Self { value: 2 }
56 }
57 }
58}
59
60#[cfg(feature = "app-myroomsoundsequence-types")]
61pub use __types::*;
62
63#[cfg(feature = "app-myroomsoundsequence")]
64impl MyRoomSoundSequence {
65 #[doc = "`CreateBind(crate::app::procinst::ProcInst, bool)` overload"]
66 pub fn create_bind(super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>, is_jukebox: impl ::core::convert::Into<bool>) -> () {
67 unsafe {
68 ::unity::il2cpp_call!((::unity::module_base()+0x239c870usize)as*mut u8,();
69(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(bool)::core::convert::Into::into(is_jukebox))
70 }
71 }
72}
73
74#[cfg(feature = "app-myroomsoundsequence")]
75pub trait IMyRoomSoundSequenceMethods: IMyRoomSoundSequence {
76 #[doc = "`get_IsJukebox()` overload"]
77 fn get_is_jukebox(self) -> bool {
78 unsafe {
79 let __receiver = <MyRoomSoundSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80 ::unity::il2cpp_call!((::unity::module_base()+0x23a1bc0usize)as*mut u8,bool;
81(MyRoomSoundSequence)__receiver)
82 }
83 }
84 #[doc = "`set_IsJukebox(bool)` overload"]
85 fn set_is_jukebox(self, value: impl ::core::convert::Into<bool>) -> () {
86 unsafe {
87 let __receiver = <MyRoomSoundSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88 ::unity::il2cpp_call!((::unity::module_base()+0x23a1bd0usize)as*mut u8,();
89(MyRoomSoundSequence)__receiver,(bool)::core::convert::Into::into(value))
90 }
91 }
92 #[doc = "`CreateDesc()` overload"]
93 fn create_desc(self) -> ::unity::Array<crate::app::procdesc::ProcDesc> {
94 unsafe {
95 let __receiver = <MyRoomSoundSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
96 ::unity::il2cpp_call!((::unity::module_base()+0x23a1c60usize)as*mut u8, ::unity::Array<crate::app::procdesc::ProcDesc> ;
97(MyRoomSoundSequence)__receiver)
98 }
99 }
100 #[doc = "`CreateSoundMenu()` overload"]
101 fn create_sound_menu(self) -> () {
102 unsafe {
103 let __receiver = <MyRoomSoundSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
104 ::unity::il2cpp_call!((::unity::module_base()+0x23a2110usize)as*mut u8,();
105(MyRoomSoundSequence)__receiver)
106 }
107 }
108 #[doc = "`Entry()` overload"]
109 fn entry(self) -> () {
110 unsafe {
111 let __receiver = <MyRoomSoundSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
112 ::unity::il2cpp_call!((::unity::module_base()+0x23a21b0usize)as*mut u8,();
113(MyRoomSoundSequence)__receiver)
114 }
115 }
116 #[doc = "`Exit()` overload"]
117 fn exit(self) -> () {
118 unsafe {
119 let __receiver = <MyRoomSoundSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
120 ::unity::il2cpp_call!((::unity::module_base()+0x23a2310usize)as*mut u8,();
121(MyRoomSoundSequence)__receiver)
122 }
123 }
124 #[doc = "`.ctor()` overload"]
125 fn ctor(self) -> () {
126 unsafe {
127 let __receiver = <MyRoomSoundSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
128 ::unity::il2cpp_call!((::unity::module_base()+0x23a1be0usize)as*mut u8,();
129(MyRoomSoundSequence)__receiver)
130 }
131 }
132}
133
134#[cfg(feature = "app-myroomsoundsequence")]
135impl<__T: IMyRoomSoundSequence> IMyRoomSoundSequenceMethods for __T {}
136
137#[cfg(feature = "app-myroomsoundsequence")]
138impl MyRoomSoundSequence {
139 pub fn get_is_jukebox_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
141 }
142
143 pub fn set_is_jukebox_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
145 }
146
147 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
149 }
150
151 pub fn create_desc_method_info() -> &'static ::unity::il2cpp::MethodInfo {
152 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
153 }
154
155 pub fn create_sound_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
156 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
157 }
158
159 pub fn entry_method_info() -> &'static ::unity::il2cpp::MethodInfo {
160 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
161 }
162
163 pub fn exit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
164 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
165 }
166
167 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
168 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
169 }
170}
171
172#[cfg(feature = "app-myroomsoundsequence")]
173impl MyRoomSoundSequence {
174 #[doc = "`.ctor()` — no args"]
175 pub fn new() -> Self {
176 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
177 panic!(
178 "{}
179::{}
180 failed to instantiate",
181 ::core::stringify!(MyRoomSoundSequence),
182 ::core::stringify!(new),
183 )
184 });
185 <Self as IMyRoomSoundSequenceMethods>::ctor(this);
186 this
187 }
188}
189
190#[cfg(feature = "app-myroomsoundsequence")]
191#[doc(hidden)]
192pub mod prelude {
193 pub use super::{IMyRoomSoundSequence, IMyRoomSoundSequenceMethods, MyRoomSoundSequence, MyRoomSoundSequence_Label};
194 #[cfg(feature = "app-procinst")]
195 pub use crate::app::procinst::IProcInstMethods;
196 #[cfg(feature = "app-singletonprocinst_1")]
197 pub use crate::app::singletonprocinst_1::ISingletonProcInst_1Methods;
198 #[cfg(feature = "system-object")]
199 pub use crate::system::object::IObjectMethods;
200 #[cfg(feature = "system-enum")]
201 pub use crate::system::r#enum::IEnumMethods;
202 #[cfg(feature = "system-valuetype")]
203 pub use crate::system::valuetype::IValueTypeMethods;
204 pub use crate::{
205 app::{procinst::IProcInst, singletonprocinst_1::ISingletonProcInst_1},
206 system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
207 };
208}