Skip to main content

engage/generated/app/
gamemodecommand.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-gamemodecommand-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/gamemodecommand/GameModeCommand.md"))]
14    #[::unity::class(namespace = "App", name = "GameModeCommand")]
15    #[parent(crate::app::calculatorcommand::CalculatorCommand)]
16    pub struct GameModeCommand {}
17}
18
19#[cfg(feature = "app-gamemodecommand-types")]
20pub use __types::*;
21
22#[cfg(feature = "app-gamemodecommand")]
23pub trait IGameModeCommandMethods: IGameModeCommand {
24    #[doc = "`get_Name()` overload"]
25    fn get_name(self) -> ::unity::Il2CppString {
26        unsafe {
27            let __receiver = <GameModeCommand 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                        <GameModeCommand as ::unity::ClassIdentity>::NAME,
40                        "get_Name",
41                    )
42                });
43                let __inner: extern "C" fn(GameModeCommand, ::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 = "`Get()` overload"]
51    fn get(self) -> f32 {
52        unsafe {
53            let __receiver = <GameModeCommand 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(9usize).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                        9usize,
64                        __vt.len(),
65                        <GameModeCommand as ::unity::ClassIdentity>::NAME,
66                        "Get",
67                    )
68                });
69                let __inner: extern "C" fn(GameModeCommand, ::unity::OptionalMethod) -> f32 = ::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, __mi)
72            }
73        }
74    }
75    #[doc = "`.ctor()` overload"]
76    fn ctor(self) -> () {
77        unsafe {
78            let __receiver = <GameModeCommand as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79            ::unity::il2cpp_call!((::unity::module_base()+0x22786c0usize)as*mut u8,();
80(GameModeCommand)__receiver)
81        }
82    }
83}
84
85#[cfg(feature = "app-gamemodecommand")]
86impl<__T: IGameModeCommand> IGameModeCommandMethods for __T {}
87
88#[cfg(feature = "app-gamemodecommand")]
89impl GameModeCommand {
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 get_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-gamemodecommand")]
104impl GameModeCommand {
105    #[doc = "Direct (non-virtual) call to `GameModeCommand`'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 `GameModeCommand`'s own `Get`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
113    pub unsafe fn get(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
114        let __mi = Self::get_method_info();
115        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
116        __inner(this.into(), ::core::option::Option::None)
117    }
118}
119
120#[cfg(feature = "app-gamemodecommand")]
121impl GameModeCommand {
122    #[doc = "`.ctor()` — no args"]
123    pub fn new() -> Self {
124        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
125            panic!(
126                "{}
127::{}
128 failed to instantiate",
129                ::core::stringify!(GameModeCommand),
130                ::core::stringify!(new),
131            )
132        });
133        <Self as IGameModeCommandMethods>::ctor(this);
134        this
135    }
136}
137
138#[cfg(feature = "app-gamemodecommand")]
139#[doc(hidden)]
140pub mod prelude {
141    pub use super::{GameModeCommand, IGameModeCommand, IGameModeCommandMethods};
142    #[cfg(feature = "app-calculatorcommand")]
143    pub use crate::app::calculatorcommand::ICalculatorCommandMethods;
144    #[cfg(feature = "system-object")]
145    pub use crate::system::object::IObjectMethods;
146    pub use crate::{app::calculatorcommand::ICalculatorCommand, system::object::IObject};
147}