Skip to main content

engage/generated/combat/
combatlocationsky.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-combatlocationsky-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        combat::basecombatlocation::{BaseCombatLocation, IBaseCombatLocation},
10        system::object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/combatlocationsky/CombatLocationSky.md"))]
14    #[::unity::class(namespace = "Combat", name = "CombatLocationSky")]
15    #[parent(crate::combat::basecombatlocation::BaseCombatLocation)]
16    pub struct CombatLocationSky {
17        #[offset(144)]
18        #[rename(name = "RotateTable")]
19        pub rotate_table: ::unity::Array<i32>,
20    }
21}
22
23#[cfg(feature = "combat-combatlocationsky-types")]
24pub use __types::*;
25
26#[cfg(feature = "combat-combatlocationsky")]
27pub trait ICombatLocationSkyMethods: ICombatLocationSky {
28    #[doc = "`.ctor(crate::combat::combatrecord::CombatRecord)` overload"]
29    fn ctor(self, record: impl ::core::convert::Into<crate::combat::combatrecord::CombatRecord>) -> () {
30        unsafe {
31            let __receiver = <CombatLocationSky as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32            ::unity::il2cpp_call!((::unity::module_base()+0x1eb6850usize)as*mut u8,();
33(CombatLocationSky)__receiver,(crate::combat::combatrecord::CombatRecord)::core::convert::Into::into(record))
34        }
35    }
36    #[doc = "`get_RoughPosCount()` overload"]
37    fn get_rough_pos_count(self) -> i32 {
38        unsafe {
39            let __receiver = <CombatLocationSky as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40            {
41                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
42                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
43                    panic!(
44                        "unity: virtual slot {}
45 out of range (vtable len {}
46) on the runtime class behind {}
47 (method `{}
48`)",
49                        6usize,
50                        __vt.len(),
51                        <CombatLocationSky as ::unity::ClassIdentity>::NAME,
52                        "get_RoughPosCount",
53                    )
54                });
55                let __inner: extern "C" fn(CombatLocationSky, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
56                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
57                __inner(__receiver, __mi)
58            }
59        }
60    }
61    #[doc = "`SetRoughPos(i32)` overload"]
62    fn set_rough_pos(self, try_count: impl ::core::convert::Into<i32>) -> () {
63        unsafe {
64            let __receiver = <CombatLocationSky as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
65            {
66                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
67                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
68                    panic!(
69                        "unity: virtual slot {}
70 out of range (vtable len {}
71) on the runtime class behind {}
72 (method `{}
73`)",
74                        7usize,
75                        __vt.len(),
76                        <CombatLocationSky as ::unity::ClassIdentity>::NAME,
77                        "SetRoughPos",
78                    )
79                });
80                let __inner: extern "C" fn(CombatLocationSky, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
81                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
82                __inner(__receiver, ::core::convert::Into::into(try_count), __mi)
83            }
84        }
85    }
86    #[doc = "`get_PatternCount()` overload"]
87    fn get_pattern_count(self) -> i32 {
88        unsafe {
89            let __receiver = <CombatLocationSky as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
90            {
91                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
92                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
93                    panic!(
94                        "unity: virtual slot {}
95 out of range (vtable len {}
96) on the runtime class behind {}
97 (method `{}
98`)",
99                        8usize,
100                        __vt.len(),
101                        <CombatLocationSky as ::unity::ClassIdentity>::NAME,
102                        "get_PatternCount",
103                    )
104                });
105                let __inner: extern "C" fn(CombatLocationSky, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
106                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
107                __inner(__receiver, __mi)
108            }
109        }
110    }
111    #[doc = "`SetBattlePatern(i32)` overload"]
112    fn set_battle_patern(self, pattern: impl ::core::convert::Into<i32>) -> () {
113        unsafe {
114            let __receiver = <CombatLocationSky as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
115            {
116                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
117                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
118                    panic!(
119                        "unity: virtual slot {}
120 out of range (vtable len {}
121) on the runtime class behind {}
122 (method `{}
123`)",
124                        9usize,
125                        __vt.len(),
126                        <CombatLocationSky as ::unity::ClassIdentity>::NAME,
127                        "SetBattlePatern",
128                    )
129                });
130                let __inner: extern "C" fn(CombatLocationSky, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
131                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
132                __inner(__receiver, ::core::convert::Into::into(pattern), __mi)
133            }
134        }
135    }
136    #[doc = "`CalcLocation()` overload"]
137    fn calc_location(self) -> () {
138        unsafe {
139            let __receiver = <CombatLocationSky as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
140            {
141                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
142                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
143                    panic!(
144                        "unity: virtual slot {}
145 out of range (vtable len {}
146) on the runtime class behind {}
147 (method `{}
148`)",
149                        10usize,
150                        __vt.len(),
151                        <CombatLocationSky as ::unity::ClassIdentity>::NAME,
152                        "CalcLocation",
153                    )
154                });
155                let __inner: extern "C" fn(CombatLocationSky, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
156                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
157                __inner(__receiver, __mi)
158            }
159        }
160    }
161}
162
163#[cfg(feature = "combat-combatlocationsky")]
164impl<__T: ICombatLocationSky> ICombatLocationSkyMethods for __T {}
165
166#[cfg(feature = "combat-combatlocationsky")]
167impl CombatLocationSky {
168    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
169        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
170    }
171
172    pub fn get_rough_pos_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
174    }
175
176    pub fn set_rough_pos_method_info() -> &'static ::unity::il2cpp::MethodInfo {
177        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
178    }
179
180    pub fn get_pattern_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
182    }
183
184    pub fn set_battle_patern_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
186    }
187
188    pub fn calc_location_method_info() -> &'static ::unity::il2cpp::MethodInfo {
189        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
190    }
191}
192
193#[cfg(feature = "combat-combatlocationsky")]
194impl CombatLocationSky {
195    #[doc = "Direct (non-virtual) call to `CombatLocationSky`'s own `get_RoughPosCount`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
196    pub unsafe fn get_rough_pos_count(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
197        let __mi = Self::get_rough_pos_count_method_info();
198        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
199        __inner(this.into(), ::core::option::Option::None)
200    }
201
202    #[doc = "Direct (non-virtual) call to `CombatLocationSky`'s own `SetRoughPos`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
203    pub unsafe fn set_rough_pos(this: impl ::core::convert::Into<::unity::IlInstance>, try_count: i32) -> () {
204        let __mi = Self::set_rough_pos_method_info();
205        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
206        __inner(this.into(), try_count, ::core::option::Option::None)
207    }
208
209    #[doc = "Direct (non-virtual) call to `CombatLocationSky`'s own `get_PatternCount`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
210    pub unsafe fn get_pattern_count(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
211        let __mi = Self::get_pattern_count_method_info();
212        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
213        __inner(this.into(), ::core::option::Option::None)
214    }
215
216    #[doc = "Direct (non-virtual) call to `CombatLocationSky`'s own `SetBattlePatern`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
217    pub unsafe fn set_battle_patern(this: impl ::core::convert::Into<::unity::IlInstance>, pattern: i32) -> () {
218        let __mi = Self::set_battle_patern_method_info();
219        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
220        __inner(this.into(), pattern, ::core::option::Option::None)
221    }
222
223    #[doc = "Direct (non-virtual) call to `CombatLocationSky`'s own `CalcLocation`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
224    pub unsafe fn calc_location(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
225        let __mi = Self::calc_location_method_info();
226        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
227        __inner(this.into(), ::core::option::Option::None)
228    }
229}
230
231#[cfg(feature = "combat-combatlocationsky")]
232impl CombatLocationSky {
233    #[doc = "`.ctor(crate::combat::combatrecord::CombatRecord)` — overload selector"]
234    pub fn new(record: crate::combat::combatrecord::CombatRecord) -> Self {
235        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
236            panic!(
237                "{}
238::{}
239 failed to instantiate",
240                ::core::stringify!(CombatLocationSky),
241                ::core::stringify!(new),
242            )
243        });
244        <Self as ICombatLocationSkyMethods>::ctor(this, record);
245        this
246    }
247}
248
249#[cfg(feature = "combat-combatlocationsky")]
250#[doc(hidden)]
251pub mod prelude {
252    pub use super::{CombatLocationSky, ICombatLocationSky, ICombatLocationSkyMethods};
253    #[cfg(feature = "combat-basecombatlocation")]
254    pub use crate::combat::basecombatlocation::IBaseCombatLocationMethods;
255    #[cfg(feature = "system-object")]
256    pub use crate::system::object::IObjectMethods;
257    pub use crate::{combat::basecombatlocation::IBaseCombatLocation, system::object::IObject};
258}