engage/generated/app/
hubresourcedata.rs1#[cfg(feature = "app-hubresourcedata-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/hubresourcedata/HubResourceData.md"))]
18 #[::unity::class(namespace = "App", name = "HubResourceData")]
19 #[parent(crate::app::structdata_1::StructData_1<crate::app::hubresourcedata::HubResourceData>)]
20 pub struct HubResourceData {}
21}
22
23#[cfg(feature = "app-hubresourcedata-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-hubresourcedata")]
27impl HubResourceData {
28 #[doc = "`Load()` overload"]
29 pub fn load() -> () {
30 unsafe {
31 ::unity::il2cpp_call!((::unity::module_base()+0x23eb5c0usize)as*mut u8,();
32 )
33 }
34 }
35}
36
37#[cfg(feature = "app-hubresourcedata")]
38pub trait IHubResourceDataMethods: IHubResourceData {
39 #[doc = "`get_Name()` overload"]
40 fn get_name(self) -> ::unity::Il2CppString {
41 unsafe {
42 let __receiver = <HubResourceData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43 ::unity::il2cpp_call!((::unity::module_base()+0x23eb670usize)as*mut u8, ::unity::Il2CppString;
44(HubResourceData)__receiver)
45 }
46 }
47 #[doc = "`set_Name(::unity::Il2CppString)` overload"]
48 fn set_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
49 unsafe {
50 let __receiver = <HubResourceData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51 ::unity::il2cpp_call!((::unity::module_base()+0x23eb680usize)as*mut u8,();
52(HubResourceData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
53 }
54 }
55 #[doc = "`GetDebugName()` overload"]
56 fn get_debug_name(self) -> ::unity::Il2CppString {
57 unsafe {
58 let __receiver = <HubResourceData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59 {
60 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
61 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
62 panic!(
63 "unity: virtual slot {}
64 out of range (vtable len {}
65) on the runtime class behind {}
66 (method `{}
67`)",
68 8usize,
69 __vt.len(),
70 <HubResourceData as ::unity::ClassIdentity>::NAME,
71 "GetDebugName",
72 )
73 });
74 let __inner: extern "C" fn(HubResourceData, ::unity::OptionalMethod) -> ::unity::Il2CppString =
75 ::core::mem::transmute(__vi.method_ptr);
76 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
77 __inner(__receiver, __mi)
78 }
79 }
80 }
81 #[doc = "`.ctor()` overload"]
82 fn ctor(self) -> () {
83 unsafe {
84 let __receiver = <HubResourceData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
85 ::unity::il2cpp_call!((::unity::module_base()+0x23eb6a0usize)as*mut u8,();
86(HubResourceData)__receiver)
87 }
88 }
89}
90
91#[cfg(feature = "app-hubresourcedata")]
92impl<__T: IHubResourceData> IHubResourceDataMethods for __T {}
93
94#[cfg(feature = "app-hubresourcedata")]
95impl HubResourceData {
96 pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
97 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
98 }
99
100 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
101 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
102 }
103
104 pub fn set_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
105 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
106 }
107
108 pub fn get_debug_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
109 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
110 }
111
112 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
113 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
114 }
115}
116
117#[cfg(feature = "app-hubresourcedata")]
118impl HubResourceData {
119 #[doc = "Direct (non-virtual) call to `HubResourceData`'s own `GetDebugName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
120 pub unsafe fn get_debug_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
121 let __mi = Self::get_debug_name_method_info();
122 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
123 __inner(this.into(), ::core::option::Option::None)
124 }
125}
126
127#[cfg(feature = "app-hubresourcedata")]
128impl HubResourceData {
129 #[doc = "`.ctor()` — no args"]
130 pub fn new() -> Self {
131 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
132 panic!(
133 "{}
134::{}
135 failed to instantiate",
136 ::core::stringify!(HubResourceData),
137 ::core::stringify!(new),
138 )
139 });
140 <Self as IHubResourceDataMethods>::ctor(this);
141 this
142 }
143}
144
145#[cfg(feature = "app-hubresourcedata")]
146#[doc(hidden)]
147pub mod prelude {
148 pub use super::{HubResourceData, IHubResourceData, IHubResourceDataMethods};
149 #[cfg(feature = "app-structbase")]
150 pub use crate::app::structbase::IStructBaseMethods;
151 #[cfg(feature = "app-structdata_1")]
152 pub use crate::app::structdata_1::IStructData_1Methods;
153 #[cfg(feature = "app-structtemplate_1")]
154 pub use crate::app::structtemplate_1::IStructTemplate_1Methods;
155 #[cfg(feature = "system-object")]
156 pub use crate::system::object::IObjectMethods;
157 pub use crate::{
158 app::{structbase::IStructBase, structdata_1::IStructData_1, structtemplate_1::IStructTemplate_1},
159 system::object::IObject,
160 };
161}