1#[cfg(feature = "app-mapeditor-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::singletonmonobehaviour_1::{ISingletonMonoBehaviour_1, SingletonMonoBehaviour_1},
10 system::object::{IObject, Object},
11 unity_engine::{
12 behaviour::{Behaviour, IBehaviour},
13 component::{Component, IComponent},
14 monobehaviour::{IMonoBehaviour, MonoBehaviour},
15 object_2::{IObject_2, Object_2},
16 },
17 };
18
19 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapeditor/MapEditor_EditObject.md"))]
20 #[::unity::class(namespace = "App", name = "MapEditor.EditObject")]
21 #[parent(crate::system::object::Object)]
22 pub struct MapEditor_EditObject {
23 #[offset(16)]
24 #[rename(name = "gameObject")]
25 pub game_object: crate::unity_engine::gameobject::GameObject,
26 }
27
28 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapeditor/MapEditor.md"))]
29 #[::unity::class(namespace = "App", name = "MapEditor")]
30 #[parent(crate::app::singletonmonobehaviour_1::SingletonMonoBehaviour_1<crate::app::mapeditor::MapEditor>)]
31 pub struct MapEditor {
32 #[offset(32)]
33 #[rename(name = "m_EditObjects")]
34 pub m_edit_objects: ::unity::Array<crate::app::mapeditor::MapEditor_EditObject>,
35 #[offset(40)]
36 #[rename(name = "m_CasualMapEditData")]
37 pub m_casual_map_edit_data: crate::app::casualmap::CasualMap,
38 #[offset(48)]
39 #[rename(name = "m_Mesh")]
40 pub m_mesh: crate::app::map::Map_CellMesh,
41 #[offset(56)]
42 #[rename(name = "m_Dictionary")]
43 pub m_dictionary: crate::system::collections::generic::dictionary_2::Dictionary_2<i32, crate::app::mapeditor::MapEditor_EditObject>,
44 #[static_field]
45 #[rename(name = "Version")]
46 pub version: i32,
47 #[offset(64)]
48 #[rename(name = "m_IsEnableGrid")]
49 pub m_is_enable_grid: bool,
50 #[static_field]
51 #[rename(name = "s_IsPlaySound")]
52 pub s_is_play_sound: bool,
53 #[static_field]
54 #[rename(name = "s_MapObjects")]
55 pub s_map_objects: crate::system::collections::generic::dictionary_2::Dictionary_2<crate::app::mappos::MapPos, i32>,
56 #[static_field]
57 #[rename(name = "s_MapObjectRotates")]
58 pub s_map_object_rotates: crate::system::collections::generic::dictionary_2::Dictionary_2<crate::app::mappos::MapPos, i32>,
59 #[static_field]
60 #[rename(name = "CasualMapSlotMax")]
61 pub casual_map_slot_max: i32,
62 }
63}
64
65#[cfg(feature = "app-mapeditor-types")]
66pub use __types::*;
67
68#[cfg(feature = "app-mapeditor")]
69pub trait IMapEditor_EditObjectMethods: IMapEditor_EditObject {
70 #[doc = "`.ctor()` overload"]
71 fn ctor(self) -> () {
72 unsafe {
73 let __receiver = <MapEditor_EditObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74 ::unity::il2cpp_call!((::unity::module_base()+0x24c4350usize)as*mut u8,();
75(MapEditor_EditObject)__receiver)
76 }
77 }
78}
79
80#[cfg(feature = "app-mapeditor")]
81impl<__T: IMapEditor_EditObject> IMapEditor_EditObjectMethods for __T {}
82
83#[cfg(feature = "app-mapeditor")]
84impl MapEditor_EditObject {
85 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
86 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
87 }
88}
89
90#[cfg(feature = "app-mapeditor")]
91impl MapEditor_EditObject {
92 #[doc = "`.ctor()` — no args"]
93 pub fn new() -> Self {
94 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
95 panic!(
96 "{}
97::{}
98 failed to instantiate",
99 ::core::stringify!(MapEditor_EditObject),
100 ::core::stringify!(new),
101 )
102 });
103 <Self as IMapEditor_EditObjectMethods>::ctor(this);
104 this
105 }
106}
107
108#[cfg(feature = "app-mapeditor")]
109impl MapEditor {
110 #[doc = "`CalcKey(::unity::Il2CppString)` overload"]
111 pub fn calc_key(name: impl ::core::convert::Into<::unity::Il2CppString>) -> i32 {
112 unsafe {
113 ::unity::il2cpp_call!((::unity::module_base()+0x1db2090usize)as*mut u8,i32;
114(::unity::Il2CppString)::core::convert::Into::into(name))
115 }
116 }
117
118 #[doc = "`GetMapPosition(i32, i32)` overload"]
119 pub fn get_map_position(cx: impl ::core::convert::Into<i32>, cz: impl ::core::convert::Into<i32>) -> crate::unity_engine::vector3::Vector3 {
120 unsafe {
121 ::unity::il2cpp_call!((::unity::module_base()+0x1db3600usize)as*mut u8,crate::unity_engine::vector3::Vector3;
122(i32)::core::convert::Into::into(cx),(i32)::core::convert::Into::into(cz))
123 }
124 }
125
126 #[doc = "`PlayPutSound(::unity::Il2CppString)` overload"]
127 pub fn play_put_sound(object_name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
128 unsafe {
129 ::unity::il2cpp_call!((::unity::module_base()+0x1db4790usize)as*mut u8,();
130(::unity::Il2CppString)::core::convert::Into::into(object_name))
131 }
132 }
133
134 #[doc = "`PlayDestroySound()` overload"]
135 pub fn play_destroy_sound() -> () {
136 unsafe {
137 ::unity::il2cpp_call!((::unity::module_base()+0x1db5f50usize)as*mut u8,();
138 )
139 }
140 }
141
142 #[doc = "`SetPlaySound(bool)` overload"]
143 pub fn set_play_sound(value: impl ::core::convert::Into<bool>) -> () {
144 unsafe {
145 ::unity::il2cpp_call!((::unity::module_base()+0x1db6a90usize)as*mut u8,();
146(bool)::core::convert::Into::into(value))
147 }
148 }
149
150 #[doc = "`Serialize(crate::app::stream_2::Stream_2)` overload"]
151 pub fn serialize(stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
152 unsafe {
153 ::unity::il2cpp_call!((::unity::module_base()+0x1db7740usize)as*mut u8,();
154(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
155 }
156 }
157
158 #[doc = "`Deserialize(crate::app::stream_2::Stream_2)` overload"]
159 pub fn deserialize(stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
160 unsafe {
161 ::unity::il2cpp_call!((::unity::module_base()+0x1db79c0usize)as*mut u8,();
162(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
163 }
164 }
165
166 #[doc = "`.cctor()` overload"]
167 pub fn cctor() -> () {
168 unsafe {
169 ::unity::il2cpp_call!((::unity::module_base()+0x1db84c0usize)as*mut u8,();
170 )
171 }
172 }
173}
174
175#[cfg(feature = "app-mapeditor")]
176pub trait IMapEditorMethods: IMapEditor {
177 #[doc = "`Start()` overload"]
178 fn start(self) -> () {
179 unsafe {
180 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
181 ::unity::il2cpp_call!((::unity::module_base()+0x1db1d70usize)as*mut u8,();
182(MapEditor)__receiver)
183 }
184 }
185 #[doc = "`FindObject(::unity::Il2CppString)` overload"]
186 fn find_object(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::gameobject::GameObject {
187 unsafe {
188 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
189 ::unity::il2cpp_call!((::unity::module_base()+0x1db2200usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
190(MapEditor)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
191 }
192 }
193 #[doc = "`FindObject(i32)` overload"]
194 fn find_object_2(self, key: impl ::core::convert::Into<i32>) -> crate::unity_engine::gameobject::GameObject {
195 unsafe {
196 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
197 ::unity::il2cpp_call!((::unity::module_base()+0x1db22d0usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
198(MapEditor)__receiver,(i32)::core::convert::Into::into(key))
199 }
200 }
201 #[doc = "`FindObject(i32, i32)` overload"]
202 fn find_object_3(self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> crate::unity_engine::gameobject::GameObject {
203 unsafe {
204 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
205 ::unity::il2cpp_call!((::unity::module_base()+0x1db2360usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
206(MapEditor)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
207 }
208 }
209 #[doc = "`GetTerrain(::unity::Il2CppString)` overload"]
210 fn get_terrain(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::app::terraindata_2::TerrainData_2 {
211 unsafe {
212 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
213 ::unity::il2cpp_call!((::unity::module_base()+0x1db2520usize)as*mut u8,crate::app::terraindata_2::TerrainData_2;
214(MapEditor)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
215 }
216 }
217 #[doc = "`GetTerrain(i32)` overload"]
218 fn get_terrain_2(self, key: impl ::core::convert::Into<i32>) -> crate::app::terraindata_2::TerrainData_2 {
219 unsafe {
220 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
221 ::unity::il2cpp_call!((::unity::module_base()+0x1db25a0usize)as*mut u8,crate::app::terraindata_2::TerrainData_2;
222(MapEditor)__receiver,(i32)::core::convert::Into::into(key))
223 }
224 }
225 #[doc = "`ForEachObject(crate::system::action_1::Action_1<crate::unity_engine::gameobject::GameObject>)` overload"]
226 fn for_each_object(self, func: impl ::core::convert::Into<crate::system::action_1::Action_1<crate::unity_engine::gameobject::GameObject>>) -> () {
227 unsafe {
228 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
229 ::unity::il2cpp_call!((::unity::module_base()+0x1dacd50usize)as*mut u8,();
230(MapEditor)__receiver,(crate::system::action_1::Action_1<crate::unity_engine::gameobject::GameObject>)::core::convert::Into::into(func))
231 }
232 }
233 #[doc = "`get_SizeX()` overload"]
234 fn get_size_x(self) -> i32 {
235 unsafe {
236 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
237 ::unity::il2cpp_call!((::unity::module_base()+0x1db26c0usize)as*mut u8,i32;
238(MapEditor)__receiver)
239 }
240 }
241 #[doc = "`get_SizeZ()` overload"]
242 fn get_size_z(self) -> i32 {
243 unsafe {
244 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
245 ::unity::il2cpp_call!((::unity::module_base()+0x1db2740usize)as*mut u8,i32;
246(MapEditor)__receiver)
247 }
248 }
249 #[doc = "`GetEditObjectCount(i32)` overload"]
250 fn get_edit_object_count(self, key: impl ::core::convert::Into<i32>) -> i32 {
251 unsafe {
252 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
253 ::unity::il2cpp_call!((::unity::module_base()+0x1db27c0usize)as*mut u8,i32;
254(MapEditor)__receiver,(i32)::core::convert::Into::into(key))
255 }
256 }
257 #[doc = "`GetEditObjectCount(::unity::Il2CppString)` overload"]
258 fn get_edit_object_count_2(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> i32 {
259 unsafe {
260 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
261 ::unity::il2cpp_call!((::unity::module_base()+0x1db28d0usize)as*mut u8,i32;
262(MapEditor)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
263 }
264 }
265 #[doc = "`GetCategoryCount(crate::app::mapeditorcategorydata::MapEditorCategoryData)` overload"]
266 fn get_category_count(self, category: impl ::core::convert::Into<crate::app::mapeditorcategorydata::MapEditorCategoryData>) -> i32 {
267 unsafe {
268 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
269 ::unity::il2cpp_call!((::unity::module_base()+0x1db2950usize)as*mut u8,i32;
270(MapEditor)__receiver,(crate::app::mapeditorcategorydata::MapEditorCategoryData)::core::convert::Into::into(category))
271 }
272 }
273 #[doc = "`ContainsSettableArea(i32, i32, bool)` overload"]
274 fn contains_settable_area(
275 self,
276 x: impl ::core::convert::Into<i32>,
277 z: impl ::core::convert::Into<i32>,
278 is_opponent: impl ::core::convert::Into<bool>,
279 ) -> bool {
280 unsafe {
281 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
282 ::unity::il2cpp_call!((::unity::module_base()+0x1db2a90usize)as*mut u8,bool;
283(MapEditor)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z),(bool)::core::convert::Into::into(is_opponent))
284 }
285 }
286 #[doc = "`IsOpponentArea(i32, i32)` overload"]
287 fn is_opponent_area(self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> bool {
288 unsafe {
289 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
290 ::unity::il2cpp_call!((::unity::module_base()+0x1db2c80usize)as*mut u8,bool;
291(MapEditor)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
292 }
293 }
294 #[doc = "`CanCreateObject(crate::app::mapeditorcategorydata::MapEditorCategoryData)` overload"]
295 fn can_create_object(self, category: impl ::core::convert::Into<crate::app::mapeditorcategorydata::MapEditorCategoryData>) -> bool {
296 unsafe {
297 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
298 ::unity::il2cpp_call!((::unity::module_base()+0x1db2d20usize)as*mut u8,bool;
299(MapEditor)__receiver,(crate::app::mapeditorcategorydata::MapEditorCategoryData)::core::convert::Into::into(category))
300 }
301 }
302 #[doc = "`ShowGrid()` overload"]
303 fn show_grid(self) -> () {
304 unsafe {
305 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
306 ::unity::il2cpp_call!((::unity::module_base()+0x1db2e20usize)as*mut u8,();
307(MapEditor)__receiver)
308 }
309 }
310 #[doc = "`HideGrid()` overload"]
311 fn hide_grid(self) -> () {
312 unsafe {
313 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
314 ::unity::il2cpp_call!((::unity::module_base()+0x1db35f0usize)as*mut u8,();
315(MapEditor)__receiver)
316 }
317 }
318 #[doc = "`UpdateGrid()` overload"]
319 fn update_grid(self) -> () {
320 unsafe {
321 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
322 ::unity::il2cpp_call!((::unity::module_base()+0x1db2e30usize)as*mut u8,();
323(MapEditor)__receiver)
324 }
325 }
326 #[doc = "`TryCreateObject(i32, i32, crate::app::mapeditorobjectdata::MapEditorObjectData, bool, bool, bool)` overload"]
327 fn try_create_object(
328 self,
329 x: impl ::core::convert::Into<i32>,
330 z: impl ::core::convert::Into<i32>,
331 obj: impl ::core::convert::Into<crate::app::mapeditorobjectdata::MapEditorObjectData>,
332 is_update: impl ::core::convert::Into<bool>,
333 is_record: impl ::core::convert::Into<bool>,
334 is_play_sound: impl ::core::convert::Into<bool>,
335 ) -> crate::unity_engine::gameobject::GameObject {
336 unsafe {
337 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
338 ::unity::il2cpp_call!((::unity::module_base()+0x1db4240usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
339(MapEditor)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z),(crate::app::mapeditorobjectdata::MapEditorObjectData)::core::convert::Into::into(obj),(bool)::core::convert::Into::into(is_update),(bool)::core::convert::Into::into(is_record),(bool)::core::convert::Into::into(is_play_sound))
340 }
341 }
342 #[doc = "`TryCreateObject(i32, i32, i32, bool, bool, bool)` overload"]
343 fn try_create_object_2(
344 self,
345 x: impl ::core::convert::Into<i32>,
346 z: impl ::core::convert::Into<i32>,
347 key: impl ::core::convert::Into<i32>,
348 is_update: impl ::core::convert::Into<bool>,
349 is_record: impl ::core::convert::Into<bool>,
350 is_play_sound: impl ::core::convert::Into<bool>,
351 ) -> crate::unity_engine::gameobject::GameObject {
352 unsafe {
353 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
354 ::unity::il2cpp_call!((::unity::module_base()+0x1db4420usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
355(MapEditor)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z),(i32)::core::convert::Into::into(key),(bool)::core::convert::Into::into(is_update),(bool)::core::convert::Into::into(is_record),(bool)::core::convert::Into::into(is_play_sound))
356 }
357 }
358 #[doc = "`TryDeleteObject(i32, i32, bool, bool, bool)` overload"]
359 fn try_delete_object(
360 self,
361 x: impl ::core::convert::Into<i32>,
362 z: impl ::core::convert::Into<i32>,
363 is_update: impl ::core::convert::Into<bool>,
364 is_record: impl ::core::convert::Into<bool>,
365 is_play_sound: impl ::core::convert::Into<bool>,
366 ) -> bool {
367 unsafe {
368 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
369 ::unity::il2cpp_call!((::unity::module_base()+0x1db5b50usize)as*mut u8,bool;
370(MapEditor)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z),(bool)::core::convert::Into::into(is_update),(bool)::core::convert::Into::into(is_record),(bool)::core::convert::Into::into(is_play_sound))
371 }
372 }
373 #[doc = "`TryReplaceObject(i32, i32, crate::app::mapeditorobjectdata::MapEditorObjectData)` overload"]
374 fn try_replace_object(
375 self,
376 x: impl ::core::convert::Into<i32>,
377 z: impl ::core::convert::Into<i32>,
378 obj_data: impl ::core::convert::Into<crate::app::mapeditorobjectdata::MapEditorObjectData>,
379 ) -> crate::unity_engine::gameobject::GameObject {
380 unsafe {
381 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
382 ::unity::il2cpp_call!((::unity::module_base()+0x1db6020usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
383(MapEditor)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z),(crate::app::mapeditorobjectdata::MapEditorObjectData)::core::convert::Into::into(obj_data))
384 }
385 }
386 #[doc = "`CanReplace(crate::unity_engine::gameobject::GameObject, crate::app::mapeditorobjectdata::MapEditorObjectData)` overload"]
387 fn can_replace(
388 self,
389 delete_obj: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
390 create_obj: impl ::core::convert::Into<crate::app::mapeditorobjectdata::MapEditorObjectData>,
391 ) -> bool {
392 unsafe {
393 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
394 ::unity::il2cpp_call!((::unity::module_base()+0x1db61f0usize)as*mut u8,bool;
395(MapEditor)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(delete_obj),(crate::app::mapeditorobjectdata::MapEditorObjectData)::core::convert::Into::into(create_obj))
396 }
397 }
398 #[doc = "`ClearObjectAll(bool)` overload"]
399 fn clear_object_all(self, is_update: impl ::core::convert::Into<bool>) -> () {
400 unsafe {
401 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
402 ::unity::il2cpp_call!((::unity::module_base()+0x1dadb70usize)as*mut u8,();
403(MapEditor)__receiver,(bool)::core::convert::Into::into(is_update))
404 }
405 }
406 #[doc = "`InstantiateObject(crate::unity_engine::gameobject::GameObject, i32, i32)` overload"]
407 fn instantiate_object(
408 self,
409 put_object: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
410 x: impl ::core::convert::Into<i32>,
411 z: impl ::core::convert::Into<i32>,
412 ) -> crate::unity_engine::gameobject::GameObject {
413 unsafe {
414 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
415 ::unity::il2cpp_call!((::unity::module_base()+0x1db4660usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
416(MapEditor)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(put_object),(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
417 }
418 }
419 #[doc = "`DeleteObject(crate::app::mapobject::MapObject)` overload"]
420 fn delete_object(self, put_object: impl ::core::convert::Into<crate::app::mapobject::MapObject>) -> () {
421 unsafe {
422 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
423 ::unity::il2cpp_call!((::unity::module_base()+0x1db6360usize)as*mut u8,();
424(MapEditor)__receiver,(crate::app::mapobject::MapObject)::core::convert::Into::into(put_object))
425 }
426 }
427 #[doc = "`DeleteObject(crate::unity_engine::gameobject::GameObject)` overload"]
428 fn delete_object_2(self, put_object: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> () {
429 unsafe {
430 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
431 ::unity::il2cpp_call!((::unity::module_base()+0x1db5ec0usize)as*mut u8,();
432(MapEditor)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(put_object))
433 }
434 }
435 #[doc = "`TryRotateObject(i32, i32, bool)` overload"]
436 fn try_rotate_object(
437 self,
438 x: impl ::core::convert::Into<i32>,
439 z: impl ::core::convert::Into<i32>,
440 is_reverse: impl ::core::convert::Into<bool>,
441 ) -> bool {
442 unsafe {
443 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
444 ::unity::il2cpp_call!((::unity::module_base()+0x1db63f0usize)as*mut u8,bool;
445(MapEditor)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z),(bool)::core::convert::Into::into(is_reverse))
446 }
447 }
448 #[doc = "`AddRotateObjectCommand(i32, i32, i32, i32)` overload"]
449 fn add_rotate_object_command(
450 self,
451 x: impl ::core::convert::Into<i32>,
452 z: impl ::core::convert::Into<i32>,
453 prev_rotate: impl ::core::convert::Into<i32>,
454 next_rotate: impl ::core::convert::Into<i32>,
455 ) -> () {
456 unsafe {
457 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
458 ::unity::il2cpp_call!((::unity::module_base()+0x1db65d0usize)as*mut u8,();
459(MapEditor)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z),(i32)::core::convert::Into::into(prev_rotate),(i32)::core::convert::Into::into(next_rotate))
460 }
461 }
462 #[doc = "`GetRotate(i32, i32)` overload"]
463 fn get_rotate(self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> i32 {
464 unsafe {
465 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
466 ::unity::il2cpp_call!((::unity::module_base()+0x1db5de0usize)as*mut u8,i32;
467(MapEditor)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
468 }
469 }
470 #[doc = "`GetRotate(crate::unity_engine::gameobject::GameObject)` overload"]
471 fn get_rotate_2(self, game_object: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> i32 {
472 unsafe {
473 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
474 ::unity::il2cpp_call!((::unity::module_base()+0x1db6320usize)as*mut u8,i32;
475(MapEditor)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(game_object))
476 }
477 }
478 #[doc = "`SetRotate(i32, i32, i32)` overload"]
479 fn set_rotate(self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>, rotate: impl ::core::convert::Into<i32>) -> () {
480 unsafe {
481 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
482 ::unity::il2cpp_call!((::unity::module_base()+0x1db66d0usize)as*mut u8,();
483(MapEditor)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z),(i32)::core::convert::Into::into(rotate))
484 }
485 }
486 #[doc = "`SetRotate(crate::unity_engine::gameobject::GameObject, i32)` overload"]
487 fn set_rotate_2(
488 self,
489 game_object: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
490 rotate: impl ::core::convert::Into<i32>,
491 ) -> () {
492 unsafe {
493 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
494 ::unity::il2cpp_call!((::unity::module_base()+0x1db6510usize)as*mut u8,();
495(MapEditor)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(game_object),(i32)::core::convert::Into::into(rotate))
496 }
497 }
498 #[doc = "`UpdateTerrain()` overload"]
499 fn update_terrain(self) -> () {
500 unsafe {
501 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
502 ::unity::il2cpp_call!((::unity::module_base()+0x1dadfe0usize)as*mut u8,();
503(MapEditor)__receiver)
504 }
505 }
506 #[doc = "`UpdateTerrain(i32, i32)` overload"]
507 fn update_terrain_2(self, pos_x: impl ::core::convert::Into<i32>, pos_z: impl ::core::convert::Into<i32>) -> () {
508 unsafe {
509 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
510 ::unity::il2cpp_call!((::unity::module_base()+0x1db48e0usize)as*mut u8,();
511(MapEditor)__receiver,(i32)::core::convert::Into::into(pos_x),(i32)::core::convert::Into::into(pos_z))
512 }
513 }
514 #[doc = "`UpdateTerrainImpl()` overload"]
515 fn update_terrain_impl(self) -> () {
516 unsafe {
517 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
518 ::unity::il2cpp_call!((::unity::module_base()+0x1db6790usize)as*mut u8,();
519(MapEditor)__receiver)
520 }
521 }
522 #[doc = "`Dump()` overload"]
523 fn dump(self) -> () {
524 unsafe {
525 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
526 ::unity::il2cpp_call!((::unity::module_base()+0x1db6b10usize)as*mut u8,();
527(MapEditor)__receiver)
528 }
529 }
530 #[doc = "`TryCreateVersusObject(i32, i32, i32, bool, bool)` overload"]
531 fn try_create_versus_object(
532 self,
533 x: impl ::core::convert::Into<i32>,
534 z: impl ::core::convert::Into<i32>,
535 key: impl ::core::convert::Into<i32>,
536 is_opponent: impl ::core::convert::Into<bool>,
537 is_update: impl ::core::convert::Into<bool>,
538 ) -> crate::unity_engine::gameobject::GameObject {
539 unsafe {
540 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
541 ::unity::il2cpp_call!((::unity::module_base()+0x1dadd30usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
542(MapEditor)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z),(i32)::core::convert::Into::into(key),(bool)::core::convert::Into::into(is_opponent),(bool)::core::convert::Into::into(is_update))
543 }
544 }
545 #[doc = "`ClearObjectOnSortie()` overload"]
546 fn clear_object_on_sortie(self) -> () {
547 unsafe {
548 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
549 ::unity::il2cpp_call!((::unity::module_base()+0x1db6dc0usize)as*mut u8,();
550(MapEditor)__receiver)
551 }
552 }
553 #[doc = "`SaveObjects()` overload"]
554 fn save_objects(self) -> () {
555 unsafe {
556 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
557 ::unity::il2cpp_call!((::unity::module_base()+0x1db6ef0usize)as*mut u8,();
558(MapEditor)__receiver)
559 }
560 }
561 #[doc = "`LoadObjects()` overload"]
562 fn load_objects(self) -> () {
563 unsafe {
564 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
565 ::unity::il2cpp_call!((::unity::module_base()+0x1db7260usize)as*mut u8,();
566(MapEditor)__receiver)
567 }
568 }
569 #[doc = "`LoadRotateAfterLoadObjects()` overload"]
570 fn load_rotate_after_load_objects(self) -> () {
571 unsafe {
572 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
573 ::unity::il2cpp_call!((::unity::module_base()+0x1db74b0usize)as*mut u8,();
574(MapEditor)__receiver)
575 }
576 }
577 #[doc = "`SaveCasual(i32)` overload"]
578 fn save_casual(self, stage: impl ::core::convert::Into<i32>) -> () {
579 unsafe {
580 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
581 ::unity::il2cpp_call!((::unity::module_base()+0x1db7db0usize)as*mut u8,();
582(MapEditor)__receiver,(i32)::core::convert::Into::into(stage))
583 }
584 }
585 #[doc = "`LoadCasual(i32)` overload"]
586 fn load_casual(self, stage: impl ::core::convert::Into<i32>) -> () {
587 unsafe {
588 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
589 ::unity::il2cpp_call!((::unity::module_base()+0x1db80d0usize)as*mut u8,();
590(MapEditor)__receiver,(i32)::core::convert::Into::into(stage))
591 }
592 }
593 #[doc = "`.ctor()` overload"]
594 fn ctor(self) -> () {
595 unsafe {
596 let __receiver = <MapEditor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
597 ::unity::il2cpp_call!((::unity::module_base()+0x1db83e0usize)as*mut u8,();
598(MapEditor)__receiver)
599 }
600 }
601}
602
603#[cfg(feature = "app-mapeditor")]
604impl<__T: IMapEditor> IMapEditorMethods for __T {}
605
606#[cfg(feature = "app-mapeditor")]
607impl MapEditor {
608 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
609 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
610 }
611
612 pub fn calc_key_method_info() -> &'static ::unity::il2cpp::MethodInfo {
613 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
614 }
615
616 pub fn find_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
617 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
618 }
619
620 pub fn find_object_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
621 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
622 }
623
624 pub fn find_object_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
625 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
626 }
627
628 pub fn get_terrain_method_info() -> &'static ::unity::il2cpp::MethodInfo {
629 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
630 }
631
632 pub fn get_terrain_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
633 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
634 }
635
636 pub fn for_each_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
637 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
638 }
639
640 pub fn get_size_x_method_info() -> &'static ::unity::il2cpp::MethodInfo {
641 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
642 }
643
644 pub fn get_size_z_method_info() -> &'static ::unity::il2cpp::MethodInfo {
645 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
646 }
647
648 pub fn get_edit_object_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
649 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
650 }
651
652 pub fn get_edit_object_count_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
653 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
654 }
655
656 pub fn get_category_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
657 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
658 }
659
660 pub fn contains_settable_area_method_info() -> &'static ::unity::il2cpp::MethodInfo {
661 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
662 }
663
664 pub fn is_opponent_area_method_info() -> &'static ::unity::il2cpp::MethodInfo {
665 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
666 }
667
668 pub fn can_create_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
669 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
670 }
671
672 pub fn show_grid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
673 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
674 }
675
676 pub fn hide_grid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
677 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
678 }
679
680 pub fn update_grid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
681 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
682 }
683
684 pub fn get_map_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
685 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
686 }
687
688 pub fn try_create_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
689 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
690 }
691
692 pub fn try_create_object_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
693 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
694 }
695
696 pub fn try_delete_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
697 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
698 }
699
700 pub fn try_replace_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
701 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
702 }
703
704 pub fn can_replace_method_info() -> &'static ::unity::il2cpp::MethodInfo {
705 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
706 }
707
708 pub fn clear_object_all_method_info() -> &'static ::unity::il2cpp::MethodInfo {
709 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
710 }
711
712 pub fn instantiate_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
713 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
714 }
715
716 pub fn delete_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
717 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
718 }
719
720 pub fn delete_object_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
721 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
722 }
723
724 pub fn try_rotate_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
725 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
726 }
727
728 pub fn add_rotate_object_command_method_info() -> &'static ::unity::il2cpp::MethodInfo {
729 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
730 }
731
732 pub fn get_rotate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
733 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
734 }
735
736 pub fn get_rotate_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
737 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
738 }
739
740 pub fn set_rotate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
741 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
742 }
743
744 pub fn set_rotate_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
745 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[34]
746 }
747
748 pub fn update_terrain_method_info() -> &'static ::unity::il2cpp::MethodInfo {
749 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[35]
750 }
751
752 pub fn update_terrain_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
753 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[36]
754 }
755
756 pub fn update_terrain_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
757 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[37]
758 }
759
760 pub fn play_put_sound_method_info() -> &'static ::unity::il2cpp::MethodInfo {
761 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[38]
762 }
763
764 pub fn play_destroy_sound_method_info() -> &'static ::unity::il2cpp::MethodInfo {
765 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[39]
766 }
767
768 pub fn set_play_sound_method_info() -> &'static ::unity::il2cpp::MethodInfo {
769 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[40]
770 }
771
772 pub fn dump_method_info() -> &'static ::unity::il2cpp::MethodInfo {
773 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[41]
774 }
775
776 pub fn try_create_versus_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
777 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[42]
778 }
779
780 pub fn clear_object_on_sortie_method_info() -> &'static ::unity::il2cpp::MethodInfo {
781 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[43]
782 }
783
784 pub fn save_objects_method_info() -> &'static ::unity::il2cpp::MethodInfo {
785 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[44]
786 }
787
788 pub fn load_objects_method_info() -> &'static ::unity::il2cpp::MethodInfo {
789 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[45]
790 }
791
792 pub fn load_rotate_after_load_objects_method_info() -> &'static ::unity::il2cpp::MethodInfo {
793 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[46]
794 }
795
796 pub fn serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
797 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[47]
798 }
799
800 pub fn deserialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
801 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[48]
802 }
803
804 pub fn save_casual_method_info() -> &'static ::unity::il2cpp::MethodInfo {
805 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[49]
806 }
807
808 pub fn load_casual_method_info() -> &'static ::unity::il2cpp::MethodInfo {
809 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[50]
810 }
811
812 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
813 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[51]
814 }
815
816 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
817 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[52]
818 }
819}
820
821#[cfg(feature = "app-mapeditor")]
822impl MapEditor {
823 #[doc = "`.ctor()` — no args"]
824 pub fn new() -> Self {
825 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
826 panic!(
827 "{}
828::{}
829 failed to instantiate",
830 ::core::stringify!(MapEditor),
831 ::core::stringify!(new),
832 )
833 });
834 <Self as IMapEditorMethods>::ctor(this);
835 this
836 }
837}
838
839#[cfg(feature = "app-mapeditor")]
840#[doc(hidden)]
841pub mod prelude {
842 pub use super::{IMapEditor, IMapEditorMethods, IMapEditor_EditObject, IMapEditor_EditObjectMethods, MapEditor, MapEditor_EditObject};
843 #[cfg(feature = "app-singletonmonobehaviour_1")]
844 pub use crate::app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1Methods;
845 #[cfg(feature = "system-object")]
846 pub use crate::system::object::IObjectMethods;
847 #[cfg(feature = "unity_engine-behaviour")]
848 pub use crate::unity_engine::behaviour::IBehaviourMethods;
849 #[cfg(feature = "unity_engine-component")]
850 pub use crate::unity_engine::component::IComponentMethods;
851 #[cfg(feature = "unity_engine-monobehaviour")]
852 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
853 #[cfg(feature = "unity_engine-object_2")]
854 pub use crate::unity_engine::object_2::IObject_2Methods;
855 pub use crate::{
856 app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1,
857 system::object::IObject,
858 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
859 };
860}