Skip to main content

engage/generated/app/
debugsavedatapathmenu.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-debugsavedatapathmenu-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::procinst::{IProcInst, ProcInst},
10        system::{
11            object::{IObject, Object},
12            r#enum::{Enum, IEnum},
13            valuetype::{IValueType, ValueType},
14        },
15    };
16
17    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/debugsavedatapathmenu/DebugSaveDataPathMenu.md"))]
18    #[::unity::class(namespace = "App", name = "DebugSaveDataPathMenu")]
19    #[parent(crate::app::procinst::ProcInst)]
20    pub struct DebugSaveDataPathMenu {}
21
22    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/debugsavedatapathmenu/DebugSaveDataPathMenu_Label.md"))]
23    #[repr(C)]
24    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
25    pub struct DebugSaveDataPathMenu_Label {
26        pub value: i32,
27    }
28    impl ::unity::ClassIdentity for DebugSaveDataPathMenu_Label {
29        const NAME: &'static str = "DebugSaveDataPathMenu.Label";
30        const NAMESPACE: &'static str = "App";
31
32        fn class() -> ::unity::Class {
33            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
34            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
35        }
36    }
37    impl ::unity::IlType for DebugSaveDataPathMenu_Label {
38        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
39            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
40        }
41    }
42    impl DebugSaveDataPathMenu_Label {
43        pub fn path_menu() -> Self {
44            Self { value: 0 }
45        }
46
47        pub fn confirm_reload() -> Self {
48            Self { value: 1 }
49        }
50
51        pub fn prepare_reload() -> Self {
52            Self { value: 2 }
53        }
54
55        pub fn end() -> Self {
56            Self { value: 3 }
57        }
58    }
59}
60
61#[cfg(feature = "app-debugsavedatapathmenu-types")]
62pub use __types::*;
63
64#[cfg(feature = "app-debugsavedatapathmenu")]
65impl DebugSaveDataPathMenu {
66    #[doc = "`CreateBind(crate::app::procinst::ProcInst)` overload"]
67    pub fn create_bind(super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>) -> () {
68        unsafe {
69            ::unity::il2cpp_call!((::unity::module_base()+0x2a10120usize)as*mut u8,();
70(crate::app::procinst::ProcInst)::core::convert::Into::into(super_))
71        }
72    }
73}
74
75#[cfg(feature = "app-debugsavedatapathmenu")]
76pub trait IDebugSaveDataPathMenuMethods: IDebugSaveDataPathMenu {
77    #[doc = "`.ctor()` overload"]
78    fn ctor(self) -> () {
79        unsafe {
80            let __receiver = <DebugSaveDataPathMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
81            ::unity::il2cpp_call!((::unity::module_base()+0x2a10130usize)as*mut u8,();
82(DebugSaveDataPathMenu)__receiver)
83        }
84    }
85}
86
87#[cfg(feature = "app-debugsavedatapathmenu")]
88impl<__T: IDebugSaveDataPathMenu> IDebugSaveDataPathMenuMethods for __T {}
89
90#[cfg(feature = "app-debugsavedatapathmenu")]
91impl DebugSaveDataPathMenu {
92    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
93        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
94    }
95
96    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
97        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
98    }
99}
100
101#[cfg(feature = "app-debugsavedatapathmenu")]
102impl DebugSaveDataPathMenu {
103    #[doc = "`.ctor()` — no args"]
104    pub fn new() -> Self {
105        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
106            panic!(
107                "{}
108::{}
109 failed to instantiate",
110                ::core::stringify!(DebugSaveDataPathMenu),
111                ::core::stringify!(new),
112            )
113        });
114        <Self as IDebugSaveDataPathMenuMethods>::ctor(this);
115        this
116    }
117}
118
119#[cfg(feature = "app-debugsavedatapathmenu")]
120#[doc(hidden)]
121pub mod prelude {
122    pub use super::{DebugSaveDataPathMenu, DebugSaveDataPathMenu_Label, IDebugSaveDataPathMenu, IDebugSaveDataPathMenuMethods};
123    #[cfg(feature = "app-procinst")]
124    pub use crate::app::procinst::IProcInstMethods;
125    #[cfg(feature = "system-object")]
126    pub use crate::system::object::IObjectMethods;
127    #[cfg(feature = "system-enum")]
128    pub use crate::system::r#enum::IEnumMethods;
129    #[cfg(feature = "system-valuetype")]
130    pub use crate::system::valuetype::IValueTypeMethods;
131    pub use crate::{
132        app::procinst::IProcInst,
133        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
134    };
135}