Skip to main content

engage/generated/root/
mappanelbase_1.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-mappanelbase_1-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::{
11            delegate::{Delegate, IDelegate},
12            multicastdelegate::{IMulticastDelegate, MulticastDelegate},
13            object::{IObject, Object},
14            r#enum::{Enum, IEnum},
15            valuetype::{IValueType, ValueType},
16        },
17        unity_engine::{
18            behaviour::{Behaviour, IBehaviour},
19            component::{Component, IComponent},
20            monobehaviour::{IMonoBehaviour, MonoBehaviour},
21            object_2::{IObject_2, Object_2},
22        },
23    };
24
25    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/mappanelbase_1/MapPanelBase_1.md"))]
26    #[::unity::class(namespace = "", name = "MapPanelBase`1")]
27    #[parent(crate::app::singletonmonobehaviour_1::SingletonMonoBehaviour_1<T0>)]
28    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
29    #[parent(crate::unity_engine::behaviour::Behaviour)]
30    #[parent(crate::unity_engine::component::Component)]
31    #[parent(crate::unity_engine::object_2::Object_2)]
32    #[parent(crate::system::object::Object)]
33    pub struct MapPanelBase_1<T0: ::unity::ClassIdentity> {
34        #[rename(name = "m_Materials")]
35        pub m_materials: ::unity::Array<crate::unity_engine::material::Material>,
36        #[rename(name = "m_Mesh")]
37        pub m_mesh: crate::app::map::Map_CellMesh,
38        #[rename(name = "m_HalfTexelX")]
39        pub m_half_texel_x: f32,
40        #[rename(name = "m_HalfTexelY")]
41        pub m_half_texel_y: f32,
42        #[rename(name = "m_RendererMaterials")]
43        pub m_renderer_materials: ::unity::Array<crate::unity_engine::material::Material>,
44        #[static_field]
45        #[rename(name = "CheckImageOffsetXTable")]
46        pub check_image_offset_x_table: ::unity::Array<i32>,
47        #[static_field]
48        #[rename(name = "CheckIMageOffsetZTable")]
49        pub check_i_mage_offset_z_table: ::unity::Array<i32>,
50    }
51
52    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/mappanelbase_1/MapPanelBase_1_PanelType.md"))]
53    #[repr(C)]
54    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
55    pub struct MapPanelBase_1_PanelType<T0: ::unity::ClassIdentity> {
56        pub value: i32,
57        pub _phantom: ::core::marker::PhantomData<(T0)>,
58    }
59    impl<T0: ::unity::ClassIdentity> ::unity::ClassIdentity for MapPanelBase_1_PanelType<T0> {
60        const NAME: &'static str = "MapPanelBase`1.PanelType";
61        const NAMESPACE: &'static str = "";
62
63        fn class() -> ::unity::Class {
64            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
65            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
66        }
67    }
68    impl<T0: ::unity::ClassIdentity> ::unity::IlType for MapPanelBase_1_PanelType<T0> {
69        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
70            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
71        }
72    }
73    impl<T0: ::unity::ClassIdentity> MapPanelBase_1_PanelType<T0> {
74        pub fn r#move() -> Self {
75            Self {
76                value: 0,
77                _phantom: ::core::marker::PhantomData,
78            }
79        }
80
81        pub fn attack() -> Self {
82            Self {
83                value: 1,
84                _phantom: ::core::marker::PhantomData,
85            }
86        }
87
88        pub fn rod() -> Self {
89            Self {
90                value: 2,
91                _phantom: ::core::marker::PhantomData,
92            }
93        }
94
95        pub fn talk() -> Self {
96            Self {
97                value: 3,
98                _phantom: ::core::marker::PhantomData,
99            }
100        }
101
102        pub fn target() -> Self {
103            Self {
104                value: 4,
105                _phantom: ::core::marker::PhantomData,
106            }
107        }
108
109        pub fn rescuer() -> Self {
110            Self {
111                value: 5,
112                _phantom: ::core::marker::PhantomData,
113            }
114        }
115    }
116
117    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/mappanelbase_1/MapPanelBase_1_ImageGetFunction.md"))]
118    #[::unity::class(namespace = "", name = "MapPanelBase`1.ImageGetFunction")]
119    #[parent(crate::system::multicastdelegate::MulticastDelegate)]
120    #[parent(crate::system::delegate::Delegate)]
121    #[parent(crate::system::object::Object)]
122    pub struct MapPanelBase_1_ImageGetFunction<T0: ::unity::ClassIdentity> {}
123}
124
125#[cfg(feature = "root-mappanelbase_1-types")]
126pub use __types::*;
127
128#[cfg(feature = "root-mappanelbase_1")]
129#[::unity::methods]
130impl<T0: ::unity::ClassIdentity> MapPanelBase_1<T0> {
131    #[doc = "`Awake()` overload"]
132    #[method(name = "Awake", args = 0)]
133    pub fn awake(self) -> ();
134
135    #[doc = "`GetDensity()` overload"]
136    #[method(name = "GetDensity", args = 0)]
137    pub fn get_density(self) -> crate::unity_engine::color::Color;
138
139    #[doc = "`GetSourceMaterials()` overload"]
140    #[method(name = "GetSourceMaterials", args = 0)]
141    pub fn get_source_materials(self) -> ::unity::Array<crate::unity_engine::material::Material>;
142
143    #[doc = "`get_Mesh()` overload"]
144    #[method(name = "get_Mesh", args = 0)]
145    pub fn get_mesh(self) -> crate::unity_engine::mesh::Mesh;
146
147    #[doc = "`get_DynamicMesh()` overload"]
148    #[method(name = "get_DynamicMesh", args = 0)]
149    pub fn get_dynamic_mesh(self) -> crate::app::dynamicmesh::DynamicMesh;
150
151    #[doc = "`get_SubMeshCount()` overload"]
152    #[method(name = "get_SubMeshCount", args = 0)]
153    pub fn get_sub_mesh_count(self) -> i32;
154
155    #[doc = "`get_Materials()` overload"]
156    #[method(name = "get_Materials", args = 0)]
157    pub fn get_materials(self) -> ::unity::Array<crate::unity_engine::material::Material>;
158
159    #[doc = "`GetMapPosY(f32, f32)` overload"]
160    #[method(name = "GetMapPosY", args = 2)]
161    pub fn get_map_pos_y(self, x: f32, z: f32) -> f32;
162
163    #[doc = "`GetMapPos(f32, f32)` overload"]
164    #[method(name = "GetMapPos", args = 2)]
165    pub fn get_map_pos(self, x: f32, z: f32) -> crate::unity_engine::vector3::Vector3;
166
167    #[doc = "`Show()` overload"]
168    #[method(name = "Show", args = 0)]
169    pub fn show() -> ();
170
171    #[doc = "`GetPanelAlpha()` overload"]
172    #[method(name = "GetPanelAlpha", args = 0)]
173    pub fn get_panel_alpha() -> f32;
174
175    #[doc = "`Hide()` overload"]
176    #[method(name = "Hide", args = 0)]
177    pub fn hide() -> ();
178
179    #[doc = "`IsConnect(i32, i32, i32, i32)` overload"]
180    #[method(name = "IsConnect", args = 4)]
181    pub fn is_connect(self, x1: i32, z1: i32, x2: i32, z2: i32) -> bool;
182
183    #[doc = "`CheckImage(crate::root::mappanelbase_1::MapPanelBase_1_ImageGetFunction<T0>, i32, i32, bool)` overload"]
184    #[method(name = "CheckImage", args = 4)]
185    pub fn check_image(self, func: crate::root::mappanelbase_1::MapPanelBase_1_ImageGetFunction<T0>, x: i32, z: i32, step_check: bool) -> u32;
186
187    #[doc = "`CheckWholeDangerImageForGunner(crate::root::mappanelbase_1::MapPanelBase_1_ImageGetFunction<T0>, crate::root::mappanelbase_1::MapPanelBase_1_ImageGetFunction<T0>, crate::root::mappanelbase_1::MapPanelBase_1_ImageGetFunction<T0>, i32, i32, bool)` overload"]
188    #[method(name = "CheckWholeDangerImageForGunner", args = 6)]
189    pub fn check_whole_danger_image_for_gunner(
190        self,
191        gunner: crate::root::mappanelbase_1::MapPanelBase_1_ImageGetFunction<T0>,
192        attack: crate::root::mappanelbase_1::MapPanelBase_1_ImageGetFunction<T0>,
193        rod: crate::root::mappanelbase_1::MapPanelBase_1_ImageGetFunction<T0>,
194        x: i32,
195        z: i32,
196        is_image_filled: bool,
197    ) -> u32;
198
199    #[doc = "`CheckImageNotImmobile(crate::root::mappanelbase_1::MapPanelBase_1_ImageGetFunction<T0>, i32, i32)` overload"]
200    #[method(name = "CheckImageNotImmobile", args = 3)]
201    pub fn check_image_not_immobile(self, func: crate::root::mappanelbase_1::MapPanelBase_1_ImageGetFunction<T0>, x: i32, z: i32) -> u32;
202
203    #[doc = "`CheckImageForAct(crate::root::mappanelbase_1::MapPanelBase_1_ImageGetFunction<T0>, crate::root::mappanelbase_1::MapPanelBase_1_ImageGetFunction<T0>, i32, i32, bool)` overload"]
204    #[method(name = "CheckImageForAct", args = 5)]
205    pub fn check_image_for_act(
206        self,
207        image_func: crate::root::mappanelbase_1::MapPanelBase_1_ImageGetFunction<T0>,
208        move_func: crate::root::mappanelbase_1::MapPanelBase_1_ImageGetFunction<T0>,
209        x: i32,
210        z: i32,
211        is_consider_move: bool,
212    ) -> u32;
213
214    #[doc = "`CalcUV(u32, *mutf32, *mutf32)` overload"]
215    #[method(name = "CalcUV", args = 3)]
216    pub fn calc_uv(self, mask: u32, u: *mut f32, v: *mut f32) -> ();
217
218    #[doc = "`AddCell(i32, i32, crate::unity_engine::color::Color)` overload"]
219    #[method(name = "AddCell", args = 3)]
220    pub fn add_cell(self, x: i32, z: i32, color: crate::unity_engine::color::Color) -> ();
221
222    #[doc = "`AddCell(i32, i32, f32, f32, crate::unity_engine::color::Color, f32)` overload"]
223    #[method(name = "AddCell", args = 6)]
224    pub fn add_cell_2(self, x: i32, z: i32, u: f32, v: f32, color: crate::unity_engine::color::Color, distance: f32) -> ();
225
226    #[doc = "`AddCell(i32, i32, u32, crate::unity_engine::color::Color, f32)` overload"]
227    #[method(name = "AddCell", args = 5)]
228    pub fn add_cell_3(self, x: i32, z: i32, mask: u32, color: crate::unity_engine::color::Color, distance: f32) -> ();
229
230    #[doc = "`AddCell(crate::root::mappanelbase_1::MapPanelBase_1_ImageGetFunction<T0>, i32, i32, crate::unity_engine::color::Color)` overload"]
231    #[method(name = "AddCell", args = 4)]
232    pub fn add_cell_4(
233        self,
234        func: crate::root::mappanelbase_1::MapPanelBase_1_ImageGetFunction<T0>,
235        x: i32,
236        z: i32,
237        color: crate::unity_engine::color::Color,
238    ) -> ();
239
240    #[doc = "`GetU0(f32, i32)` overload"]
241    #[method(name = "GetU0", args = 2)]
242    pub fn get_u0(self, unit: f32, index: i32) -> f32;
243
244    #[doc = "`GetU2(f32, i32)` overload"]
245    #[method(name = "GetU2", args = 2)]
246    pub fn get_u2(self, unit: f32, index: i32) -> f32;
247
248    #[doc = "`GetV0(f32, i32)` overload"]
249    #[method(name = "GetV0", args = 2)]
250    pub fn get_v0(self, unit: f32, index: i32) -> f32;
251
252    #[doc = "`GetV2(f32, i32)` overload"]
253    #[method(name = "GetV2", args = 2)]
254    pub fn get_v2(self, unit: f32, index: i32) -> f32;
255
256    #[doc = "`GetUV0(f32, f32, i32, i32)` overload"]
257    #[method(name = "GetUV0", args = 4)]
258    pub fn get_uv0(self, unit_x: f32, unit_y: f32, index_x: i32, index_y: i32) -> crate::unity_engine::vector2::Vector2;
259
260    #[doc = "`GetUV2(f32, f32, i32, i32)` overload"]
261    #[method(name = "GetUV2", args = 4)]
262    pub fn get_uv2(self, unit_x: f32, unit_y: f32, index_x: i32, index_y: i32) -> crate::unity_engine::vector2::Vector2;
263
264    #[doc = "`AddCell(i32, i32, crate::unity_engine::color::Color, crate::root::mappanelbase_1::MapPanelBase_1_PanelType<T0>, f32)` overload"]
265    #[method(name = "AddCell", args = 5)]
266    pub fn add_cell_5(
267        self,
268        x: i32,
269        z: i32,
270        color: crate::unity_engine::color::Color,
271        panel: crate::root::mappanelbase_1::MapPanelBase_1_PanelType<T0>,
272        distance: f32,
273    ) -> ();
274
275    #[doc = "`SetMaterialFloat(::unity::Il2CppString, f32)` overload"]
276    #[method(name = "SetMaterialFloat", args = 2)]
277    pub fn set_material_float(self, keyword: ::unity::Il2CppString, value: f32) -> ();
278
279    #[doc = "`SetMaterialColor(f32, f32, f32, f32)` overload"]
280    #[method(name = "SetMaterialColor", args = 4)]
281    pub fn set_material_color(self, r: f32, g: f32, b: f32, a: f32) -> ();
282
283    #[doc = "`SetMaterialAlpha(f32)` overload"]
284    #[method(name = "SetMaterialAlpha", args = 1)]
285    pub fn set_material_alpha(self, a: f32) -> ();
286
287    #[doc = "`SetMaterialAlpha(i32, f32)` overload"]
288    #[method(name = "SetMaterialAlpha", args = 2)]
289    pub fn set_material_alpha_2(self, index: i32, a: f32) -> ();
290
291    #[doc = "`UpdateTexel()` overload"]
292    #[method(name = "UpdateTexel", args = 0)]
293    pub fn update_texel(self) -> ();
294
295    #[doc = "`Clear()` overload"]
296    #[method(name = "Clear", args = 0)]
297    pub fn clear(self) -> ();
298
299    #[doc = "`.ctor()` overload"]
300    #[method(name = ".ctor", args = 0)]
301    pub fn ctor(self) -> ();
302
303    #[doc = "`.cctor()` overload"]
304    #[method(name = ".cctor", args = 0)]
305    pub fn cctor() -> ();
306}
307
308#[cfg(feature = "root-mappanelbase_1")]
309impl<T0: ::unity::ClassIdentity> MapPanelBase_1<T0> {
310    #[doc = "`.ctor()` — no args"]
311    pub fn new() -> Self {
312        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
313            panic!(
314                "{}
315::{}
316 failed to instantiate",
317                ::core::stringify!(MapPanelBase_1),
318                ::core::stringify!(new),
319            )
320        });
321        <Self as IMapPanelBase_1Methods<T0>>::ctor(this);
322        this
323    }
324}
325
326#[cfg(feature = "root-mappanelbase_1")]
327#[::unity::methods]
328impl<T0: ::unity::ClassIdentity> MapPanelBase_1_ImageGetFunction<T0> {
329    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
330    #[method(name = ".ctor", args = 2)]
331    pub fn ctor(self, object: crate::system::object::Object, method: ::unity::IntPtr) -> ();
332
333    #[doc = "`Invoke(i32, i32)` overload"]
334    #[method(name = "Invoke", args = 2)]
335    pub fn invoke(self, x: i32, z: i32) -> bool;
336}
337
338#[cfg(feature = "root-mappanelbase_1")]
339impl<T0: ::unity::ClassIdentity> MapPanelBase_1_ImageGetFunction<T0> {
340    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
341    pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
342        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
343            panic!(
344                "{}
345::{}
346 failed to instantiate",
347                ::core::stringify!(MapPanelBase_1_ImageGetFunction),
348                ::core::stringify!(new),
349            )
350        });
351        <Self as IMapPanelBase_1_ImageGetFunctionMethods<T0>>::ctor(this, object, method);
352        this
353    }
354}
355
356#[cfg(feature = "root-mappanelbase_1")]
357#[doc(hidden)]
358pub mod prelude {
359    pub use super::{
360        IMapPanelBase_1, IMapPanelBase_1Methods, IMapPanelBase_1_ImageGetFunction, IMapPanelBase_1_ImageGetFunctionMethods, MapPanelBase_1,
361        MapPanelBase_1_ImageGetFunction, MapPanelBase_1_PanelType,
362    };
363    #[cfg(feature = "app-singletonmonobehaviour_1")]
364    pub use crate::app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1Methods;
365    #[cfg(feature = "system-delegate")]
366    pub use crate::system::delegate::IDelegateMethods;
367    #[cfg(feature = "system-multicastdelegate")]
368    pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
369    #[cfg(feature = "system-object")]
370    pub use crate::system::object::IObjectMethods;
371    #[cfg(feature = "system-enum")]
372    pub use crate::system::r#enum::IEnumMethods;
373    #[cfg(feature = "system-valuetype")]
374    pub use crate::system::valuetype::IValueTypeMethods;
375    #[cfg(feature = "unity_engine-behaviour")]
376    pub use crate::unity_engine::behaviour::IBehaviourMethods;
377    #[cfg(feature = "unity_engine-component")]
378    pub use crate::unity_engine::component::IComponentMethods;
379    #[cfg(feature = "unity_engine-monobehaviour")]
380    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
381    #[cfg(feature = "unity_engine-object_2")]
382    pub use crate::unity_engine::object_2::IObject_2Methods;
383    pub use crate::{
384        app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1,
385        system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject, r#enum::IEnum, valuetype::IValueType},
386        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
387    };
388}