Skip to main content

engage/generated/app/
messloadcommand.rs

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