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