Skip to main content

engage/generated/app/
randomcommand.rs

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