engage/generated/unity_engine/rendering/
debugactionstate.rs1#[cfg(feature = "unity_engine-rendering-debugactionstate-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 r#enum::{Enum, IEnum},
11 valuetype::{IValueType, ValueType},
12 };
13
14 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/debugactionstate/DebugActionState.md"))]
15 #[::unity::class(namespace = "UnityEngine.Rendering", name = "DebugActionState")]
16 #[parent(crate::system::object::Object)]
17 pub struct DebugActionState {
18 #[offset(16)]
19 #[rename(name = "m_Type")]
20 pub m_type: crate::unity_engine::rendering::debugactionstate::DebugActionState_DebugActionKeyType,
21 #[offset(24)]
22 #[rename(name = "m_PressedButtons")]
23 pub m_pressed_buttons: ::unity::Array<::unity::Il2CppString>,
24 #[offset(32)]
25 #[rename(name = "m_PressedAxis")]
26 pub m_pressed_axis: ::unity::Il2CppString,
27 #[offset(40)]
28 #[rename(name = "m_PressedKeys")]
29 pub m_pressed_keys: ::unity::Array<crate::unity_engine::keycode::KeyCode>,
30 #[offset(48)]
31 #[rename(name = "m_TriggerPressedUp")]
32 pub m_trigger_pressed_up: ::unity::Array<bool>,
33 #[offset(56)]
34 #[rename(name = "m_Timer")]
35 pub m_timer: f32,
36 }
37
38 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/debugactionstate/DebugActionState_DebugActionKeyType.md"))]
39 #[repr(C)]
40 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
41 pub struct DebugActionState_DebugActionKeyType {
42 pub value: i32,
43 }
44 impl ::unity::ClassIdentity for DebugActionState_DebugActionKeyType {
45 const NAME: &'static str = "DebugActionState.DebugActionKeyType";
46 const NAMESPACE: &'static str = "UnityEngine.Rendering";
47
48 fn class() -> ::unity::Class {
49 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
50 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
51 }
52 }
53 impl ::unity::IlType for DebugActionState_DebugActionKeyType {
54 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
55 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
56 }
57 }
58 impl DebugActionState_DebugActionKeyType {
59 pub fn button() -> Self {
60 Self { value: 0 }
61 }
62
63 pub fn axis() -> Self {
64 Self { value: 1 }
65 }
66
67 pub fn key() -> Self {
68 Self { value: 2 }
69 }
70 }
71}
72
73#[cfg(feature = "unity_engine-rendering-debugactionstate-types")]
74pub use __types::*;
75
76#[cfg(feature = "unity_engine-rendering-debugactionstate")]
77pub trait IDebugActionStateMethods: IDebugActionState {
78 #[doc = "`get_runningAction()` overload"]
79 fn get_running_action(self) -> bool {
80 unsafe {
81 let __receiver = <DebugActionState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
82 ::unity::il2cpp_call!((::unity::module_base()+0x3536740usize)as*mut u8,bool;
83(DebugActionState)__receiver)
84 }
85 }
86 #[doc = "`set_runningAction(bool)` overload"]
87 fn set_running_action(self, value: impl ::core::convert::Into<bool>) -> () {
88 unsafe {
89 let __receiver = <DebugActionState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
90 ::unity::il2cpp_call!((::unity::module_base()+0x3536750usize)as*mut u8,();
91(DebugActionState)__receiver,(bool)::core::convert::Into::into(value))
92 }
93 }
94 #[doc = "`get_actionState()` overload"]
95 fn get_action_state(self) -> f32 {
96 unsafe {
97 let __receiver = <DebugActionState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98 ::unity::il2cpp_call!((::unity::module_base()+0x3536760usize)as*mut u8,f32;
99(DebugActionState)__receiver)
100 }
101 }
102 #[doc = "`set_actionState(f32)` overload"]
103 fn set_action_state(self, value: impl ::core::convert::Into<f32>) -> () {
104 unsafe {
105 let __receiver = <DebugActionState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
106 ::unity::il2cpp_call!((::unity::module_base()+0x3536770usize)as*mut u8,();
107(DebugActionState)__receiver,(f32)::core::convert::Into::into(value))
108 }
109 }
110 #[doc = "`Trigger(i32, f32)` overload"]
111 fn trigger(self, trigger_count: impl ::core::convert::Into<i32>, state: impl ::core::convert::Into<f32>) -> () {
112 unsafe {
113 let __receiver = <DebugActionState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
114 ::unity::il2cpp_call!((::unity::module_base()+0x3536780usize)as*mut u8,();
115(DebugActionState)__receiver,(i32)::core::convert::Into::into(trigger_count),(f32)::core::convert::Into::into(state))
116 }
117 }
118 #[doc = "`TriggerWithButton(::unity::Array<::unity::Il2CppString>, f32)` overload"]
119 fn trigger_with_button(
120 self,
121 buttons: impl ::core::convert::Into<::unity::Array<::unity::Il2CppString>>,
122 state: impl ::core::convert::Into<f32>,
123 ) -> () {
124 unsafe {
125 let __receiver = <DebugActionState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
126 ::unity::il2cpp_call!((::unity::module_base()+0x3536860usize)as*mut u8,();
127(DebugActionState)__receiver,(::unity::Array< ::unity::Il2CppString>)::core::convert::Into::into(buttons),(f32)::core::convert::Into::into(state))
128 }
129 }
130 #[doc = "`TriggerWithAxis(::unity::Il2CppString, f32)` overload"]
131 fn trigger_with_axis(self, axis: impl ::core::convert::Into<::unity::Il2CppString>, state: impl ::core::convert::Into<f32>) -> () {
132 unsafe {
133 let __receiver = <DebugActionState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134 ::unity::il2cpp_call!((::unity::module_base()+0x35368f0usize)as*mut u8,();
135(DebugActionState)__receiver,(::unity::Il2CppString)::core::convert::Into::into(axis),(f32)::core::convert::Into::into(state))
136 }
137 }
138 #[doc = "`TriggerWithKey(::unity::Array<crate::unity_engine::keycode::KeyCode>, f32)` overload"]
139 fn trigger_with_key(
140 self,
141 keys: impl ::core::convert::Into<::unity::Array<crate::unity_engine::keycode::KeyCode>>,
142 state: impl ::core::convert::Into<f32>,
143 ) -> () {
144 unsafe {
145 let __receiver = <DebugActionState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
146 ::unity::il2cpp_call!((::unity::module_base()+0x3536940usize)as*mut u8,();
147(DebugActionState)__receiver,(::unity::Array<crate::unity_engine::keycode::KeyCode>)::core::convert::Into::into(keys),(f32)::core::convert::Into::into(state))
148 }
149 }
150 #[doc = "`Reset()` overload"]
151 fn reset(self) -> () {
152 unsafe {
153 let __receiver = <DebugActionState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
154 ::unity::il2cpp_call!((::unity::module_base()+0x35369d0usize)as*mut u8,();
155(DebugActionState)__receiver)
156 }
157 }
158 #[doc = "`Update(crate::unity_engine::rendering::debugactiondesc::DebugActionDesc)` overload"]
159 fn update(self, desc: impl ::core::convert::Into<crate::unity_engine::rendering::debugactiondesc::DebugActionDesc>) -> () {
160 unsafe {
161 let __receiver = <DebugActionState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
162 ::unity::il2cpp_call!((::unity::module_base()+0x35369f0usize)as*mut u8,();
163(DebugActionState)__receiver,(crate::unity_engine::rendering::debugactiondesc::DebugActionDesc)::core::convert::Into::into(desc))
164 }
165 }
166 #[doc = "`.ctor()` overload"]
167 fn ctor(self) -> () {
168 unsafe {
169 let __receiver = <DebugActionState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
170 ::unity::il2cpp_call!((::unity::module_base()+0x3536bf0usize)as*mut u8,();
171(DebugActionState)__receiver)
172 }
173 }
174}
175
176#[cfg(feature = "unity_engine-rendering-debugactionstate")]
177impl<__T: IDebugActionState> IDebugActionStateMethods for __T {}
178
179#[cfg(feature = "unity_engine-rendering-debugactionstate")]
180impl DebugActionState {
181 pub fn get_running_action_method_info() -> &'static ::unity::il2cpp::MethodInfo {
182 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
183 }
184
185 pub fn set_running_action_method_info() -> &'static ::unity::il2cpp::MethodInfo {
186 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
187 }
188
189 pub fn get_action_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
190 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
191 }
192
193 pub fn set_action_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
194 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
195 }
196
197 pub fn trigger_method_info() -> &'static ::unity::il2cpp::MethodInfo {
198 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
199 }
200
201 pub fn trigger_with_button_method_info() -> &'static ::unity::il2cpp::MethodInfo {
202 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
203 }
204
205 pub fn trigger_with_axis_method_info() -> &'static ::unity::il2cpp::MethodInfo {
206 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
207 }
208
209 pub fn trigger_with_key_method_info() -> &'static ::unity::il2cpp::MethodInfo {
210 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
211 }
212
213 pub fn reset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
214 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
215 }
216
217 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
218 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
219 }
220
221 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
222 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
223 }
224}
225
226#[cfg(feature = "unity_engine-rendering-debugactionstate")]
227impl DebugActionState {
228 #[doc = "`.ctor()` — no args"]
229 pub fn new() -> Self {
230 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
231 panic!(
232 "{}
233::{}
234 failed to instantiate",
235 ::core::stringify!(DebugActionState),
236 ::core::stringify!(new),
237 )
238 });
239 <Self as IDebugActionStateMethods>::ctor(this);
240 this
241 }
242}
243
244#[cfg(feature = "unity_engine-rendering-debugactionstate")]
245#[doc(hidden)]
246pub mod prelude {
247 pub use super::{DebugActionState, DebugActionState_DebugActionKeyType, IDebugActionState, IDebugActionStateMethods};
248 #[cfg(feature = "system-object")]
249 pub use crate::system::object::IObjectMethods;
250 #[cfg(feature = "system-enum")]
251 pub use crate::system::r#enum::IEnumMethods;
252 #[cfg(feature = "system-valuetype")]
253 pub use crate::system::valuetype::IValueTypeMethods;
254 pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
255}