engage/generated/combat/
combatlocationshoot.rs1#[cfg(feature = "combat-combatlocationshoot-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/combatlocationshoot/CombatLocationShoot.md"))]
14 #[::unity::class(namespace = "Combat", name = "CombatLocationShoot")]
15 #[parent(crate::combat::basecombatlocation::BaseCombatLocation)]
16 pub struct CombatLocationShoot {
17 #[offset(144)]
18 #[rename(name = "RotateTable")]
19 pub rotate_table: ::unity::Array<i32>,
20 }
21}
22
23#[cfg(feature = "combat-combatlocationshoot-types")]
24pub use __types::*;
25
26#[cfg(feature = "combat-combatlocationshoot")]
27pub trait ICombatLocationShootMethods: ICombatLocationShoot {
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 = <CombatLocationShoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32 ::unity::il2cpp_call!((::unity::module_base()+0x1eb3e80usize)as*mut u8,();
33(CombatLocationShoot)__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 = <CombatLocationShoot 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 <CombatLocationShoot as ::unity::ClassIdentity>::NAME,
52 "get_RoughPosCount",
53 )
54 });
55 let __inner: extern "C" fn(CombatLocationShoot, ::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 = <CombatLocationShoot 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 <CombatLocationShoot as ::unity::ClassIdentity>::NAME,
77 "SetRoughPos",
78 )
79 });
80 let __inner: extern "C" fn(CombatLocationShoot, 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 = <CombatLocationShoot 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 <CombatLocationShoot as ::unity::ClassIdentity>::NAME,
102 "get_PatternCount",
103 )
104 });
105 let __inner: extern "C" fn(CombatLocationShoot, ::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 = <CombatLocationShoot 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 <CombatLocationShoot as ::unity::ClassIdentity>::NAME,
127 "SetBattlePatern",
128 )
129 });
130 let __inner: extern "C" fn(CombatLocationShoot, 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 = "`SetFlyHeight(i32)` overload"]
137 fn set_fly_height(self, side: impl ::core::convert::Into<i32>) -> () {
138 unsafe {
139 let __receiver = <CombatLocationShoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
140 ::unity::il2cpp_call!((::unity::module_base()+0x1eb4820usize)as*mut u8,();
141(CombatLocationShoot)__receiver,(i32)::core::convert::Into::into(side))
142 }
143 }
144 #[doc = "`CalcLocation()` overload"]
145 fn calc_location(self) -> () {
146 unsafe {
147 let __receiver = <CombatLocationShoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
148 {
149 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
150 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
151 panic!(
152 "unity: virtual slot {}
153 out of range (vtable len {}
154) on the runtime class behind {}
155 (method `{}
156`)",
157 10usize,
158 __vt.len(),
159 <CombatLocationShoot as ::unity::ClassIdentity>::NAME,
160 "CalcLocation",
161 )
162 });
163 let __inner: extern "C" fn(CombatLocationShoot, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
164 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
165 __inner(__receiver, __mi)
166 }
167 }
168 }
169}
170
171#[cfg(feature = "combat-combatlocationshoot")]
172impl<__T: ICombatLocationShoot> ICombatLocationShootMethods for __T {}
173
174#[cfg(feature = "combat-combatlocationshoot")]
175impl CombatLocationShoot {
176 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
177 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
178 }
179
180 pub fn get_rough_pos_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
182 }
183
184 pub fn set_rough_pos_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
186 }
187
188 pub fn get_pattern_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
189 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
190 }
191
192 pub fn set_battle_patern_method_info() -> &'static ::unity::il2cpp::MethodInfo {
193 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
194 }
195
196 pub fn set_fly_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
197 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
198 }
199
200 pub fn calc_location_method_info() -> &'static ::unity::il2cpp::MethodInfo {
201 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
202 }
203}
204
205#[cfg(feature = "combat-combatlocationshoot")]
206impl CombatLocationShoot {
207 #[doc = "Direct (non-virtual) call to `CombatLocationShoot`'s own `get_RoughPosCount`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
208 pub unsafe fn get_rough_pos_count(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
209 let __mi = Self::get_rough_pos_count_method_info();
210 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
211 __inner(this.into(), ::core::option::Option::None)
212 }
213
214 #[doc = "Direct (non-virtual) call to `CombatLocationShoot`'s own `SetRoughPos`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
215 pub unsafe fn set_rough_pos(this: impl ::core::convert::Into<::unity::IlInstance>, try_count: i32) -> () {
216 let __mi = Self::set_rough_pos_method_info();
217 let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
218 __inner(this.into(), try_count, ::core::option::Option::None)
219 }
220
221 #[doc = "Direct (non-virtual) call to `CombatLocationShoot`'s own `get_PatternCount`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
222 pub unsafe fn get_pattern_count(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
223 let __mi = Self::get_pattern_count_method_info();
224 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
225 __inner(this.into(), ::core::option::Option::None)
226 }
227
228 #[doc = "Direct (non-virtual) call to `CombatLocationShoot`'s own `SetBattlePatern`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
229 pub unsafe fn set_battle_patern(this: impl ::core::convert::Into<::unity::IlInstance>, pattern: i32) -> () {
230 let __mi = Self::set_battle_patern_method_info();
231 let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
232 __inner(this.into(), pattern, ::core::option::Option::None)
233 }
234
235 #[doc = "Direct (non-virtual) call to `CombatLocationShoot`'s own `CalcLocation`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
236 pub unsafe fn calc_location(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
237 let __mi = Self::calc_location_method_info();
238 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
239 __inner(this.into(), ::core::option::Option::None)
240 }
241}
242
243#[cfg(feature = "combat-combatlocationshoot")]
244impl CombatLocationShoot {
245 #[doc = "`.ctor(crate::combat::combatrecord::CombatRecord)` — overload selector"]
246 pub fn new(record: crate::combat::combatrecord::CombatRecord) -> Self {
247 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
248 panic!(
249 "{}
250::{}
251 failed to instantiate",
252 ::core::stringify!(CombatLocationShoot),
253 ::core::stringify!(new),
254 )
255 });
256 <Self as ICombatLocationShootMethods>::ctor(this, record);
257 this
258 }
259}
260
261#[cfg(feature = "combat-combatlocationshoot")]
262#[doc(hidden)]
263pub mod prelude {
264 pub use super::{CombatLocationShoot, ICombatLocationShoot, ICombatLocationShootMethods};
265 #[cfg(feature = "combat-basecombatlocation")]
266 pub use crate::combat::basecombatlocation::IBaseCombatLocationMethods;
267 #[cfg(feature = "system-object")]
268 pub use crate::system::object::IObjectMethods;
269 pub use crate::{combat::basecombatlocation::IBaseCombatLocation, system::object::IObject};
270}