Skip to main content

engage/generated/app/
procdesclog.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-procdesclog-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            procdesc::{IProcDesc, ProcDesc},
11            procdesccallbase::{IProcDescCallBase, ProcDescCallBase},
12        },
13        system::object::{IObject, Object},
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/procdesclog/ProcDescLog.md"))]
17    #[::unity::class(namespace = "App", name = "ProcDescLog")]
18    #[parent(crate::app::procdesccallbase::ProcDescCallBase)]
19    pub struct ProcDescLog {
20        #[offset(24)]
21        #[rename(name = "m_Log")]
22        pub m_log: ::unity::Il2CppString,
23    }
24}
25
26#[cfg(feature = "app-procdesclog-types")]
27pub use __types::*;
28
29#[cfg(feature = "app-procdesclog")]
30pub trait IProcDescLogMethods: IProcDescLog {
31    #[doc = "`.ctor(::unity::Il2CppString)` overload"]
32    fn ctor(self, log: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
33        unsafe {
34            let __receiver = <ProcDescLog as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
35            ::unity::il2cpp_call!((::unity::module_base()+0x281c2b0usize)as*mut u8,();
36(ProcDescLog)__receiver,(::unity::Il2CppString)::core::convert::Into::into(log))
37        }
38    }
39    #[doc = "`ExecuteImpl(crate::app::procinst::ProcInst)` overload"]
40    fn execute_impl(self, inst: impl ::core::convert::Into<crate::app::procinst::ProcInst>) -> () {
41        unsafe {
42            let __receiver = <ProcDescLog as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43            {
44                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
45                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
46                    panic!(
47                        "unity: virtual slot {}
48 out of range (vtable len {}
49) on the runtime class behind {}
50 (method `{}
51`)",
52                        7usize,
53                        __vt.len(),
54                        <ProcDescLog as ::unity::ClassIdentity>::NAME,
55                        "ExecuteImpl",
56                    )
57                });
58                let __inner: extern "C" fn(ProcDescLog, crate::app::procinst::ProcInst, ::unity::OptionalMethod) -> () =
59                    ::core::mem::transmute(__vi.method_ptr);
60                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
61                __inner(__receiver, ::core::convert::Into::into(inst), __mi)
62            }
63        }
64    }
65}
66
67#[cfg(feature = "app-procdesclog")]
68impl<__T: IProcDescLog> IProcDescLogMethods for __T {}
69
70#[cfg(feature = "app-procdesclog")]
71impl ProcDescLog {
72    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
73        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
74    }
75
76    pub fn execute_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
77        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
78    }
79}
80
81#[cfg(feature = "app-procdesclog")]
82impl ProcDescLog {
83    #[doc = "Direct (non-virtual) call to `ProcDescLog`'s own `ExecuteImpl`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
84    pub unsafe fn execute_impl(this: impl ::core::convert::Into<::unity::IlInstance>, inst: crate::app::procinst::ProcInst) -> () {
85        let __mi = Self::execute_impl_method_info();
86        let __inner: extern "C" fn(::unity::IlInstance, crate::app::procinst::ProcInst, ::unity::OptionalMethod) -> () =
87            ::core::mem::transmute(__mi.method_ptr);
88        __inner(this.into(), inst, ::core::option::Option::None)
89    }
90}
91
92#[cfg(feature = "app-procdesclog")]
93impl ProcDescLog {
94    #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
95    pub fn new(log: ::unity::Il2CppString) -> Self {
96        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
97            panic!(
98                "{}
99::{}
100 failed to instantiate",
101                ::core::stringify!(ProcDescLog),
102                ::core::stringify!(new),
103            )
104        });
105        <Self as IProcDescLogMethods>::ctor(this, log);
106        this
107    }
108}
109
110#[cfg(feature = "app-procdesclog")]
111#[doc(hidden)]
112pub mod prelude {
113    pub use super::{IProcDescLog, IProcDescLogMethods, ProcDescLog};
114    #[cfg(feature = "app-procdesc")]
115    pub use crate::app::procdesc::IProcDescMethods;
116    #[cfg(feature = "app-procdesccallbase")]
117    pub use crate::app::procdesccallbase::IProcDescCallBaseMethods;
118    #[cfg(feature = "system-object")]
119    pub use crate::system::object::IObjectMethods;
120    pub use crate::{
121        app::{procdesc::IProcDesc, procdesccallbase::IProcDescCallBase},
122        system::object::IObject,
123    };
124}