engage/generated/app/
hubrandomset.rs1#[cfg(feature = "app-hubrandomset-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::{
10 structbase::{IStructBase, StructBase},
11 structdataarray_1::{IStructDataArray_1, StructDataArray_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/hubrandomset/HubRandomSet.md"))]
18 #[::unity::class(namespace = "App", name = "HubRandomSet")]
19 #[parent(crate::app::structdataarray_1::StructDataArray_1<crate::app::hubrandomset::HubRandomSet>)]
20 pub struct HubRandomSet {}
21}
22
23#[cfg(feature = "app-hubrandomset-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-hubrandomset")]
27impl HubRandomSet {
28 #[doc = "`Load()` overload"]
29 pub fn load() -> () {
30 unsafe {
31 ::unity::il2cpp_call!((::unity::module_base()+0x23e7ba0usize)as*mut u8,();
32 )
33 }
34 }
35}
36
37#[cfg(feature = "app-hubrandomset")]
38pub trait IHubRandomSetMethods: IHubRandomSet {
39 #[doc = "`get_ID()` overload"]
40 fn get_id(self) -> ::unity::Il2CppString {
41 unsafe {
42 let __receiver = <HubRandomSet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43 ::unity::il2cpp_call!((::unity::module_base()+0x23e7c50usize)as*mut u8, ::unity::Il2CppString;
44(HubRandomSet)__receiver)
45 }
46 }
47 #[doc = "`set_ID(::unity::Il2CppString)` overload"]
48 fn set_id(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
49 unsafe {
50 let __receiver = <HubRandomSet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51 ::unity::il2cpp_call!((::unity::module_base()+0x23e7c60usize)as*mut u8,();
52(HubRandomSet)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
53 }
54 }
55 #[doc = "`get_Rate()` overload"]
56 fn get_rate(self) -> i32 {
57 unsafe {
58 let __receiver = <HubRandomSet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59 ::unity::il2cpp_call!((::unity::module_base()+0x23e7c70usize)as*mut u8,i32;
60(HubRandomSet)__receiver)
61 }
62 }
63 #[doc = "`set_Rate(i32)` overload"]
64 fn set_rate(self, value: impl ::core::convert::Into<i32>) -> () {
65 unsafe {
66 let __receiver = <HubRandomSet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67 ::unity::il2cpp_call!((::unity::module_base()+0x23e7c80usize)as*mut u8,();
68(HubRandomSet)__receiver,(i32)::core::convert::Into::into(value))
69 }
70 }
71 #[doc = "`get_Count()` overload"]
72 fn get_count(self) -> i32 {
73 unsafe {
74 let __receiver = <HubRandomSet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75 ::unity::il2cpp_call!((::unity::module_base()+0x23e7c90usize)as*mut u8,i32;
76(HubRandomSet)__receiver)
77 }
78 }
79 #[doc = "`set_Count(i32)` overload"]
80 fn set_count(self, value: impl ::core::convert::Into<i32>) -> () {
81 unsafe {
82 let __receiver = <HubRandomSet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83 ::unity::il2cpp_call!((::unity::module_base()+0x23e7ca0usize)as*mut u8,();
84(HubRandomSet)__receiver,(i32)::core::convert::Into::into(value))
85 }
86 }
87 #[doc = "`GetDebugName()` overload"]
88 fn get_debug_name(self) -> ::unity::Il2CppString {
89 unsafe {
90 let __receiver = <HubRandomSet 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 <HubRandomSet as ::unity::ClassIdentity>::NAME,
103 "GetDebugName",
104 )
105 });
106 let __inner: extern "C" fn(HubRandomSet, ::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 = <HubRandomSet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
116 ::unity::il2cpp_call!((::unity::module_base()+0x23e7cc0usize)as*mut u8,();
117(HubRandomSet)__receiver)
118 }
119 }
120}
121
122#[cfg(feature = "app-hubrandomset")]
123impl<__T: IHubRandomSet> IHubRandomSetMethods for __T {}
124
125#[cfg(feature = "app-hubrandomset")]
126impl HubRandomSet {
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_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
133 }
134
135 pub fn set_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
137 }
138
139 pub fn get_rate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
141 }
142
143 pub fn set_rate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
145 }
146
147 pub fn get_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
149 }
150
151 pub fn set_count_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-hubrandomset")]
165impl HubRandomSet {
166 #[doc = "Direct (non-virtual) call to `HubRandomSet`'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-hubrandomset")]
175impl HubRandomSet {
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!(HubRandomSet),
184 ::core::stringify!(new),
185 )
186 });
187 <Self as IHubRandomSetMethods>::ctor(this);
188 this
189 }
190}
191
192#[cfg(feature = "app-hubrandomset")]
193#[doc(hidden)]
194pub mod prelude {
195 pub use super::{HubRandomSet, IHubRandomSet, IHubRandomSetMethods};
196 #[cfg(feature = "app-structbase")]
197 pub use crate::app::structbase::IStructBaseMethods;
198 #[cfg(feature = "app-structdataarray_1")]
199 pub use crate::app::structdataarray_1::IStructDataArray_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, structdataarray_1::IStructDataArray_1, structtemplate_1::IStructTemplate_1},
206 system::object::IObject,
207 };
208}