Skip to main content

engage/generated/app/
hubmovestate.rs

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