Skip to main content

engage/generated/combat/
combatlocationviewer.rs

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