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