Skip to main content

engage/generated/app/
mapprefab.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-mapprefab-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            object_2::{IObject_2, Object_2},
16            scriptableobject::{IScriptableObject, ScriptableObject},
17        },
18    };
19
20    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapprefab/MapPrefab_Entity.md"))]
21    #[::unity::class(namespace = "App", name = "MapPrefab.Entity")]
22    #[parent(crate::system::object::Object)]
23    pub struct MapPrefab_Entity {
24        #[offset(16)]
25        #[rename(name = "gameObject")]
26        pub game_object: crate::unity_engine::gameobject::GameObject,
27        #[offset(24)]
28        #[rename(name = "region")]
29        pub region: crate::app::mapprefab::MapPrefab_Region,
30        #[offset(28)]
31        #[rename(name = "category")]
32        pub category: crate::app::mapprefab::MapPrefab_Category,
33        #[offset(32)]
34        #[rename(name = "name")]
35        pub name: ::unity::Il2CppString,
36        #[offset(40)]
37        #[rename(name = "time")]
38        pub time: ::unity::Il2CppString,
39        #[offset(48)]
40        #[rename(name = "user")]
41        pub user: ::unity::Il2CppString,
42        #[offset(56)]
43        #[rename(name = "comment")]
44        pub comment: ::unity::Il2CppString,
45    }
46
47    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapprefab/MapPrefab_Region.md"))]
48    #[repr(C)]
49    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
50    pub struct MapPrefab_Region {
51        pub value: i32,
52    }
53    impl ::unity::ClassIdentity for MapPrefab_Region {
54        const NAME: &'static str = "MapPrefab.Region";
55        const NAMESPACE: &'static str = "App";
56
57        fn class() -> ::unity::Class {
58            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
59            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
60        }
61    }
62    impl ::unity::IlType for MapPrefab_Region {
63        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
64            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
65        }
66    }
67    impl MapPrefab_Region {
68        pub fn 無し() -> Self {
69            Self { value: 0 }
70        }
71
72        pub fn 温暖() -> Self {
73            Self { value: 1 }
74        }
75
76        pub fn 熱帯() -> Self {
77            Self { value: 2 }
78        }
79
80        pub fn 乾燥() -> Self {
81            Self { value: 3 }
82        }
83
84        pub fn 寒冷() -> Self {
85            Self { value: 4 }
86        }
87    }
88
89    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapprefab/MapPrefab_Category.md"))]
90    #[repr(C)]
91    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
92    pub struct MapPrefab_Category {
93        pub value: i32,
94    }
95    impl ::unity::ClassIdentity for MapPrefab_Category {
96        const NAME: &'static str = "MapPrefab.Category";
97        const NAMESPACE: &'static str = "App";
98
99        fn class() -> ::unity::Class {
100            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
101            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
102        }
103    }
104    impl ::unity::IlType for MapPrefab_Category {
105        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
106            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
107        }
108    }
109    impl MapPrefab_Category {
110        pub fn 無し() -> Self {
111            Self { value: 0 }
112        }
113
114        pub fn 建物() -> Self {
115            Self { value: 1 }
116        }
117
118        pub fn 岩() -> Self {
119            Self { value: 2 }
120        }
121
122        pub fn 木() -> Self {
123            Self { value: 3 }
124        }
125
126        pub fn 箱() -> Self {
127            Self { value: 4 }
128        }
129
130        pub fn 樽() -> Self {
131            Self { value: 5 }
132        }
133
134        pub fn 人工物() -> Self {
135            Self { value: 6 }
136        }
137
138        pub fn 自然物() -> Self {
139            Self { value: 7 }
140        }
141
142        pub fn 補給() -> Self {
143            Self { value: 8 }
144        }
145
146        pub fn 動物() -> Self {
147            Self { value: 9 }
148        }
149
150        pub fn 小物() -> Self {
151            Self { value: 10 }
152        }
153
154        pub fn 食べ物() -> Self {
155            Self { value: 11 }
156        }
157
158        pub fn プロトタイプ() -> Self {
159            Self { value: 12 }
160        }
161    }
162
163    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapprefab/MapPrefab.md"))]
164    #[::unity::class(namespace = "App", name = "MapPrefab")]
165    #[parent(crate::unity_engine::scriptableobject::ScriptableObject)]
166    pub struct MapPrefab {
167        #[offset(24)]
168        #[rename(name = "m_Entitys")]
169        pub m_entitys: crate::system::collections::generic::list_1::List_1<crate::app::mapprefab::MapPrefab_Entity>,
170    }
171}
172
173#[cfg(feature = "app-mapprefab-types")]
174pub use __types::*;
175
176#[cfg(feature = "app-mapprefab")]
177pub trait IMapPrefab_EntityMethods: IMapPrefab_Entity {
178    #[doc = "`Update()` overload"]
179    fn update(self) -> () {
180        unsafe {
181            let __receiver = <MapPrefab_Entity as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
182            ::unity::il2cpp_call!((::unity::module_base()+0x218d5f0usize)as*mut u8,();
183(MapPrefab_Entity)__receiver)
184        }
185    }
186    #[doc = "`.ctor()` overload"]
187    fn ctor(self) -> () {
188        unsafe {
189            let __receiver = <MapPrefab_Entity as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
190            ::unity::il2cpp_call!((::unity::module_base()+0x218d6a0usize)as*mut u8,();
191(MapPrefab_Entity)__receiver)
192        }
193    }
194}
195
196#[cfg(feature = "app-mapprefab")]
197impl<__T: IMapPrefab_Entity> IMapPrefab_EntityMethods for __T {}
198
199#[cfg(feature = "app-mapprefab")]
200impl MapPrefab_Entity {
201    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
202        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
203    }
204
205    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
206        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
207    }
208}
209
210#[cfg(feature = "app-mapprefab")]
211impl MapPrefab_Entity {
212    #[doc = "`.ctor()` — no args"]
213    pub fn new() -> Self {
214        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
215            panic!(
216                "{}
217::{}
218 failed to instantiate",
219                ::core::stringify!(MapPrefab_Entity),
220                ::core::stringify!(new),
221            )
222        });
223        <Self as IMapPrefab_EntityMethods>::ctor(this);
224        this
225    }
226}
227
228#[cfg(feature = "app-mapprefab")]
229pub trait IMapPrefabMethods: IMapPrefab {
230    #[doc = "`HasObject(crate::unity_engine::gameobject::GameObject)` overload"]
231    fn has_object(self, go: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> bool {
232        unsafe {
233            let __receiver = <MapPrefab as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
234            ::unity::il2cpp_call!((::unity::module_base()+0x235b640usize)as*mut u8,bool;
235(MapPrefab)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(go))
236        }
237    }
238    #[doc = "`Add(crate::app::mapprefab::MapPrefab_Entity)` overload"]
239    fn add(self, entity: impl ::core::convert::Into<crate::app::mapprefab::MapPrefab_Entity>) -> () {
240        unsafe {
241            let __receiver = <MapPrefab as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
242            ::unity::il2cpp_call!((::unity::module_base()+0x235b7e0usize)as*mut u8,();
243(MapPrefab)__receiver,(crate::app::mapprefab::MapPrefab_Entity)::core::convert::Into::into(entity))
244        }
245    }
246    #[doc = "`Sort()` overload"]
247    fn sort(self) -> () {
248        unsafe {
249            let __receiver = <MapPrefab as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
250            ::unity::il2cpp_call!((::unity::module_base()+0x235b850usize)as*mut u8,();
251(MapPrefab)__receiver)
252        }
253    }
254    #[doc = "`.ctor()` overload"]
255    fn ctor(self) -> () {
256        unsafe {
257            let __receiver = <MapPrefab as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
258            ::unity::il2cpp_call!((::unity::module_base()+0x235b980usize)as*mut u8,();
259(MapPrefab)__receiver)
260        }
261    }
262}
263
264#[cfg(feature = "app-mapprefab")]
265impl<__T: IMapPrefab> IMapPrefabMethods for __T {}
266
267#[cfg(feature = "app-mapprefab")]
268impl MapPrefab {
269    pub fn has_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
270        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
271    }
272
273    pub fn add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
274        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
275    }
276
277    pub fn sort_method_info() -> &'static ::unity::il2cpp::MethodInfo {
278        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
279    }
280
281    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
282        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
283    }
284}
285
286#[cfg(feature = "app-mapprefab")]
287impl MapPrefab {
288    #[doc = "`.ctor()` — no args"]
289    pub fn new() -> Self {
290        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
291            panic!(
292                "{}
293::{}
294 failed to instantiate",
295                ::core::stringify!(MapPrefab),
296                ::core::stringify!(new),
297            )
298        });
299        <Self as IMapPrefabMethods>::ctor(this);
300        this
301    }
302}
303
304#[cfg(feature = "app-mapprefab")]
305#[doc(hidden)]
306pub mod prelude {
307    pub use super::{
308        IMapPrefab, IMapPrefabMethods, IMapPrefab_Entity, IMapPrefab_EntityMethods, MapPrefab, MapPrefab_Category, MapPrefab_Entity, MapPrefab_Region,
309    };
310    #[cfg(feature = "system-object")]
311    pub use crate::system::object::IObjectMethods;
312    #[cfg(feature = "system-enum")]
313    pub use crate::system::r#enum::IEnumMethods;
314    #[cfg(feature = "system-valuetype")]
315    pub use crate::system::valuetype::IValueTypeMethods;
316    #[cfg(feature = "unity_engine-object_2")]
317    pub use crate::unity_engine::object_2::IObject_2Methods;
318    #[cfg(feature = "unity_engine-scriptableobject")]
319    pub use crate::unity_engine::scriptableobject::IScriptableObjectMethods;
320    pub use crate::{
321        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
322        unity_engine::{object_2::IObject_2, scriptableobject::IScriptableObject},
323    };
324}