Skip to main content

engage/generated/app/
database.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-database-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/database/Database.md"))]
11    #[::unity::class(namespace = "App", name = "Database")]
12    #[parent(crate::system::object::Object)]
13    pub struct Database {
14        #[static_field]
15        #[rename(name = "s_Types")]
16        pub s_types: ::unity::Array<::unity::SystemType>,
17        #[static_field]
18        #[rename(name = "s_Completed")]
19        pub s_completed: bool,
20    }
21}
22
23#[cfg(feature = "app-database-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-database")]
27impl Database {
28    #[doc = "`StaticFunc(::unity::SystemType, ::unity::Il2CppString)` overload"]
29    pub fn static_func(r#type: impl ::core::convert::Into<::unity::SystemType>, name: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x29fec80usize)as*mut u8,bool;
32(::unity::SystemType)::core::convert::Into::into(r#type),(::unity::Il2CppString)::core::convert::Into::into(name))
33        }
34    }
35
36    #[doc = "`StaticFunc(::unity::Array<::unity::SystemType>, ::unity::Il2CppString)` overload"]
37    pub fn static_func_2(
38        types: impl ::core::convert::Into<::unity::Array<::unity::SystemType>>,
39        name: impl ::core::convert::Into<::unity::Il2CppString>,
40    ) -> () {
41        unsafe {
42            ::unity::il2cpp_call!((::unity::module_base()+0x29fed80usize)as*mut u8,();
43(::unity::Array< ::unity::SystemType>)::core::convert::Into::into(types),(::unity::Il2CppString)::core::convert::Into::into(name))
44        }
45    }
46
47    #[doc = "`Load()` overload"]
48    pub fn load() -> () {
49        unsafe {
50            ::unity::il2cpp_call!((::unity::module_base()+0x29fee50usize)as*mut u8,();
51            )
52        }
53    }
54
55    #[doc = "`Completed()` overload"]
56    pub fn completed() -> () {
57        unsafe {
58            ::unity::il2cpp_call!((::unity::module_base()+0x29feed0usize)as*mut u8,();
59            )
60        }
61    }
62
63    #[doc = "`IsCompleted()` overload"]
64    pub fn is_completed() -> bool {
65        unsafe {
66            ::unity::il2cpp_call!((::unity::module_base()+0x29fef60usize)as*mut u8,bool;
67            )
68        }
69    }
70
71    #[doc = "`Unload()` overload"]
72    pub fn unload() -> () {
73        unsafe {
74            ::unity::il2cpp_call!((::unity::module_base()+0x29fefd0usize)as*mut u8,();
75            )
76        }
77    }
78
79    #[doc = "`GetTypes()` overload"]
80    pub fn get_types() -> ::unity::Array<::unity::SystemType> {
81        unsafe {
82            ::unity::il2cpp_call!((::unity::module_base()+0x29ff0f0usize)as*mut u8, ::unity::Array< ::unity::SystemType> ;
83            )
84        }
85    }
86
87    #[doc = "`Reload(crate::app::procinst::ProcInst)` overload"]
88    pub fn reload(super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>) -> () {
89        unsafe {
90            ::unity::il2cpp_call!((::unity::module_base()+0x29ff160usize)as*mut u8,();
91(crate::app::procinst::ProcInst)::core::convert::Into::into(super_))
92        }
93    }
94
95    #[doc = "`Release()` overload"]
96    pub fn release() -> () {
97        unsafe {
98            ::unity::il2cpp_call!((::unity::module_base()+0x29ff170usize)as*mut u8,();
99            )
100        }
101    }
102
103    #[doc = "`.cctor()` overload"]
104    pub fn cctor() -> () {
105        unsafe {
106            ::unity::il2cpp_call!((::unity::module_base()+0x29ff1f0usize)as*mut u8,();
107            )
108        }
109    }
110}
111
112#[cfg(feature = "app-database")]
113pub trait IDatabaseMethods: IDatabase {
114    #[doc = "`.ctor()` overload"]
115    fn ctor(self) -> () {
116        unsafe {
117            let __receiver = <Database as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
118            ::unity::il2cpp_call!((::unity::module_base()+0x29ff1e0usize)as*mut u8,();
119(Database)__receiver)
120        }
121    }
122}
123
124#[cfg(feature = "app-database")]
125impl<__T: IDatabase> IDatabaseMethods for __T {}
126
127#[cfg(feature = "app-database")]
128impl Database {
129    pub fn static_func_method_info() -> &'static ::unity::il2cpp::MethodInfo {
130        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
131    }
132
133    pub fn static_func_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
134        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
135    }
136
137    pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
138        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
139    }
140
141    pub fn completed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
142        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
143    }
144
145    pub fn is_completed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
146        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
147    }
148
149    pub fn unload_method_info() -> &'static ::unity::il2cpp::MethodInfo {
150        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
151    }
152
153    pub fn get_types_method_info() -> &'static ::unity::il2cpp::MethodInfo {
154        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
155    }
156
157    pub fn reload_method_info() -> &'static ::unity::il2cpp::MethodInfo {
158        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
159    }
160
161    pub fn release_method_info() -> &'static ::unity::il2cpp::MethodInfo {
162        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
163    }
164
165    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
166        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
167    }
168
169    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
170        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
171    }
172}
173
174#[cfg(feature = "app-database")]
175impl Database {
176    #[doc = "`.ctor()` — no args"]
177    pub fn new() -> Self {
178        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
179            panic!(
180                "{}
181::{}
182 failed to instantiate",
183                ::core::stringify!(Database),
184                ::core::stringify!(new),
185            )
186        });
187        <Self as IDatabaseMethods>::ctor(this);
188        this
189    }
190}
191
192#[cfg(feature = "app-database")]
193#[doc(hidden)]
194pub mod prelude {
195    pub use super::{Database, IDatabase, IDatabaseMethods};
196    pub use crate::system::object::IObject;
197    #[cfg(feature = "system-object")]
198    pub use crate::system::object::IObjectMethods;
199}