Skip to main content

engage/generated/app/
messdumpcommand.rs

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