Skip to main content

engage/generated/app/
structtemplate_1.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-structtemplate_1-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::structbase::{IStructBase, StructBase},
10        system::object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/structtemplate_1/StructTemplate_1.md"))]
14    #[::unity::class(namespace = "App", name = "StructTemplate`1")]
15    #[parent(crate::app::structbase::StructBase)]
16    #[parent(crate::system::object::Object)]
17    pub struct StructTemplate_1<T0: ::unity::ClassIdentity> {
18        #[static_field]
19        #[rename(name = "s_header")]
20        pub s_header: crate::app::structheader::StructHeader,
21        #[static_field]
22        #[rename(name = "s_dictionary")]
23        pub s_dictionary: crate::app::structdictionary_1::StructDictionary_1<T0>,
24    }
25}
26
27#[cfg(feature = "app-structtemplate_1-types")]
28pub use __types::*;
29
30#[cfg(feature = "app-structtemplate_1")]
31#[::unity::methods]
32impl<T0: ::unity::ClassIdentity> StructTemplate_1<T0> {
33    #[doc = "`GetHeader()` overload"]
34    #[method(name = "GetHeader", args = 0)]
35    pub fn get_header() -> crate::app::structheader::StructHeader;
36
37    #[doc = "`GetFilePath()` overload"]
38    #[method(name = "GetFilePath", args = 0)]
39    pub fn get_file_path() -> ::unity::Il2CppString;
40
41    #[doc = "`IsExist()` overload"]
42    #[method(name = "IsExist", args = 0)]
43    pub fn is_exist() -> bool;
44
45    #[doc = "`IsExist(::unity::Il2CppString)` overload"]
46    #[method(name = "IsExist", args = 1)]
47    pub fn is_exist_2(name: ::unity::Il2CppString) -> bool;
48
49    #[doc = "`.ctor()` overload"]
50    #[method(name = ".ctor", args = 0)]
51    pub fn ctor(self) -> ();
52
53    #[doc = "`.cctor()` overload"]
54    #[method(name = ".cctor", args = 0)]
55    pub fn cctor() -> ();
56}
57
58#[cfg(feature = "app-structtemplate_1")]
59impl<T0: ::unity::ClassIdentity> StructTemplate_1<T0> {
60    #[doc = "`.ctor()` — no args"]
61    pub fn new() -> Self {
62        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
63            panic!(
64                "{}
65::{}
66 failed to instantiate",
67                ::core::stringify!(StructTemplate_1),
68                ::core::stringify!(new),
69            )
70        });
71        <Self as IStructTemplate_1Methods<T0>>::ctor(this);
72        this
73    }
74}
75
76#[cfg(feature = "app-structtemplate_1")]
77#[doc(hidden)]
78pub mod prelude {
79    pub use super::{IStructTemplate_1, IStructTemplate_1Methods, StructTemplate_1};
80    #[cfg(feature = "app-structbase")]
81    pub use crate::app::structbase::IStructBaseMethods;
82    #[cfg(feature = "system-object")]
83    pub use crate::system::object::IObjectMethods;
84    pub use crate::{app::structbase::IStructBase, system::object::IObject};
85}