Skip to main content

engage/generated/app/
tancommand.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-tancommand-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/tancommand/TanCommand.md"))]
14    #[::unity::class(namespace = "App", name = "TanCommand")]
15    #[parent(crate::app::calculatorcommand::CalculatorCommand)]
16    pub struct TanCommand {}
17}
18
19#[cfg(feature = "app-tancommand-types")]
20pub use __types::*;
21
22#[cfg(feature = "app-tancommand")]
23pub trait ITanCommandMethods: ITanCommand {
24    #[doc = "`get_Name()` overload"]
25    fn get_name(self) -> ::unity::Il2CppString {
26        unsafe {
27            let __receiver = <TanCommand 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                        <TanCommand as ::unity::ClassIdentity>::NAME,
40                        "get_Name",
41                    )
42                });
43                let __inner: extern "C" fn(TanCommand, ::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_ArgNum()` overload"]
50    fn get_arg_num(self) -> i32 {
51        unsafe {
52            let __receiver = <TanCommand 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(7usize).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                        7usize,
63                        __vt.len(),
64                        <TanCommand as ::unity::ClassIdentity>::NAME,
65                        "get_ArgNum",
66                    )
67                });
68                let __inner: extern "C" fn(TanCommand, ::unity::OptionalMethod) -> i32 = ::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 = "`Func(crate::system::collections::generic::list_1::List_1<f32>)` overload"]
75    fn func(self, args: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<f32>>) -> f32 {
76        unsafe {
77            let __receiver = <TanCommand as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78            {
79                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
80                let __vi = *__vt.get(24usize).unwrap_or_else(|| {
81                    panic!(
82                        "unity: virtual slot {}
83 out of range (vtable len {}
84) on the runtime class behind {}
85 (method `{}
86`)",
87                        24usize,
88                        __vt.len(),
89                        <TanCommand as ::unity::ClassIdentity>::NAME,
90                        "Func",
91                    )
92                });
93                let __inner: extern "C" fn(TanCommand, crate::system::collections::generic::list_1::List_1<f32>, ::unity::OptionalMethod) -> f32 =
94                    ::core::mem::transmute(__vi.method_ptr);
95                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
96                __inner(__receiver, ::core::convert::Into::into(args), __mi)
97            }
98        }
99    }
100    #[doc = "`.ctor()` overload"]
101    fn ctor(self) -> () {
102        unsafe {
103            let __receiver = <TanCommand as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
104            ::unity::il2cpp_call!((::unity::module_base()+0x21ddc90usize)as*mut u8,();
105(TanCommand)__receiver)
106        }
107    }
108}
109
110#[cfg(feature = "app-tancommand")]
111impl<__T: ITanCommand> ITanCommandMethods for __T {}
112
113#[cfg(feature = "app-tancommand")]
114impl TanCommand {
115    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
116        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
117    }
118
119    pub fn get_arg_num_method_info() -> &'static ::unity::il2cpp::MethodInfo {
120        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
121    }
122
123    pub fn func_method_info() -> &'static ::unity::il2cpp::MethodInfo {
124        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
125    }
126
127    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
128        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
129    }
130}
131
132#[cfg(feature = "app-tancommand")]
133impl TanCommand {
134    #[doc = "Direct (non-virtual) call to `TanCommand`'s own `get_Name`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
135    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
136        let __mi = Self::get_name_method_info();
137        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
138        __inner(this.into(), ::core::option::Option::None)
139    }
140
141    #[doc = "Direct (non-virtual) call to `TanCommand`'s own `get_ArgNum`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
142    pub unsafe fn get_arg_num(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
143        let __mi = Self::get_arg_num_method_info();
144        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
145        __inner(this.into(), ::core::option::Option::None)
146    }
147
148    #[doc = "Direct (non-virtual) call to `TanCommand`'s own `Func`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
149    pub unsafe fn func(this: impl ::core::convert::Into<::unity::IlInstance>, args: crate::system::collections::generic::list_1::List_1<f32>) -> f32 {
150        let __mi = Self::func_method_info();
151        let __inner: extern "C" fn(::unity::IlInstance, crate::system::collections::generic::list_1::List_1<f32>, ::unity::OptionalMethod) -> f32 =
152            ::core::mem::transmute(__mi.method_ptr);
153        __inner(this.into(), args, ::core::option::Option::None)
154    }
155}
156
157#[cfg(feature = "app-tancommand")]
158impl TanCommand {
159    #[doc = "`.ctor()` — no args"]
160    pub fn new() -> Self {
161        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
162            panic!(
163                "{}
164::{}
165 failed to instantiate",
166                ::core::stringify!(TanCommand),
167                ::core::stringify!(new),
168            )
169        });
170        <Self as ITanCommandMethods>::ctor(this);
171        this
172    }
173}
174
175#[cfg(feature = "app-tancommand")]
176#[doc(hidden)]
177pub mod prelude {
178    pub use super::{ITanCommand, ITanCommandMethods, TanCommand};
179    #[cfg(feature = "app-calculatorcommand")]
180    pub use crate::app::calculatorcommand::ICalculatorCommandMethods;
181    #[cfg(feature = "system-object")]
182    pub use crate::system::object::IObjectMethods;
183    pub use crate::{app::calculatorcommand::ICalculatorCommand, system::object::IObject};
184}