Skip to main content

engage/generated/combat/
decoratorargs.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-decoratorargs-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        combat::decorator::{Decorator, IDecorator},
10        system::object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/decoratorargs/DecoratorArgs.md"))]
14    #[::unity::class(namespace = "Combat", name = "DecoratorArgs")]
15    #[parent(crate::combat::decorator::Decorator)]
16    pub struct DecoratorArgs {}
17}
18
19#[cfg(feature = "combat-decoratorargs-types")]
20pub use __types::*;
21
22#[cfg(feature = "combat-decoratorargs")]
23pub trait IDecoratorArgsMethods: IDecoratorArgs {
24    #[doc = "`get_Name()` overload"]
25    fn get_name(self) -> ::unity::Il2CppString {
26        unsafe {
27            let __receiver = <DecoratorArgs 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                        <DecoratorArgs as ::unity::ClassIdentity>::NAME,
40                        "get_Name",
41                    )
42                });
43                let __inner: extern "C" fn(DecoratorArgs, ::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 = "`Set(crate::combat::phase::Phase)` overload"]
50    fn set(self, phase: impl ::core::convert::Into<crate::combat::phase::Phase>) -> () {
51        unsafe {
52            let __receiver = <DecoratorArgs as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
53            ::unity::il2cpp_call!((::unity::module_base()+0x1cea4c0usize)as*mut u8,();
54(DecoratorArgs)__receiver,(crate::combat::phase::Phase)::core::convert::Into::into(phase))
55        }
56    }
57    #[doc = "`.ctor()` overload"]
58    fn ctor(self) -> () {
59        unsafe {
60            let __receiver = <DecoratorArgs as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
61            ::unity::il2cpp_call!((::unity::module_base()+0x1cea500usize)as*mut u8,();
62(DecoratorArgs)__receiver)
63        }
64    }
65}
66
67#[cfg(feature = "combat-decoratorargs")]
68impl<__T: IDecoratorArgs> IDecoratorArgsMethods for __T {}
69
70#[cfg(feature = "combat-decoratorargs")]
71impl DecoratorArgs {
72    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
73        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
74    }
75
76    pub fn set_method_info() -> &'static ::unity::il2cpp::MethodInfo {
77        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
78    }
79
80    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
81        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
82    }
83}
84
85#[cfg(feature = "combat-decoratorargs")]
86impl DecoratorArgs {
87    #[doc = "Direct (non-virtual) call to `DecoratorArgs`'s own `get_Name`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
88    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
89        let __mi = Self::get_name_method_info();
90        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
91        __inner(this.into(), ::core::option::Option::None)
92    }
93}
94
95#[cfg(feature = "combat-decoratorargs")]
96impl DecoratorArgs {
97    #[doc = "`.ctor()` — no args"]
98    pub fn new() -> Self {
99        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
100            panic!(
101                "{}
102::{}
103 failed to instantiate",
104                ::core::stringify!(DecoratorArgs),
105                ::core::stringify!(new),
106            )
107        });
108        <Self as IDecoratorArgsMethods>::ctor(this);
109        this
110    }
111}
112
113#[cfg(feature = "combat-decoratorargs")]
114#[doc(hidden)]
115pub mod prelude {
116    pub use super::{DecoratorArgs, IDecoratorArgs, IDecoratorArgsMethods};
117    #[cfg(feature = "combat-decorator")]
118    pub use crate::combat::decorator::IDecoratorMethods;
119    #[cfg(feature = "system-object")]
120    pub use crate::system::object::IObjectMethods;
121    pub use crate::{combat::decorator::IDecorator, system::object::IObject};
122}