Skip to main content

engage/generated/combat/
combatlocationengageattack.rs

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