Skip to main content

engage/generated/app/
mapaithread.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-mapaithread-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/mapaithread/MapAiThread.md"))]
15    #[::unity::class(namespace = "App", name = "MapAiThread")]
16    #[parent(crate::system::object::Object)]
17    pub struct MapAiThread {
18        #[offset(24)]
19        #[rename(name = "m_Lock")]
20        pub m_lock: ::unity::IlInstance,
21        #[offset(40)]
22        #[rename(name = "m_IsFirstRun")]
23        pub m_is_first_run: bool,
24        #[offset(44)]
25        #[rename(name = "m_Status")]
26        pub m_status: crate::app::mapaithread::MapAiThread_Status,
27    }
28
29    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapaithread/MapAiThread_Status.md"))]
30    #[repr(C)]
31    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
32    pub struct MapAiThread_Status {
33        pub value: i32,
34    }
35    impl ::unity::ClassIdentity for MapAiThread_Status {
36        const NAME: &'static str = "MapAiThread.Status";
37        const NAMESPACE: &'static str = "App";
38
39        fn class() -> ::unity::Class {
40            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
41            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
42        }
43    }
44    impl ::unity::IlType for MapAiThread_Status {
45        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
46            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
47        }
48    }
49    impl MapAiThread_Status {
50        pub fn wait() -> Self {
51            Self { value: 0 }
52        }
53
54        pub fn run() -> Self {
55            Self { value: 1 }
56        }
57
58        pub fn finalize() -> Self {
59            Self { value: 2 }
60        }
61    }
62}
63
64#[cfg(feature = "app-mapaithread-types")]
65pub use __types::*;
66
67#[cfg(feature = "app-mapaithread")]
68impl MapAiThread {
69    #[doc = "`Function(crate::system::object::Object)` overload"]
70    pub fn function(obj: impl ::core::convert::Into<crate::system::object::Object>) -> () {
71        unsafe {
72            ::unity::il2cpp_call!((::unity::module_base()+0x1efb480usize)as*mut u8,();
73(crate::system::object::Object)::core::convert::Into::into(obj))
74        }
75    }
76}
77
78#[cfg(feature = "app-mapaithread")]
79pub trait IMapAiThreadMethods: IMapAiThread {
80    #[doc = "`.ctor()` overload"]
81    fn ctor(self) -> () {
82        unsafe {
83            let __receiver = <MapAiThread as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
84            ::unity::il2cpp_call!((::unity::module_base()+0x1efb2b0usize)as*mut u8,();
85(MapAiThread)__receiver)
86        }
87    }
88    #[doc = "`Destruct()` overload"]
89    fn destruct(self) -> () {
90        unsafe {
91            let __receiver = <MapAiThread as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
92            ::unity::il2cpp_call!((::unity::module_base()+0x1efb430usize)as*mut u8,();
93(MapAiThread)__receiver)
94        }
95    }
96    #[doc = "`SetFirstRunFlag()` overload"]
97    fn set_first_run_flag(self) -> () {
98        unsafe {
99            let __receiver = <MapAiThread as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100            ::unity::il2cpp_call!((::unity::module_base()+0x1efb730usize)as*mut u8,();
101(MapAiThread)__receiver)
102        }
103    }
104    #[doc = "`Run()` overload"]
105    fn run(self) -> () {
106        unsafe {
107            let __receiver = <MapAiThread as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
108            ::unity::il2cpp_call!((::unity::module_base()+0x1efb760usize)as*mut u8,();
109(MapAiThread)__receiver)
110        }
111    }
112    #[doc = "`IsWait()` overload"]
113    fn is_wait(self) -> bool {
114        unsafe {
115            let __receiver = <MapAiThread as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
116            ::unity::il2cpp_call!((::unity::module_base()+0x1efb790usize)as*mut u8,bool;
117(MapAiThread)__receiver)
118        }
119    }
120}
121
122#[cfg(feature = "app-mapaithread")]
123impl<__T: IMapAiThread> IMapAiThreadMethods for __T {}
124
125#[cfg(feature = "app-mapaithread")]
126impl MapAiThread {
127    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
128        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
129    }
130
131    pub fn destruct_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
133    }
134
135    pub fn function_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
137    }
138
139    pub fn set_first_run_flag_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
141    }
142
143    pub fn run_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
145    }
146
147    pub fn is_wait_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
149    }
150}
151
152#[cfg(feature = "app-mapaithread")]
153impl MapAiThread {
154    #[doc = "`.ctor()` — no args"]
155    pub fn new() -> Self {
156        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
157            panic!(
158                "{}
159::{}
160 failed to instantiate",
161                ::core::stringify!(MapAiThread),
162                ::core::stringify!(new),
163            )
164        });
165        <Self as IMapAiThreadMethods>::ctor(this);
166        this
167    }
168}
169
170#[cfg(feature = "app-mapaithread")]
171#[doc(hidden)]
172pub mod prelude {
173    pub use super::{IMapAiThread, IMapAiThreadMethods, MapAiThread, MapAiThread_Status};
174    #[cfg(feature = "system-object")]
175    pub use crate::system::object::IObjectMethods;
176    #[cfg(feature = "system-enum")]
177    pub use crate::system::r#enum::IEnumMethods;
178    #[cfg(feature = "system-valuetype")]
179    pub use crate::system::valuetype::IValueTypeMethods;
180    pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
181}