engage/generated/app/
jukeboxdata.rs1#[cfg(feature = "app-jukeboxdata-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::{
10 structbase::{IStructBase, StructBase},
11 structdata_1::{IStructData_1, StructData_1},
12 structtemplate_1::{IStructTemplate_1, StructTemplate_1},
13 },
14 system::object::{IObject, Object},
15 };
16
17 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/jukeboxdata/JukeboxData.md"))]
18 #[::unity::class(namespace = "App", name = "JukeboxData")]
19 #[parent(crate::app::structdata_1::StructData_1<crate::app::jukeboxdata::JukeboxData>)]
20 pub struct JukeboxData {}
21}
22
23#[cfg(feature = "app-jukeboxdata-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-jukeboxdata")]
27impl JukeboxData {
28 #[doc = "`Load()` overload"]
29 pub fn load() -> () {
30 unsafe {
31 ::unity::il2cpp_call!((::unity::module_base()+0x205a810usize)as*mut u8,();
32 )
33 }
34 }
35}
36
37#[cfg(feature = "app-jukeboxdata")]
38pub trait IJukeboxDataMethods: IJukeboxData {
39 #[doc = "`get_EventName()` overload"]
40 fn get_event_name(self) -> ::unity::Il2CppString {
41 unsafe {
42 let __receiver = <JukeboxData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43 ::unity::il2cpp_call!((::unity::module_base()+0x205a8c0usize)as*mut u8, ::unity::Il2CppString;
44(JukeboxData)__receiver)
45 }
46 }
47 #[doc = "`set_EventName(::unity::Il2CppString)` overload"]
48 fn set_event_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
49 unsafe {
50 let __receiver = <JukeboxData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51 ::unity::il2cpp_call!((::unity::module_base()+0x205a8d0usize)as*mut u8,();
52(JukeboxData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
53 }
54 }
55 #[doc = "`get_Name()` overload"]
56 fn get_name(self) -> ::unity::Il2CppString {
57 unsafe {
58 let __receiver = <JukeboxData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59 ::unity::il2cpp_call!((::unity::module_base()+0x205a8e0usize)as*mut u8, ::unity::Il2CppString;
60(JukeboxData)__receiver)
61 }
62 }
63 #[doc = "`set_Name(::unity::Il2CppString)` overload"]
64 fn set_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
65 unsafe {
66 let __receiver = <JukeboxData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67 ::unity::il2cpp_call!((::unity::module_base()+0x205a8f0usize)as*mut u8,();
68(JukeboxData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
69 }
70 }
71 #[doc = "`get_Condition()` overload"]
72 fn get_condition(self) -> ::unity::Il2CppString {
73 unsafe {
74 let __receiver = <JukeboxData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75 ::unity::il2cpp_call!((::unity::module_base()+0x205a900usize)as*mut u8, ::unity::Il2CppString;
76(JukeboxData)__receiver)
77 }
78 }
79 #[doc = "`set_Condition(::unity::Il2CppString)` overload"]
80 fn set_condition(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
81 unsafe {
82 let __receiver = <JukeboxData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83 ::unity::il2cpp_call!((::unity::module_base()+0x205a910usize)as*mut u8,();
84(JukeboxData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
85 }
86 }
87 #[doc = "`GetDebugName()` overload"]
88 fn get_debug_name(self) -> ::unity::Il2CppString {
89 unsafe {
90 let __receiver = <JukeboxData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91 {
92 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
93 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
94 panic!(
95 "unity: virtual slot {}
96 out of range (vtable len {}
97) on the runtime class behind {}
98 (method `{}
99`)",
100 8usize,
101 __vt.len(),
102 <JukeboxData as ::unity::ClassIdentity>::NAME,
103 "GetDebugName",
104 )
105 });
106 let __inner: extern "C" fn(JukeboxData, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
107 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
108 __inner(__receiver, __mi)
109 }
110 }
111 }
112 #[doc = "`.ctor()` overload"]
113 fn ctor(self) -> () {
114 unsafe {
115 let __receiver = <JukeboxData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
116 ::unity::il2cpp_call!((::unity::module_base()+0x205a930usize)as*mut u8,();
117(JukeboxData)__receiver)
118 }
119 }
120}
121
122#[cfg(feature = "app-jukeboxdata")]
123impl<__T: IJukeboxData> IJukeboxDataMethods for __T {}
124
125#[cfg(feature = "app-jukeboxdata")]
126impl JukeboxData {
127 pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
128 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
129 }
130
131 pub fn get_event_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
133 }
134
135 pub fn set_event_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
137 }
138
139 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
141 }
142
143 pub fn set_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
145 }
146
147 pub fn get_condition_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
149 }
150
151 pub fn set_condition_method_info() -> &'static ::unity::il2cpp::MethodInfo {
152 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
153 }
154
155 pub fn get_debug_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
156 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
157 }
158
159 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
160 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
161 }
162}
163
164#[cfg(feature = "app-jukeboxdata")]
165impl JukeboxData {
166 #[doc = "Direct (non-virtual) call to `JukeboxData`'s own `GetDebugName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
167 pub unsafe fn get_debug_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
168 let __mi = Self::get_debug_name_method_info();
169 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
170 __inner(this.into(), ::core::option::Option::None)
171 }
172}
173
174#[cfg(feature = "app-jukeboxdata")]
175impl JukeboxData {
176 #[doc = "`.ctor()` — no args"]
177 pub fn new() -> Self {
178 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
179 panic!(
180 "{}
181::{}
182 failed to instantiate",
183 ::core::stringify!(JukeboxData),
184 ::core::stringify!(new),
185 )
186 });
187 <Self as IJukeboxDataMethods>::ctor(this);
188 this
189 }
190}
191
192#[cfg(feature = "app-jukeboxdata")]
193#[doc(hidden)]
194pub mod prelude {
195 pub use super::{IJukeboxData, IJukeboxDataMethods, JukeboxData};
196 #[cfg(feature = "app-structbase")]
197 pub use crate::app::structbase::IStructBaseMethods;
198 #[cfg(feature = "app-structdata_1")]
199 pub use crate::app::structdata_1::IStructData_1Methods;
200 #[cfg(feature = "app-structtemplate_1")]
201 pub use crate::app::structtemplate_1::IStructTemplate_1Methods;
202 #[cfg(feature = "system-object")]
203 pub use crate::system::object::IObjectMethods;
204 pub use crate::{
205 app::{structbase::IStructBase, structdata_1::IStructData_1, structtemplate_1::IStructTemplate_1},
206 system::object::IObject,
207 };
208}