Skip to main content

engage/generated/app/
tresourcehandle_1.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-tresourcehandle_1-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::resourcehandle_2::{IResourceHandle_2, ResourceHandle_2},
10        system::object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/tresourcehandle_1/TResourceHandle_1.md"))]
14    #[::unity::class(namespace = "App", name = "TResourceHandle`1")]
15    #[parent(crate::app::resourcehandle_2::ResourceHandle_2)]
16    #[parent(crate::system::object::Object)]
17    pub struct TResourceHandle_1<T0: ::unity::ClassIdentity> {}
18}
19
20#[cfg(feature = "app-tresourcehandle_1-types")]
21pub use __types::*;
22
23#[cfg(feature = "app-tresourcehandle_1")]
24#[::unity::methods]
25impl<T0: ::unity::ClassIdentity> TResourceHandle_1<T0> {
26    #[doc = "`.ctor()` overload"]
27    #[method(name = ".ctor", args = 0)]
28    pub fn ctor(self) -> ();
29
30    #[doc = "`.ctor(::unity::Il2CppString, crate::system::action_1::Action_1<T0>)` overload"]
31    #[method(name = ".ctor", args = 2)]
32    pub fn ctor_2(self, path: ::unity::Il2CppString, completed: crate::system::action_1::Action_1<T0>) -> ();
33
34    #[doc = "`GetAsset()` overload"]
35    #[method(name = "GetAsset", args = 0)]
36    pub fn get_asset(self) -> T0;
37
38    #[doc = "`LoadAsync(::unity::Il2CppString, crate::system::action_1::Action_1<T0>)` overload"]
39    #[method(name = "LoadAsync", args = 2)]
40    pub fn load_async(self, path: ::unity::Il2CppString, completed: crate::system::action_1::Action_1<T0>) -> ();
41
42    #[doc = "`Instantiate(crate::unity_engine::gameobject::GameObject, ::unity::Il2CppString)` overload"]
43    #[method(name = "Instantiate", args = 2)]
44    pub fn instantiate(self, parent: crate::unity_engine::gameobject::GameObject, name: ::unity::Il2CppString) -> T0;
45
46    #[doc = "`Instantiate(crate::unity_engine::transform::Transform, ::unity::Il2CppString)` overload"]
47    #[method(name = "Instantiate", args = 2)]
48    pub fn instantiate_2(self, parent: crate::unity_engine::transform::Transform, name: ::unity::Il2CppString) -> T0;
49}
50
51#[cfg(feature = "app-tresourcehandle_1")]
52impl<T0: ::unity::ClassIdentity> TResourceHandle_1<T0> {
53    #[doc = "`.ctor()` — no args"]
54    pub fn new() -> Self {
55        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
56            panic!(
57                "{}
58::{}
59 failed to instantiate",
60                ::core::stringify!(TResourceHandle_1),
61                ::core::stringify!(new),
62            )
63        });
64        <Self as ITResourceHandle_1Methods<T0>>::ctor(this);
65        this
66    }
67
68    #[doc = "`.ctor(::unity::Il2CppString, crate::system::action_1::Action_1<T0>)` — overload selector"]
69    pub fn new_2(path: ::unity::Il2CppString, completed: crate::system::action_1::Action_1<T0>) -> Self {
70        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
71            panic!(
72                "{}
73::{}
74 failed to instantiate",
75                ::core::stringify!(TResourceHandle_1),
76                ::core::stringify!(new_2),
77            )
78        });
79        <Self as ITResourceHandle_1Methods<T0>>::ctor_2(this, path, completed);
80        this
81    }
82}
83
84#[cfg(feature = "app-tresourcehandle_1")]
85#[doc(hidden)]
86pub mod prelude {
87    pub use super::{ITResourceHandle_1, ITResourceHandle_1Methods, TResourceHandle_1};
88    #[cfg(feature = "app-resourcehandle_2")]
89    pub use crate::app::resourcehandle_2::IResourceHandle_2Methods;
90    #[cfg(feature = "system-object")]
91    pub use crate::system::object::IObjectMethods;
92    pub use crate::{app::resourcehandle_2::IResourceHandle_2, system::object::IObject};
93}