Skip to main content

engage/generated/combat/situation_converter/
convertbrawl.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-situation_converter-convertbrawl-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        combat::situation_converter::{
10            baseconverter::{BaseConverter, IBaseConverter},
11            converterwithut::{ConverterWithUt, IConverterWithUt},
12        },
13        system::{
14            object::{IObject, Object},
15            r#enum::{Enum, IEnum},
16            valuetype::{IValueType, ValueType},
17        },
18    };
19
20    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/situation_converter/convertbrawl/ConvertBrawl_State.md"))]
21    #[repr(C)]
22    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
23    pub struct ConvertBrawl_State {
24        pub value: i32,
25    }
26    impl ::unity::ClassIdentity for ConvertBrawl_State {
27        const NAME: &'static str = "ConvertBrawl.State";
28        const NAMESPACE: &'static str = "Combat.SituationConverter";
29
30        fn class() -> ::unity::Class {
31            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
32            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
33        }
34    }
35    impl ::unity::IlType for ConvertBrawl_State {
36        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
37            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
38        }
39    }
40    impl ConvertBrawl_State {
41        pub fn none() -> Self {
42            Self { value: 0 }
43        }
44
45        pub fn autoから初撃() -> Self {
46            Self { value: 1 }
47        }
48
49        pub fn behindから初撃() -> Self {
50            Self { value: 2 }
51        }
52    }
53
54    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/situation_converter/convertbrawl/ConvertBrawl.md"))]
55    #[::unity::class(namespace = "Combat.SituationConverter", name = "ConvertBrawl")]
56    #[parent(crate::combat::situation_converter::converterwithut::ConverterWithUt)]
57    pub struct ConvertBrawl {
58        #[offset(44)]
59        #[rename(name = "m_State")]
60        pub m_state: crate::combat::situation_converter::convertbrawl::ConvertBrawl_State,
61    }
62}
63
64#[cfg(feature = "combat-situation_converter-convertbrawl-types")]
65pub use __types::*;
66
67#[cfg(feature = "combat-situation_converter-convertbrawl")]
68pub trait IConvertBrawlMethods: IConvertBrawl {
69    #[doc = "`.ctor(crate::combat::situation_converter::cameradataset::CameraDataSet)` overload"]
70    fn ctor(self, data: impl ::core::convert::Into<crate::combat::situation_converter::cameradataset::CameraDataSet>) -> () {
71        unsafe {
72            let __receiver = <ConvertBrawl as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
73            ::unity::il2cpp_call!((::unity::module_base()+0x253f6b0usize)as*mut u8,();
74(ConvertBrawl)__receiver,(crate::combat::situation_converter::cameradataset::CameraDataSet)::core::convert::Into::into(data))
75        }
76    }
77    #[doc = "`OnBegin()` overload"]
78    fn on_begin(self) -> crate::combat::cameraposition::CameraPosition {
79        unsafe {
80            let __receiver = <ConvertBrawl as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
81            {
82                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
83                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
84                    panic!(
85                        "unity: virtual slot {}
86 out of range (vtable len {}
87) on the runtime class behind {}
88 (method `{}
89`)",
90                        5usize,
91                        __vt.len(),
92                        <ConvertBrawl as ::unity::ClassIdentity>::NAME,
93                        "OnBegin",
94                    )
95                });
96                let __inner: extern "C" fn(ConvertBrawl, ::unity::OptionalMethod) -> crate::combat::cameraposition::CameraPosition =
97                    ::core::mem::transmute(__vi.method_ptr);
98                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
99                __inner(__receiver, __mi)
100            }
101        }
102    }
103    #[doc = "`OnApproach()` overload"]
104    fn on_approach(self) -> crate::combat::cameraposition::CameraPosition {
105        unsafe {
106            let __receiver = <ConvertBrawl as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107            {
108                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
109                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
110                    panic!(
111                        "unity: virtual slot {}
112 out of range (vtable len {}
113) on the runtime class behind {}
114 (method `{}
115`)",
116                        6usize,
117                        __vt.len(),
118                        <ConvertBrawl as ::unity::ClassIdentity>::NAME,
119                        "OnApproach",
120                    )
121                });
122                let __inner: extern "C" fn(ConvertBrawl, ::unity::OptionalMethod) -> crate::combat::cameraposition::CameraPosition =
123                    ::core::mem::transmute(__vi.method_ptr);
124                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
125                __inner(__receiver, __mi)
126            }
127        }
128    }
129    #[doc = "`OnAttack()` overload"]
130    fn on_attack(self) -> crate::combat::cameraposition::CameraPosition {
131        unsafe {
132            let __receiver = <ConvertBrawl as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
133            {
134                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
135                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
136                    panic!(
137                        "unity: virtual slot {}
138 out of range (vtable len {}
139) on the runtime class behind {}
140 (method `{}
141`)",
142                        7usize,
143                        __vt.len(),
144                        <ConvertBrawl as ::unity::ClassIdentity>::NAME,
145                        "OnAttack",
146                    )
147                });
148                let __inner: extern "C" fn(ConvertBrawl, ::unity::OptionalMethod) -> crate::combat::cameraposition::CameraPosition =
149                    ::core::mem::transmute(__vi.method_ptr);
150                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
151                __inner(__receiver, __mi)
152            }
153        }
154    }
155    #[doc = "`OnDamage()` overload"]
156    fn on_damage(self) -> crate::combat::cameraposition::CameraPosition {
157        unsafe {
158            let __receiver = <ConvertBrawl as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
159            {
160                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
161                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
162                    panic!(
163                        "unity: virtual slot {}
164 out of range (vtable len {}
165) on the runtime class behind {}
166 (method `{}
167`)",
168                        8usize,
169                        __vt.len(),
170                        <ConvertBrawl as ::unity::ClassIdentity>::NAME,
171                        "OnDamage",
172                    )
173                });
174                let __inner: extern "C" fn(ConvertBrawl, ::unity::OptionalMethod) -> crate::combat::cameraposition::CameraPosition =
175                    ::core::mem::transmute(__vi.method_ptr);
176                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
177                __inner(__receiver, __mi)
178            }
179        }
180    }
181    #[doc = "`OnUnusable()` overload"]
182    fn on_unusable(self) -> crate::combat::cameraposition::CameraPosition {
183        unsafe {
184            let __receiver = <ConvertBrawl as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
185            {
186                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
187                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
188                    panic!(
189                        "unity: virtual slot {}
190 out of range (vtable len {}
191) on the runtime class behind {}
192 (method `{}
193`)",
194                        9usize,
195                        __vt.len(),
196                        <ConvertBrawl as ::unity::ClassIdentity>::NAME,
197                        "OnUnusable",
198                    )
199                });
200                let __inner: extern "C" fn(ConvertBrawl, ::unity::OptionalMethod) -> crate::combat::cameraposition::CameraPosition =
201                    ::core::mem::transmute(__vi.method_ptr);
202                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
203                __inner(__receiver, __mi)
204            }
205        }
206    }
207}
208
209#[cfg(feature = "combat-situation_converter-convertbrawl")]
210impl<__T: IConvertBrawl> IConvertBrawlMethods for __T {}
211
212#[cfg(feature = "combat-situation_converter-convertbrawl")]
213impl ConvertBrawl {
214    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
215        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
216    }
217
218    pub fn on_begin_method_info() -> &'static ::unity::il2cpp::MethodInfo {
219        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
220    }
221
222    pub fn on_approach_method_info() -> &'static ::unity::il2cpp::MethodInfo {
223        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
224    }
225
226    pub fn on_attack_method_info() -> &'static ::unity::il2cpp::MethodInfo {
227        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
228    }
229
230    pub fn on_damage_method_info() -> &'static ::unity::il2cpp::MethodInfo {
231        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
232    }
233
234    pub fn on_unusable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
235        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
236    }
237}
238
239#[cfg(feature = "combat-situation_converter-convertbrawl")]
240impl ConvertBrawl {
241    #[doc = "Direct (non-virtual) call to `ConvertBrawl`'s own `OnBegin`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
242    pub unsafe fn on_begin(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::combat::cameraposition::CameraPosition {
243        let __mi = Self::on_begin_method_info();
244        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::combat::cameraposition::CameraPosition =
245            ::core::mem::transmute(__mi.method_ptr);
246        __inner(this.into(), ::core::option::Option::None)
247    }
248
249    #[doc = "Direct (non-virtual) call to `ConvertBrawl`'s own `OnApproach`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
250    pub unsafe fn on_approach(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::combat::cameraposition::CameraPosition {
251        let __mi = Self::on_approach_method_info();
252        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::combat::cameraposition::CameraPosition =
253            ::core::mem::transmute(__mi.method_ptr);
254        __inner(this.into(), ::core::option::Option::None)
255    }
256
257    #[doc = "Direct (non-virtual) call to `ConvertBrawl`'s own `OnAttack`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
258    pub unsafe fn on_attack(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::combat::cameraposition::CameraPosition {
259        let __mi = Self::on_attack_method_info();
260        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::combat::cameraposition::CameraPosition =
261            ::core::mem::transmute(__mi.method_ptr);
262        __inner(this.into(), ::core::option::Option::None)
263    }
264
265    #[doc = "Direct (non-virtual) call to `ConvertBrawl`'s own `OnDamage`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
266    pub unsafe fn on_damage(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::combat::cameraposition::CameraPosition {
267        let __mi = Self::on_damage_method_info();
268        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::combat::cameraposition::CameraPosition =
269            ::core::mem::transmute(__mi.method_ptr);
270        __inner(this.into(), ::core::option::Option::None)
271    }
272
273    #[doc = "Direct (non-virtual) call to `ConvertBrawl`'s own `OnUnusable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
274    pub unsafe fn on_unusable(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::combat::cameraposition::CameraPosition {
275        let __mi = Self::on_unusable_method_info();
276        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::combat::cameraposition::CameraPosition =
277            ::core::mem::transmute(__mi.method_ptr);
278        __inner(this.into(), ::core::option::Option::None)
279    }
280}
281
282#[cfg(feature = "combat-situation_converter-convertbrawl")]
283impl ConvertBrawl {
284    #[doc = "`.ctor(crate::combat::situation_converter::cameradataset::CameraDataSet)` — overload selector"]
285    pub fn new(data: crate::combat::situation_converter::cameradataset::CameraDataSet) -> Self {
286        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
287            panic!(
288                "{}
289::{}
290 failed to instantiate",
291                ::core::stringify!(ConvertBrawl),
292                ::core::stringify!(new),
293            )
294        });
295        <Self as IConvertBrawlMethods>::ctor(this, data);
296        this
297    }
298}
299
300#[cfg(feature = "combat-situation_converter-convertbrawl")]
301#[doc(hidden)]
302pub mod prelude {
303    pub use super::{ConvertBrawl, ConvertBrawl_State, IConvertBrawl, IConvertBrawlMethods};
304    #[cfg(feature = "combat-situation_converter-baseconverter")]
305    pub use crate::combat::situation_converter::baseconverter::IBaseConverterMethods;
306    #[cfg(feature = "combat-situation_converter-converterwithut")]
307    pub use crate::combat::situation_converter::converterwithut::IConverterWithUtMethods;
308    #[cfg(feature = "system-object")]
309    pub use crate::system::object::IObjectMethods;
310    #[cfg(feature = "system-enum")]
311    pub use crate::system::r#enum::IEnumMethods;
312    #[cfg(feature = "system-valuetype")]
313    pub use crate::system::valuetype::IValueTypeMethods;
314    pub use crate::{
315        combat::situation_converter::{baseconverter::IBaseConverter, converterwithut::IConverterWithUt},
316        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
317    };
318}