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