Skip to main content

engage/generated/app/
inactivator.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-inactivator-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::{
10            object::{IObject, Object},
11            r#enum::{Enum, IEnum},
12            valuetype::{IValueType, ValueType},
13        },
14        unity_engine::{
15            behaviour::{Behaviour, IBehaviour},
16            component::{Component, IComponent},
17            monobehaviour::{IMonoBehaviour, MonoBehaviour},
18            object_2::{IObject_2, Object_2},
19        },
20    };
21
22    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/inactivator/Inactivator_Flags.md"))]
23    #[repr(C)]
24    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
25    pub struct Inactivator_Flags {
26        pub value: i32,
27    }
28    impl ::unity::ClassIdentity for Inactivator_Flags {
29        const NAME: &'static str = "Inactivator.Flags";
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 Inactivator_Flags {
38        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
39            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
40        }
41    }
42    impl Inactivator_Flags {
43        pub fn シナリオ() -> Self {
44            Self { value: 1 }
45        }
46
47        pub fn 遭遇戦() -> Self {
48            Self { value: 2 }
49        }
50
51        pub fn 絆() -> Self {
52            Self { value: 4 }
53        }
54
55        pub fn 拠点() -> Self {
56            Self { value: 8 }
57        }
58
59        pub fn gmap() -> Self {
60            Self { value: 16 }
61        }
62    }
63
64    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/inactivator/Inactivator_Kind.md"))]
65    #[repr(C)]
66    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
67    pub struct Inactivator_Kind {
68        pub value: i32,
69    }
70    impl ::unity::ClassIdentity for Inactivator_Kind {
71        const NAME: &'static str = "Inactivator.Kind";
72        const NAMESPACE: &'static str = "App";
73
74        fn class() -> ::unity::Class {
75            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
76            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
77        }
78    }
79    impl ::unity::IlType for Inactivator_Kind {
80        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
81            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
82        }
83    }
84    impl Inactivator_Kind {
85        pub fn none() -> Self {
86            Self { value: 0 }
87        }
88
89        pub fn story() -> Self {
90            Self { value: 1 }
91        }
92
93        pub fn encount() -> Self {
94            Self { value: 2 }
95        }
96
97        pub fn kizuna() -> Self {
98            Self { value: 3 }
99        }
100
101        pub fn hub() -> Self {
102            Self { value: 4 }
103        }
104
105        pub fn gmap() -> Self {
106            Self { value: 5 }
107        }
108    }
109
110    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/inactivator/Inactivator.md"))]
111    #[::unity::class(namespace = "App", name = "Inactivator")]
112    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
113    pub struct Inactivator {
114        #[offset(24)]
115        #[rename(name = "m_Flags")]
116        pub m_flags: crate::app::inactivator::Inactivator_Flags,
117        #[offset(32)]
118        #[rename(name = "m_Variable")]
119        pub m_variable: ::unity::Il2CppString,
120    }
121}
122
123#[cfg(feature = "app-inactivator-types")]
124pub use __types::*;
125
126#[cfg(feature = "app-inactivator")]
127impl Inactivator {
128    #[doc = "`GetKind()` overload"]
129    pub fn get_kind() -> crate::app::inactivator::Inactivator_Kind {
130        unsafe {
131            ::unity::il2cpp_call!((::unity::module_base()+0x290ebd0usize)as*mut u8,crate::app::inactivator::Inactivator_Kind;
132            )
133        }
134    }
135}
136
137#[cfg(feature = "app-inactivator")]
138pub trait IInactivatorMethods: IInactivator {
139    #[doc = "`IsUsed()` overload"]
140    fn is_used(self) -> bool {
141        unsafe {
142            let __receiver = <Inactivator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143            ::unity::il2cpp_call!((::unity::module_base()+0x290eb90usize)as*mut u8,bool;
144(Inactivator)__receiver)
145        }
146    }
147    #[doc = "`Awake()` overload"]
148    fn awake(self) -> () {
149        unsafe {
150            let __receiver = <Inactivator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
151            ::unity::il2cpp_call!((::unity::module_base()+0x290ed70usize)as*mut u8,();
152(Inactivator)__receiver)
153        }
154    }
155    #[doc = "`.ctor()` overload"]
156    fn ctor(self) -> () {
157        unsafe {
158            let __receiver = <Inactivator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
159            ::unity::il2cpp_call!((::unity::module_base()+0x290ef30usize)as*mut u8,();
160(Inactivator)__receiver)
161        }
162    }
163}
164
165#[cfg(feature = "app-inactivator")]
166impl<__T: IInactivator> IInactivatorMethods for __T {}
167
168#[cfg(feature = "app-inactivator")]
169impl Inactivator {
170    pub fn is_used_method_info() -> &'static ::unity::il2cpp::MethodInfo {
171        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
172    }
173
174    pub fn get_kind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
175        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
176    }
177
178    pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
179        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
180    }
181
182    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
183        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
184    }
185}
186
187#[cfg(feature = "app-inactivator")]
188impl Inactivator {
189    #[doc = "`.ctor()` — no args"]
190    pub fn new() -> Self {
191        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
192            panic!(
193                "{}
194::{}
195 failed to instantiate",
196                ::core::stringify!(Inactivator),
197                ::core::stringify!(new),
198            )
199        });
200        <Self as IInactivatorMethods>::ctor(this);
201        this
202    }
203}
204
205#[cfg(feature = "app-inactivator")]
206#[doc(hidden)]
207pub mod prelude {
208    pub use super::{IInactivator, IInactivatorMethods, Inactivator, Inactivator_Flags, Inactivator_Kind};
209    #[cfg(feature = "system-object")]
210    pub use crate::system::object::IObjectMethods;
211    #[cfg(feature = "system-enum")]
212    pub use crate::system::r#enum::IEnumMethods;
213    #[cfg(feature = "system-valuetype")]
214    pub use crate::system::valuetype::IValueTypeMethods;
215    #[cfg(feature = "unity_engine-behaviour")]
216    pub use crate::unity_engine::behaviour::IBehaviourMethods;
217    #[cfg(feature = "unity_engine-component")]
218    pub use crate::unity_engine::component::IComponentMethods;
219    #[cfg(feature = "unity_engine-monobehaviour")]
220    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
221    #[cfg(feature = "unity_engine-object_2")]
222    pub use crate::unity_engine::object_2::IObject_2Methods;
223    pub use crate::{
224        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
225        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
226    };
227}