Skip to main content

engage/generated/app/
textassetbundle.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-textassetbundle-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::irawassetbundle_1::{IIRawAssetBundle_1, IRawAssetBundle_1},
10        system::object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/textassetbundle/TextAssetBundle.md"))]
14    #[::unity::class(namespace = "App", name = "TextAssetBundle")]
15    #[parent(crate::app::irawassetbundle_1::IRawAssetBundle_1<crate::unity_engine::textasset::TextAsset>)]
16    pub struct TextAssetBundle {}
17}
18
19#[cfg(feature = "app-textassetbundle-types")]
20pub use __types::*;
21
22#[cfg(feature = "app-textassetbundle")]
23pub trait ITextAssetBundleMethods: ITextAssetBundle {
24    #[doc = "`.ctor(::unity::Il2CppString)` overload"]
25    fn ctor(self, path: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
26        unsafe {
27            let __receiver = <TextAssetBundle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
28            ::unity::il2cpp_call!((::unity::module_base()+0x21e8ae0usize)as*mut u8,();
29(TextAssetBundle)__receiver,(::unity::Il2CppString)::core::convert::Into::into(path))
30        }
31    }
32    #[doc = "`OnLoad()` overload"]
33    fn on_load(self) -> () {
34        unsafe {
35            let __receiver = <TextAssetBundle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
36            {
37                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
38                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
39                    panic!(
40                        "unity: virtual slot {}
41 out of range (vtable len {}
42) on the runtime class behind {}
43 (method `{}
44`)",
45                        5usize,
46                        __vt.len(),
47                        <TextAssetBundle as ::unity::ClassIdentity>::NAME,
48                        "OnLoad",
49                    )
50                });
51                let __inner: extern "C" fn(TextAssetBundle, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
52                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
53                __inner(__receiver, __mi)
54            }
55        }
56    }
57    #[doc = "`OnUnload()` overload"]
58    fn on_unload(self) -> () {
59        unsafe {
60            let __receiver = <TextAssetBundle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
61            {
62                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
63                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
64                    panic!(
65                        "unity: virtual slot {}
66 out of range (vtable len {}
67) on the runtime class behind {}
68 (method `{}
69`)",
70                        6usize,
71                        __vt.len(),
72                        <TextAssetBundle as ::unity::ClassIdentity>::NAME,
73                        "OnUnload",
74                    )
75                });
76                let __inner: extern "C" fn(TextAssetBundle, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
77                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
78                __inner(__receiver, __mi)
79            }
80        }
81    }
82    #[doc = "`get_Bytes()` overload"]
83    fn get_bytes(self) -> ::unity::Array<u8> {
84        unsafe {
85            let __receiver = <TextAssetBundle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
86            ::unity::il2cpp_call!((::unity::module_base()+0x21e8bc0usize)as*mut u8, ::unity::Array<u8> ;
87(TextAssetBundle)__receiver)
88        }
89    }
90    #[doc = "`set_Bytes(::unity::Array<u8>)` overload"]
91    fn set_bytes(self, value: impl ::core::convert::Into<::unity::Array<u8>>) -> () {
92        unsafe {
93            let __receiver = <TextAssetBundle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
94            ::unity::il2cpp_call!((::unity::module_base()+0x21e8bd0usize)as*mut u8,();
95(TextAssetBundle)__receiver,(::unity::Array<u8>)::core::convert::Into::into(value))
96        }
97    }
98}
99
100#[cfg(feature = "app-textassetbundle")]
101impl<__T: ITextAssetBundle> ITextAssetBundleMethods for __T {}
102
103#[cfg(feature = "app-textassetbundle")]
104impl TextAssetBundle {
105    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
106        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
107    }
108
109    pub fn on_load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
110        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
111    }
112
113    pub fn on_unload_method_info() -> &'static ::unity::il2cpp::MethodInfo {
114        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
115    }
116
117    pub fn get_bytes_method_info() -> &'static ::unity::il2cpp::MethodInfo {
118        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
119    }
120
121    pub fn set_bytes_method_info() -> &'static ::unity::il2cpp::MethodInfo {
122        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
123    }
124}
125
126#[cfg(feature = "app-textassetbundle")]
127impl TextAssetBundle {
128    #[doc = "Direct (non-virtual) call to `TextAssetBundle`'s own `OnLoad`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
129    pub unsafe fn on_load(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
130        let __mi = Self::on_load_method_info();
131        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
132        __inner(this.into(), ::core::option::Option::None)
133    }
134
135    #[doc = "Direct (non-virtual) call to `TextAssetBundle`'s own `OnUnload`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
136    pub unsafe fn on_unload(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
137        let __mi = Self::on_unload_method_info();
138        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
139        __inner(this.into(), ::core::option::Option::None)
140    }
141}
142
143#[cfg(feature = "app-textassetbundle")]
144impl TextAssetBundle {
145    #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
146    pub fn new(path: ::unity::Il2CppString) -> Self {
147        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
148            panic!(
149                "{}
150::{}
151 failed to instantiate",
152                ::core::stringify!(TextAssetBundle),
153                ::core::stringify!(new),
154            )
155        });
156        <Self as ITextAssetBundleMethods>::ctor(this, path);
157        this
158    }
159}
160
161#[cfg(feature = "app-textassetbundle")]
162#[doc(hidden)]
163pub mod prelude {
164    pub use super::{ITextAssetBundle, ITextAssetBundleMethods, TextAssetBundle};
165    #[cfg(feature = "app-irawassetbundle_1")]
166    pub use crate::app::irawassetbundle_1::IIRawAssetBundle_1Methods;
167    #[cfg(feature = "system-object")]
168    pub use crate::system::object::IObjectMethods;
169    pub use crate::{
170        app::irawassetbundle_1::{IIRawAssetBundle_1, IRawAssetBundle_1},
171        system::object::IObject,
172    };
173}