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