engage/generated/combat/
characterlying.rs1#[cfg(feature = "combat-characterlying-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::object::{IObject, Object},
10 unity_engine::{
11 behaviour::{Behaviour, IBehaviour},
12 component::{Component, IComponent},
13 monobehaviour::{IMonoBehaviour, MonoBehaviour},
14 object_2::{IObject_2, Object_2},
15 },
16 };
17
18 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/characterlying/CharacterLying.md"))]
19 #[::unity::class(namespace = "Combat", name = "CharacterLying")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct CharacterLying {
22 #[static_field]
23 #[rename(name = "HumanCollideRadius")]
24 pub human_collide_radius: f32,
25 #[offset(24)]
26 #[rename(name = "_cp")]
27 pub cp: crate::combat::character::Character,
28 #[offset(32)]
29 #[rename(name = "isRunning")]
30 pub is_running: bool,
31 }
32}
33
34#[cfg(feature = "combat-characterlying-types")]
35pub use __types::*;
36
37#[cfg(feature = "combat-characterlying")]
38pub trait ICharacterLyingMethods: ICharacterLying {
39 #[doc = "`get_CP()` overload"]
40 fn get_cp(self) -> crate::combat::character::Character {
41 unsafe {
42 let __receiver = <CharacterLying as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43 ::unity::il2cpp_call!((::unity::module_base()+0x27ecb00usize)as*mut u8,crate::combat::character::Character;
44(CharacterLying)__receiver)
45 }
46 }
47 #[doc = "`Run(i32)` overload"]
48 fn run(self, die_hash: impl ::core::convert::Into<i32>) -> () {
49 unsafe {
50 let __receiver = <CharacterLying as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51 ::unity::il2cpp_call!((::unity::module_base()+0x27ecbc0usize)as*mut u8,();
52(CharacterLying)__receiver,(i32)::core::convert::Into::into(die_hash))
53 }
54 }
55 #[doc = "`MakeDeadPose()` overload"]
56 fn make_dead_pose(self) -> () {
57 unsafe {
58 let __receiver = <CharacterLying as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59 ::unity::il2cpp_call!((::unity::module_base()+0x27ecc30usize)as*mut u8,();
60(CharacterLying)__receiver)
61 }
62 }
63 #[doc = "`RunScheduler()` overload"]
64 fn run_scheduler(self) -> () {
65 unsafe {
66 let __receiver = <CharacterLying as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67 ::unity::il2cpp_call!((::unity::module_base()+0x27ecc10usize)as*mut u8,();
68(CharacterLying)__receiver)
69 }
70 }
71 #[doc = "`Update()` overload"]
72 fn update(self) -> () {
73 unsafe {
74 let __receiver = <CharacterLying as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75 ::unity::il2cpp_call!((::unity::module_base()+0x27ecd10usize)as*mut u8,();
76(CharacterLying)__receiver)
77 }
78 }
79 #[doc = "`LateUpdate()` overload"]
80 fn late_update(self) -> () {
81 unsafe {
82 let __receiver = <CharacterLying as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83 ::unity::il2cpp_call!((::unity::module_base()+0x27ecd30usize)as*mut u8,();
84(CharacterLying)__receiver)
85 }
86 }
87 #[doc = "`MyStart(i32)` overload"]
88 fn my_start(self, die_hash: impl ::core::convert::Into<i32>) -> () {
89 unsafe {
90 let __receiver = <CharacterLying as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91 {
92 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
93 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
94 panic!(
95 "unity: virtual slot {}
96 out of range (vtable len {}
97) on the runtime class behind {}
98 (method `{}
99`)",
100 4usize,
101 __vt.len(),
102 <CharacterLying as ::unity::ClassIdentity>::NAME,
103 "MyStart",
104 )
105 });
106 let __inner: extern "C" fn(CharacterLying, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
107 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
108 __inner(__receiver, ::core::convert::Into::into(die_hash), __mi)
109 }
110 }
111 }
112 #[doc = "`MakeMyDeadPose()` overload"]
113 fn make_my_dead_pose(self) -> () {
114 unsafe {
115 let __receiver = <CharacterLying as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
116 {
117 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
118 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
119 panic!(
120 "unity: virtual slot {}
121 out of range (vtable len {}
122) on the runtime class behind {}
123 (method `{}
124`)",
125 5usize,
126 __vt.len(),
127 <CharacterLying as ::unity::ClassIdentity>::NAME,
128 "MakeMyDeadPose",
129 )
130 });
131 let __inner: extern "C" fn(CharacterLying, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
132 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
133 __inner(__receiver, __mi)
134 }
135 }
136 }
137 #[doc = "`MyUpdate()` overload"]
138 fn my_update(self) -> () {
139 unsafe {
140 let __receiver = <CharacterLying as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
141 {
142 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
143 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
144 panic!(
145 "unity: virtual slot {}
146 out of range (vtable len {}
147) on the runtime class behind {}
148 (method `{}
149`)",
150 6usize,
151 __vt.len(),
152 <CharacterLying as ::unity::ClassIdentity>::NAME,
153 "MyUpdate",
154 )
155 });
156 let __inner: extern "C" fn(CharacterLying, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
157 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
158 __inner(__receiver, __mi)
159 }
160 }
161 }
162 #[doc = "`MyLateUpdate()` overload"]
163 fn my_late_update(self) -> () {
164 unsafe {
165 let __receiver = <CharacterLying as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
166 {
167 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
168 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
169 panic!(
170 "unity: virtual slot {}
171 out of range (vtable len {}
172) on the runtime class behind {}
173 (method `{}
174`)",
175 7usize,
176 __vt.len(),
177 <CharacterLying as ::unity::ClassIdentity>::NAME,
178 "MyLateUpdate",
179 )
180 });
181 let __inner: extern "C" fn(CharacterLying, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
182 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
183 __inner(__receiver, __mi)
184 }
185 }
186 }
187 #[doc = "`.ctor()` overload"]
188 fn ctor(self) -> () {
189 unsafe {
190 let __receiver = <CharacterLying as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
191 ::unity::il2cpp_call!((::unity::module_base()+0x27ecd60usize)as*mut u8,();
192(CharacterLying)__receiver)
193 }
194 }
195}
196
197#[cfg(feature = "combat-characterlying")]
198impl<__T: ICharacterLying> ICharacterLyingMethods for __T {}
199
200#[cfg(feature = "combat-characterlying")]
201impl CharacterLying {
202 pub fn get_cp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
203 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
204 }
205
206 pub fn run_method_info() -> &'static ::unity::il2cpp::MethodInfo {
207 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
208 }
209
210 pub fn make_dead_pose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
211 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
212 }
213
214 pub fn run_scheduler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
215 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
216 }
217
218 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
219 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
220 }
221
222 pub fn late_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
223 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
224 }
225
226 pub fn my_start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
227 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
228 }
229
230 pub fn make_my_dead_pose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
231 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
232 }
233
234 pub fn my_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
235 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
236 }
237
238 pub fn my_late_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
239 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
240 }
241
242 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
243 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
244 }
245}
246
247#[cfg(feature = "combat-characterlying")]
248impl CharacterLying {
249 #[doc = "Direct (non-virtual) call to `CharacterLying`'s own `MyStart`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
250 pub unsafe fn my_start(this: impl ::core::convert::Into<::unity::IlInstance>, die_hash: i32) -> () {
251 let __mi = Self::my_start_method_info();
252 let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
253 __inner(this.into(), die_hash, ::core::option::Option::None)
254 }
255
256 #[doc = "Direct (non-virtual) call to `CharacterLying`'s own `MakeMyDeadPose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
257 pub unsafe fn make_my_dead_pose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
258 let __mi = Self::make_my_dead_pose_method_info();
259 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
260 __inner(this.into(), ::core::option::Option::None)
261 }
262
263 #[doc = "Direct (non-virtual) call to `CharacterLying`'s own `MyUpdate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
264 pub unsafe fn my_update(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
265 let __mi = Self::my_update_method_info();
266 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
267 __inner(this.into(), ::core::option::Option::None)
268 }
269
270 #[doc = "Direct (non-virtual) call to `CharacterLying`'s own `MyLateUpdate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
271 pub unsafe fn my_late_update(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
272 let __mi = Self::my_late_update_method_info();
273 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
274 __inner(this.into(), ::core::option::Option::None)
275 }
276}
277
278#[cfg(feature = "combat-characterlying")]
279impl CharacterLying {
280 #[doc = "`.ctor()` — no args"]
281 pub fn new() -> Self {
282 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
283 panic!(
284 "{}
285::{}
286 failed to instantiate",
287 ::core::stringify!(CharacterLying),
288 ::core::stringify!(new),
289 )
290 });
291 <Self as ICharacterLyingMethods>::ctor(this);
292 this
293 }
294}
295
296#[cfg(feature = "combat-characterlying")]
297#[doc(hidden)]
298pub mod prelude {
299 pub use super::{CharacterLying, ICharacterLying, ICharacterLyingMethods};
300 #[cfg(feature = "system-object")]
301 pub use crate::system::object::IObjectMethods;
302 #[cfg(feature = "unity_engine-behaviour")]
303 pub use crate::unity_engine::behaviour::IBehaviourMethods;
304 #[cfg(feature = "unity_engine-component")]
305 pub use crate::unity_engine::component::IComponentMethods;
306 #[cfg(feature = "unity_engine-monobehaviour")]
307 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
308 #[cfg(feature = "unity_engine-object_2")]
309 pub use crate::unity_engine::object_2::IObject_2Methods;
310 pub use crate::{
311 system::object::IObject,
312 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
313 };
314}