engage/generated/app/
irawassetbundle_1.rs1#[cfg(feature = "app-irawassetbundle_1-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/app/irawassetbundle_1/IRawAssetBundle_1.md"))]
11 #[::unity::class(namespace = "App", name = "IRawAssetBundle`1")]
12 #[parent(crate::system::object::Object)]
13 pub struct IRawAssetBundle_1<T0: ::unity::ClassIdentity> {
14 #[rename(name = "m_Handle")]
15 pub m_handle: crate::unity_engine::resource_management::async_operations::asyncoperationhandle_1::AsyncOperationHandle_1<T0>,
16 #[rename(name = "m_Asset")]
17 pub m_asset: T0,
18 }
19}
20
21#[cfg(feature = "app-irawassetbundle_1-types")]
22pub use __types::*;
23
24#[cfg(feature = "app-irawassetbundle_1")]
25#[::unity::methods]
26impl<T0: ::unity::ClassIdentity> IRawAssetBundle_1<T0> {
27 #[doc = "`.ctor(::unity::Il2CppString)` overload"]
28 #[method(name = ".ctor", args = 1)]
29 pub fn ctor(self, path: ::unity::Il2CppString) -> ();
30
31 #[doc = "`Dispose()` overload"]
32 #[method(name = "Dispose", args = 0)]
33 pub fn dispose(self) -> ();
34
35 #[doc = "`OnLoad()` overload"]
36 #[method(name = "OnLoad", args = 0)]
37 pub fn on_load(self) -> ();
38
39 #[doc = "`OnUnload()` overload"]
40 #[method(name = "OnUnload", args = 0)]
41 pub fn on_unload(self) -> ();
42
43 #[doc = "`Load(::unity::Il2CppString)` overload"]
44 #[method(name = "Load", args = 1)]
45 pub fn load(self, path: ::unity::Il2CppString) -> bool;
46
47 #[doc = "`Unload()` overload"]
48 #[method(name = "Unload", args = 0)]
49 pub fn unload(self) -> ();
50
51 #[doc = "`get_Asset()` overload"]
52 #[method(name = "get_Asset", args = 0)]
53 pub fn get_asset(self) -> T0;
54}
55
56#[cfg(feature = "app-irawassetbundle_1")]
57impl<T0: ::unity::ClassIdentity> IRawAssetBundle_1<T0> {
58 #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
59 pub fn new(path: ::unity::Il2CppString) -> Self {
60 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
61 panic!(
62 "{}
63::{}
64 failed to instantiate",
65 ::core::stringify!(IRawAssetBundle_1),
66 ::core::stringify!(new),
67 )
68 });
69 <Self as IIRawAssetBundle_1Methods<T0>>::ctor(this, path);
70 this
71 }
72}
73
74#[cfg(feature = "app-irawassetbundle_1")]
75#[doc(hidden)]
76pub mod prelude {
77 pub use super::{IIRawAssetBundle_1, IIRawAssetBundle_1Methods, IRawAssetBundle_1};
78 pub use crate::system::object::IObject;
79 #[cfg(feature = "system-object")]
80 pub use crate::system::object::IObjectMethods;
81}