Skip to main content

engage/generated/unity_engine/addressable_assets/
assetreferencegameobject.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-addressable_assets-assetreferencegameobject-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::object::{IObject, Object},
10        unity_engine::addressable_assets::{
11            assetreference::{AssetReference, IAssetReference},
12            assetreferencet_1::{AssetReferenceT_1, IAssetReferenceT_1},
13        },
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/addressable_assets/assetreferencegameobject/AssetReferenceGameObject.md"))]
17    #[::unity::class(namespace = "UnityEngine.AddressableAssets", name = "AssetReferenceGameObject")]
18    #[parent(crate::unity_engine::addressable_assets::assetreferencet_1::AssetReferenceT_1<crate::unity_engine::gameobject::GameObject>)]
19    pub struct AssetReferenceGameObject {}
20}
21
22#[cfg(feature = "unity_engine-addressable_assets-assetreferencegameobject-types")]
23pub use __types::*;
24
25#[cfg(feature = "unity_engine-addressable_assets-assetreferencegameobject")]
26pub trait IAssetReferenceGameObjectMethods: IAssetReferenceGameObject {
27    #[doc = "`.ctor(::unity::Il2CppString)` overload"]
28    fn ctor(self, guid: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
29        unsafe {
30            let __receiver =
31                <AssetReferenceGameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32            ::unity::il2cpp_call!((::unity::module_base()+0x2db2f40usize)as*mut u8,();
33(AssetReferenceGameObject)__receiver,(::unity::Il2CppString)::core::convert::Into::into(guid))
34        }
35    }
36}
37
38#[cfg(feature = "unity_engine-addressable_assets-assetreferencegameobject")]
39impl<__T: IAssetReferenceGameObject> IAssetReferenceGameObjectMethods for __T {}
40
41#[cfg(feature = "unity_engine-addressable_assets-assetreferencegameobject")]
42impl AssetReferenceGameObject {
43    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
44        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
45    }
46}
47
48#[cfg(feature = "unity_engine-addressable_assets-assetreferencegameobject")]
49impl AssetReferenceGameObject {
50    #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
51    pub fn new(guid: ::unity::Il2CppString) -> Self {
52        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
53            panic!(
54                "{}
55::{}
56 failed to instantiate",
57                ::core::stringify!(AssetReferenceGameObject),
58                ::core::stringify!(new),
59            )
60        });
61        <Self as IAssetReferenceGameObjectMethods>::ctor(this, guid);
62        this
63    }
64}
65
66#[cfg(feature = "unity_engine-addressable_assets-assetreferencegameobject")]
67#[doc(hidden)]
68pub mod prelude {
69    pub use super::{AssetReferenceGameObject, IAssetReferenceGameObject, IAssetReferenceGameObjectMethods};
70    #[cfg(feature = "system-object")]
71    pub use crate::system::object::IObjectMethods;
72    #[cfg(feature = "unity_engine-addressable_assets-assetreference")]
73    pub use crate::unity_engine::addressable_assets::assetreference::IAssetReferenceMethods;
74    #[cfg(feature = "unity_engine-addressable_assets-assetreferencet_1")]
75    pub use crate::unity_engine::addressable_assets::assetreferencet_1::IAssetReferenceT_1Methods;
76    pub use crate::{
77        system::object::IObject,
78        unity_engine::addressable_assets::{assetreference::IAssetReference, assetreferencet_1::IAssetReferenceT_1},
79    };
80}