Skip to main content

engage/generated/app/
strlencommand.rs

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