Skip to main content

engage/generated/app/
savedatahandle.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-savedatahandle-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        r#enum::{Enum, IEnum},
11        valuetype::{IValueType, ValueType},
12    };
13
14    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/savedatahandle/SaveDataHandle.md"))]
15    #[::unity::class(namespace = "App", name = "SaveDataHandle")]
16    #[parent(crate::system::object::Object)]
17    pub struct SaveDataHandle {}
18
19    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/savedatahandle/SaveDataHandle_States.md"))]
20    #[repr(C)]
21    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
22    pub struct SaveDataHandle_States {
23        pub value: i32,
24    }
25    impl ::unity::ClassIdentity for SaveDataHandle_States {
26        const NAME: &'static str = "SaveDataHandle.States";
27        const NAMESPACE: &'static str = "App";
28
29        fn class() -> ::unity::Class {
30            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
31            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
32        }
33    }
34    impl ::unity::IlType for SaveDataHandle_States {
35        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
36            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
37        }
38    }
39    impl SaveDataHandle_States {
40        pub fn running() -> Self {
41            Self { value: 0 }
42        }
43
44        pub fn succeeded() -> Self {
45            Self { value: 1 }
46        }
47
48        pub fn failed() -> Self {
49            Self { value: 2 }
50        }
51    }
52}
53
54#[cfg(feature = "app-savedatahandle-types")]
55pub use __types::*;
56
57#[cfg(feature = "app-savedatahandle")]
58pub trait ISaveDataHandleMethods: ISaveDataHandle {
59    #[doc = "`IsRunning()` overload"]
60    fn is_running(self) -> bool {
61        unsafe {
62            let __receiver = <SaveDataHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
63            ::unity::il2cpp_call!((::unity::module_base()+0x1ec5830usize)as*mut u8,bool;
64(SaveDataHandle)__receiver)
65        }
66    }
67    #[doc = "`IsFinished()` overload"]
68    fn is_finished(self) -> bool {
69        unsafe {
70            let __receiver = <SaveDataHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
71            ::unity::il2cpp_call!((::unity::module_base()+0x1ec5840usize)as*mut u8,bool;
72(SaveDataHandle)__receiver)
73        }
74    }
75    #[doc = "`IsSucceeded()` overload"]
76    fn is_succeeded(self) -> bool {
77        unsafe {
78            let __receiver = <SaveDataHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79            ::unity::il2cpp_call!((::unity::module_base()+0x1ec5860usize)as*mut u8,bool;
80(SaveDataHandle)__receiver)
81        }
82    }
83    #[doc = "`IsFailed()` overload"]
84    fn is_failed(self) -> bool {
85        unsafe {
86            let __receiver = <SaveDataHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
87            ::unity::il2cpp_call!((::unity::module_base()+0x1ec5870usize)as*mut u8,bool;
88(SaveDataHandle)__receiver)
89        }
90    }
91    #[doc = "`get_State()` overload"]
92    fn get_state(self) -> crate::app::savedatahandle::SaveDataHandle_States {
93        unsafe {
94            let __receiver = <SaveDataHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
95            ::unity::il2cpp_call!((::unity::module_base()+0x1ec5880usize)as*mut u8,crate::app::savedatahandle::SaveDataHandle_States;
96(SaveDataHandle)__receiver)
97        }
98    }
99    #[doc = "`set_State(crate::app::savedatahandle::SaveDataHandle_States)` overload"]
100    fn set_state(self, value: impl ::core::convert::Into<crate::app::savedatahandle::SaveDataHandle_States>) -> () {
101        unsafe {
102            let __receiver = <SaveDataHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
103            ::unity::il2cpp_call!((::unity::module_base()+0x1ec5890usize)as*mut u8,();
104(SaveDataHandle)__receiver,(crate::app::savedatahandle::SaveDataHandle_States)::core::convert::Into::into(value))
105        }
106    }
107    #[doc = "`.ctor()` overload"]
108    fn ctor(self) -> () {
109        unsafe {
110            let __receiver = <SaveDataHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111            ::unity::il2cpp_call!((::unity::module_base()+0x1ec5180usize)as*mut u8,();
112(SaveDataHandle)__receiver)
113        }
114    }
115}
116
117#[cfg(feature = "app-savedatahandle")]
118impl<__T: ISaveDataHandle> ISaveDataHandleMethods for __T {}
119
120#[cfg(feature = "app-savedatahandle")]
121impl SaveDataHandle {
122    pub fn is_running_method_info() -> &'static ::unity::il2cpp::MethodInfo {
123        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
124    }
125
126    pub fn is_finished_method_info() -> &'static ::unity::il2cpp::MethodInfo {
127        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
128    }
129
130    pub fn is_succeeded_method_info() -> &'static ::unity::il2cpp::MethodInfo {
131        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
132    }
133
134    pub fn is_failed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
135        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
136    }
137
138    pub fn get_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
139        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
140    }
141
142    pub fn set_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
143        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
144    }
145
146    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
147        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
148    }
149}
150
151#[cfg(feature = "app-savedatahandle")]
152impl SaveDataHandle {
153    #[doc = "`.ctor()` — no args"]
154    pub fn new() -> Self {
155        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
156            panic!(
157                "{}
158::{}
159 failed to instantiate",
160                ::core::stringify!(SaveDataHandle),
161                ::core::stringify!(new),
162            )
163        });
164        <Self as ISaveDataHandleMethods>::ctor(this);
165        this
166    }
167}
168
169#[cfg(feature = "app-savedatahandle")]
170#[doc(hidden)]
171pub mod prelude {
172    pub use super::{ISaveDataHandle, ISaveDataHandleMethods, SaveDataHandle, SaveDataHandle_States};
173    #[cfg(feature = "system-object")]
174    pub use crate::system::object::IObjectMethods;
175    #[cfg(feature = "system-enum")]
176    pub use crate::system::r#enum::IEnumMethods;
177    #[cfg(feature = "system-valuetype")]
178    pub use crate::system::valuetype::IValueTypeMethods;
179    pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
180}