Skip to main content

engage/generated/app/
sortie.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-sortie-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/sortie/Sortie.md"))]
11    #[::unity::class(namespace = "App", name = "Sortie")]
12    #[parent(crate::system::object::Object)]
13    pub struct Sortie {}
14}
15
16#[cfg(feature = "app-sortie-types")]
17pub use __types::*;
18
19#[cfg(feature = "app-sortie")]
20impl Sortie {
21    #[doc = "`Setup()` overload"]
22    pub fn setup() -> () {
23        unsafe {
24            ::unity::il2cpp_call!((::unity::module_base()+0x1fe4910usize)as*mut u8,();
25            )
26        }
27    }
28
29    #[doc = "`Cleanup()` overload"]
30    pub fn cleanup() -> () {
31        unsafe {
32            ::unity::il2cpp_call!((::unity::module_base()+0x1fe4b80usize)as*mut u8,();
33            )
34        }
35    }
36}
37
38#[cfg(feature = "app-sortie")]
39pub trait ISortieMethods: ISortie {
40    #[doc = "`.ctor()` overload"]
41    fn ctor(self) -> () {
42        unsafe {
43            let __receiver = <Sortie as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
44            ::unity::il2cpp_call!((::unity::module_base()+0x1fe4e10usize)as*mut u8,();
45(Sortie)__receiver)
46        }
47    }
48}
49
50#[cfg(feature = "app-sortie")]
51impl<__T: ISortie> ISortieMethods for __T {}
52
53#[cfg(feature = "app-sortie")]
54impl Sortie {
55    pub fn setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
56        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
57    }
58
59    pub fn cleanup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
60        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
61    }
62
63    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
64        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
65    }
66}
67
68#[cfg(feature = "app-sortie")]
69impl Sortie {
70    #[doc = "`.ctor()` — no args"]
71    pub fn new() -> Self {
72        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
73            panic!(
74                "{}
75::{}
76 failed to instantiate",
77                ::core::stringify!(Sortie),
78                ::core::stringify!(new),
79            )
80        });
81        <Self as ISortieMethods>::ctor(this);
82        this
83    }
84}
85
86#[cfg(feature = "app-sortie")]
87#[doc(hidden)]
88pub mod prelude {
89    pub use super::{ISortie, ISortieMethods, Sortie};
90    pub use crate::system::object::IObject;
91    #[cfg(feature = "system-object")]
92    pub use crate::system::object::IObjectMethods;
93}