Skip to main content

engage/generated/unity_engine/switch/
applet.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-switch-applet-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/unity_engine/switch/applet/Applet.md"))]
11    #[::unity::class(namespace = "UnityEngine.Switch", name = "Applet")]
12    #[parent(crate::system::object::Object)]
13    pub struct Applet {}
14}
15
16#[cfg(feature = "unity_engine-switch-applet-types")]
17pub use __types::*;
18
19#[cfg(feature = "unity_engine-switch-applet")]
20impl Applet {
21    #[doc = "`Begin()` overload"]
22    pub fn begin() -> () {
23        unsafe {
24            ::unity::il2cpp_call!((::unity::module_base()+0x3f40820usize)as*mut u8,();
25            )
26        }
27    }
28
29    #[doc = "`End()` overload"]
30    pub fn end() -> () {
31        unsafe {
32            ::unity::il2cpp_call!((::unity::module_base()+0x3f40860usize)as*mut u8,();
33            )
34        }
35    }
36}
37
38#[cfg(feature = "unity_engine-switch-applet")]
39impl Applet {
40    pub fn begin_method_info() -> &'static ::unity::il2cpp::MethodInfo {
41        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
42    }
43
44    pub fn end_method_info() -> &'static ::unity::il2cpp::MethodInfo {
45        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
46    }
47}
48
49#[cfg(feature = "unity_engine-switch-applet")]
50#[doc(hidden)]
51pub mod prelude {
52    pub use super::{Applet, IApplet};
53    pub use crate::system::object::IObject;
54    #[cfg(feature = "system-object")]
55    pub use crate::system::object::IObjectMethods;
56}