Skip to main content

engage/generated/combat/
actiongrannearattack.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-actiongrannearattack-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        combat::{
10            actionbase::{ActionBase, IActionBase},
11            actiondisposerholder::{ActionDisposerHolder, IActionDisposerHolder},
12            actiongranbase::{ActionGranBase, IActionGranBase},
13            state::{IState, State},
14        },
15        system::object::{IObject, Object},
16    };
17
18    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/actiongrannearattack/ActionGranNearAttack.md"))]
19    #[::unity::class(namespace = "Combat", name = "ActionGranNearAttack")]
20    #[parent(crate::combat::actiongranbase::ActionGranBase)]
21    pub struct ActionGranNearAttack {
22        #[offset(64)]
23        #[rename(name = "m_WorldHitTime")]
24        pub m_world_hit_time: f32,
25        #[offset(68)]
26        #[rename(name = "m_Life")]
27        pub m_life: f32,
28    }
29}
30
31#[cfg(feature = "combat-actiongrannearattack-types")]
32pub use __types::*;
33
34#[cfg(feature = "combat-actiongrannearattack")]
35pub trait IActionGranNearAttackMethods: IActionGranNearAttack {
36    #[doc = "`get_Name()` overload"]
37    fn get_name(self) -> ::unity::Il2CppString {
38        unsafe {
39            let __receiver = <ActionGranNearAttack 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(5usize).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                        5usize,
50                        __vt.len(),
51                        <ActionGranNearAttack as ::unity::ClassIdentity>::NAME,
52                        "get_Name",
53                    )
54                });
55                let __inner: extern "C" fn(ActionGranNearAttack, ::unity::OptionalMethod) -> ::unity::Il2CppString =
56                    ::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, __mi)
59            }
60        }
61    }
62    #[doc = "`.ctor(crate::combat::character::Character, f32)` overload"]
63    fn ctor(self, chr: impl ::core::convert::Into<crate::combat::character::Character>, world_hit_time: impl ::core::convert::Into<f32>) -> () {
64        unsafe {
65            let __receiver = <ActionGranNearAttack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66            ::unity::il2cpp_call!((::unity::module_base()+0x2bc7a10usize)as*mut u8,();
67(ActionGranNearAttack)__receiver,(crate::combat::character::Character)::core::convert::Into::into(chr),(f32)::core::convert::Into::into(world_hit_time))
68        }
69    }
70    #[doc = "`OnEnter()` overload"]
71    fn on_enter(self) -> () {
72        unsafe {
73            let __receiver = <ActionGranNearAttack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74            {
75                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
76                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
77                    panic!(
78                        "unity: virtual slot {}
79 out of range (vtable len {}
80) on the runtime class behind {}
81 (method `{}
82`)",
83                        6usize,
84                        __vt.len(),
85                        <ActionGranNearAttack as ::unity::ClassIdentity>::NAME,
86                        "OnEnter",
87                    )
88                });
89                let __inner: extern "C" fn(ActionGranNearAttack, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
90                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
91                __inner(__receiver, __mi)
92            }
93        }
94    }
95    #[doc = "`OnUpdate()` overload"]
96    fn on_update(self) -> () {
97        unsafe {
98            let __receiver = <ActionGranNearAttack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99            {
100                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
101                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
102                    panic!(
103                        "unity: virtual slot {}
104 out of range (vtable len {}
105) on the runtime class behind {}
106 (method `{}
107`)",
108                        7usize,
109                        __vt.len(),
110                        <ActionGranNearAttack as ::unity::ClassIdentity>::NAME,
111                        "OnUpdate",
112                    )
113                });
114                let __inner: extern "C" fn(ActionGranNearAttack, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
115                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
116                __inner(__receiver, __mi)
117            }
118        }
119    }
120}
121
122#[cfg(feature = "combat-actiongrannearattack")]
123impl<__T: IActionGranNearAttack> IActionGranNearAttackMethods for __T {}
124
125#[cfg(feature = "combat-actiongrannearattack")]
126impl ActionGranNearAttack {
127    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
128        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
129    }
130
131    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
133    }
134
135    pub fn on_enter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
137    }
138
139    pub fn on_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
141    }
142}
143
144#[cfg(feature = "combat-actiongrannearattack")]
145impl ActionGranNearAttack {
146    #[doc = "Direct (non-virtual) call to `ActionGranNearAttack`'s own `get_Name`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
147    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
148        let __mi = Self::get_name_method_info();
149        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
150        __inner(this.into(), ::core::option::Option::None)
151    }
152
153    #[doc = "Direct (non-virtual) call to `ActionGranNearAttack`'s own `OnEnter`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
154    pub unsafe fn on_enter(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
155        let __mi = Self::on_enter_method_info();
156        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
157        __inner(this.into(), ::core::option::Option::None)
158    }
159
160    #[doc = "Direct (non-virtual) call to `ActionGranNearAttack`'s own `OnUpdate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
161    pub unsafe fn on_update(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
162        let __mi = Self::on_update_method_info();
163        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
164        __inner(this.into(), ::core::option::Option::None)
165    }
166}
167
168#[cfg(feature = "combat-actiongrannearattack")]
169impl ActionGranNearAttack {
170    #[doc = "`.ctor(crate::combat::character::Character, f32)` — overload selector"]
171    pub fn new(chr: crate::combat::character::Character, world_hit_time: f32) -> Self {
172        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
173            panic!(
174                "{}
175::{}
176 failed to instantiate",
177                ::core::stringify!(ActionGranNearAttack),
178                ::core::stringify!(new),
179            )
180        });
181        <Self as IActionGranNearAttackMethods>::ctor(this, chr, world_hit_time);
182        this
183    }
184}
185
186#[cfg(feature = "combat-actiongrannearattack")]
187#[doc(hidden)]
188pub mod prelude {
189    pub use super::{ActionGranNearAttack, IActionGranNearAttack, IActionGranNearAttackMethods};
190    #[cfg(feature = "combat-actionbase")]
191    pub use crate::combat::actionbase::IActionBaseMethods;
192    #[cfg(feature = "combat-actiondisposerholder")]
193    pub use crate::combat::actiondisposerholder::IActionDisposerHolderMethods;
194    #[cfg(feature = "combat-actiongranbase")]
195    pub use crate::combat::actiongranbase::IActionGranBaseMethods;
196    #[cfg(feature = "combat-state")]
197    pub use crate::combat::state::IStateMethods;
198    #[cfg(feature = "system-object")]
199    pub use crate::system::object::IObjectMethods;
200    pub use crate::{
201        combat::{actionbase::IActionBase, actiondisposerholder::IActionDisposerHolder, actiongranbase::IActionGranBase, state::IState},
202        system::object::IObject,
203    };
204}