Skip to main content

engage/generated/unity_engine/
cachedassetbundle.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-cachedassetbundle-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        valuetype::{IValueType, ValueType},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/cachedassetbundle/CachedAssetBundle.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct CachedAssetBundle {
17        pub m_name: ::unity::Il2CppString,
18        pub m_hash: crate::unity_engine::hash128::Hash128,
19    }
20    impl ::unity::ClassIdentity for CachedAssetBundle {
21        const NAME: &'static str = "CachedAssetBundle";
22        const NAMESPACE: &'static str = "UnityEngine";
23
24        fn class() -> ::unity::Class {
25            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27        }
28    }
29    impl ::unity::IlType for CachedAssetBundle {
30        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32        }
33    }
34}
35
36#[cfg(feature = "unity_engine-cachedassetbundle-types")]
37pub use __types::*;
38
39#[cfg(feature = "unity_engine-cachedassetbundle")]
40impl CachedAssetBundle {
41    #[doc = "`.ctor(::unity::Il2CppString, crate::unity_engine::hash128::Hash128)` overload"]
42    pub fn ctor(
43        &mut self,
44        name: impl ::core::convert::Into<::unity::Il2CppString>,
45        hash: impl ::core::convert::Into<crate::unity_engine::hash128::Hash128>,
46    ) -> () {
47        unsafe {
48            ::unity::il2cpp_call!((::unity::module_base()+0x2c39100usize)as*mut u8,();
49(*mut CachedAssetBundle)self as*mut CachedAssetBundle,(::unity::Il2CppString)::core::convert::Into::into(name),(crate::unity_engine::hash128::Hash128)::core::convert::Into::into(hash))
50        }
51    }
52
53    #[doc = "`get_name()` overload"]
54    pub fn get_name(&mut self) -> ::unity::Il2CppString {
55        unsafe {
56            ::unity::il2cpp_call!((::unity::module_base()+0x2c39140usize)as*mut u8, ::unity::Il2CppString;
57(*mut CachedAssetBundle)self as*mut CachedAssetBundle)
58        }
59    }
60
61    #[doc = "`get_hash()` overload"]
62    pub fn get_hash(&mut self) -> crate::unity_engine::hash128::Hash128 {
63        unsafe {
64            ::unity::il2cpp_call!((::unity::module_base()+0x2c39150usize)as*mut u8,crate::unity_engine::hash128::Hash128;
65(*mut CachedAssetBundle)self as*mut CachedAssetBundle)
66        }
67    }
68}
69
70#[cfg(feature = "unity_engine-cachedassetbundle")]
71impl CachedAssetBundle {
72    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
73        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
74    }
75
76    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
77        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
78    }
79
80    pub fn get_hash_method_info() -> &'static ::unity::il2cpp::MethodInfo {
81        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
82    }
83}
84
85#[cfg(feature = "unity_engine-cachedassetbundle")]
86#[doc(hidden)]
87pub mod prelude {
88    pub use super::CachedAssetBundle;
89    #[cfg(feature = "system-object")]
90    pub use crate::system::object::IObjectMethods;
91    #[cfg(feature = "system-valuetype")]
92    pub use crate::system::valuetype::IValueTypeMethods;
93    pub use crate::system::{object::IObject, valuetype::IValueType};
94}