Skip to main content

engage/generated/combat/
actionsubspacetrip.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-actionsubspacetrip-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        combat::{
10            actionbase::{ActionBase, IActionBase},
11            state::{IState, State},
12        },
13        system::object::{IObject, Object},
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/actionsubspacetrip/ActionSubspaceTrip.md"))]
17    #[::unity::class(namespace = "Combat", name = "ActionSubspaceTrip")]
18    #[parent(crate::combat::actionbase::ActionBase)]
19    pub struct ActionSubspaceTrip {}
20}
21
22#[cfg(feature = "combat-actionsubspacetrip-types")]
23pub use __types::*;
24
25#[cfg(feature = "combat-actionsubspacetrip")]
26pub trait IActionSubspaceTripMethods: IActionSubspaceTrip {
27    #[doc = "`get_Name()` overload"]
28    fn get_name(self) -> ::unity::Il2CppString {
29        unsafe {
30            let __receiver = <ActionSubspaceTrip as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
31            {
32                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
33                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
34                    panic!(
35                        "unity: virtual slot {}
36 out of range (vtable len {}
37) on the runtime class behind {}
38 (method `{}
39`)",
40                        5usize,
41                        __vt.len(),
42                        <ActionSubspaceTrip as ::unity::ClassIdentity>::NAME,
43                        "get_Name",
44                    )
45                });
46                let __inner: extern "C" fn(ActionSubspaceTrip, ::unity::OptionalMethod) -> ::unity::Il2CppString =
47                    ::core::mem::transmute(__vi.method_ptr);
48                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
49                __inner(__receiver, __mi)
50            }
51        }
52    }
53    #[doc = "`.ctor(crate::combat::character::Character)` overload"]
54    fn ctor(self, chr: impl ::core::convert::Into<crate::combat::character::Character>) -> () {
55        unsafe {
56            let __receiver = <ActionSubspaceTrip as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57            ::unity::il2cpp_call!((::unity::module_base()+0x2bc8a50usize)as*mut u8,();
58(ActionSubspaceTrip)__receiver,(crate::combat::character::Character)::core::convert::Into::into(chr))
59        }
60    }
61    #[doc = "`OnEnter()` overload"]
62    fn on_enter(self) -> () {
63        unsafe {
64            let __receiver = <ActionSubspaceTrip 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(6usize).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                        6usize,
75                        __vt.len(),
76                        <ActionSubspaceTrip as ::unity::ClassIdentity>::NAME,
77                        "OnEnter",
78                    )
79                });
80                let __inner: extern "C" fn(ActionSubspaceTrip, ::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, __mi)
83            }
84        }
85    }
86}
87
88#[cfg(feature = "combat-actionsubspacetrip")]
89impl<__T: IActionSubspaceTrip> IActionSubspaceTripMethods for __T {}
90
91#[cfg(feature = "combat-actionsubspacetrip")]
92impl ActionSubspaceTrip {
93    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
94        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
95    }
96
97    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
98        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
99    }
100
101    pub fn on_enter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
102        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
103    }
104}
105
106#[cfg(feature = "combat-actionsubspacetrip")]
107impl ActionSubspaceTrip {
108    #[doc = "Direct (non-virtual) call to `ActionSubspaceTrip`'s own `get_Name`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
109    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
110        let __mi = Self::get_name_method_info();
111        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
112        __inner(this.into(), ::core::option::Option::None)
113    }
114
115    #[doc = "Direct (non-virtual) call to `ActionSubspaceTrip`'s own `OnEnter`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
116    pub unsafe fn on_enter(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
117        let __mi = Self::on_enter_method_info();
118        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
119        __inner(this.into(), ::core::option::Option::None)
120    }
121}
122
123#[cfg(feature = "combat-actionsubspacetrip")]
124impl ActionSubspaceTrip {
125    #[doc = "`.ctor(crate::combat::character::Character)` — overload selector"]
126    pub fn new(chr: crate::combat::character::Character) -> Self {
127        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
128            panic!(
129                "{}
130::{}
131 failed to instantiate",
132                ::core::stringify!(ActionSubspaceTrip),
133                ::core::stringify!(new),
134            )
135        });
136        <Self as IActionSubspaceTripMethods>::ctor(this, chr);
137        this
138    }
139}
140
141#[cfg(feature = "combat-actionsubspacetrip")]
142#[doc(hidden)]
143pub mod prelude {
144    pub use super::{ActionSubspaceTrip, IActionSubspaceTrip, IActionSubspaceTripMethods};
145    #[cfg(feature = "combat-actionbase")]
146    pub use crate::combat::actionbase::IActionBaseMethods;
147    #[cfg(feature = "combat-state")]
148    pub use crate::combat::state::IStateMethods;
149    #[cfg(feature = "system-object")]
150    pub use crate::system::object::IObjectMethods;
151    pub use crate::{
152        combat::{actionbase::IActionBase, state::IState},
153        system::object::IObject,
154    };
155}