Skip to main content

engage/generated/app/
procdescvsync.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-procdescvsync-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/procdescvsync/ProcDescVsync.md"))]
17    #[::unity::class(namespace = "App", name = "ProcDescVsync")]
18    #[parent(crate::app::procdesccallbase::ProcDescCallBase)]
19    pub struct ProcDescVsync {
20        #[offset(20)]
21        #[rename(name = "m_Mode")]
22        pub m_mode: crate::app::gametime::GameTime_VsycMode,
23    }
24}
25
26#[cfg(feature = "app-procdescvsync-types")]
27pub use __types::*;
28
29#[cfg(feature = "app-procdescvsync")]
30pub trait IProcDescVsyncMethods: IProcDescVsync {
31    #[doc = "`.ctor(crate::app::gametime::GameTime_VsycMode)` overload"]
32    fn ctor(self, mode: impl ::core::convert::Into<crate::app::gametime::GameTime_VsycMode>) -> () {
33        unsafe {
34            let __receiver = <ProcDescVsync as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
35            ::unity::il2cpp_call!((::unity::module_base()+0x281c360usize)as*mut u8,();
36(ProcDescVsync)__receiver,(crate::app::gametime::GameTime_VsycMode)::core::convert::Into::into(mode))
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 = <ProcDescVsync 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                        <ProcDescVsync as ::unity::ClassIdentity>::NAME,
55                        "ExecuteImpl",
56                    )
57                });
58                let __inner: extern "C" fn(ProcDescVsync, 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-procdescvsync")]
68impl<__T: IProcDescVsync> IProcDescVsyncMethods for __T {}
69
70#[cfg(feature = "app-procdescvsync")]
71impl ProcDescVsync {
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-procdescvsync")]
82impl ProcDescVsync {
83    #[doc = "Direct (non-virtual) call to `ProcDescVsync`'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-procdescvsync")]
93impl ProcDescVsync {
94    #[doc = "`.ctor(crate::app::gametime::GameTime_VsycMode)` — overload selector"]
95    pub fn new(mode: crate::app::gametime::GameTime_VsycMode) -> Self {
96        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
97            panic!(
98                "{}
99::{}
100 failed to instantiate",
101                ::core::stringify!(ProcDescVsync),
102                ::core::stringify!(new),
103            )
104        });
105        <Self as IProcDescVsyncMethods>::ctor(this, mode);
106        this
107    }
108}
109
110#[cfg(feature = "app-procdescvsync")]
111#[doc(hidden)]
112pub mod prelude {
113    pub use super::{IProcDescVsync, IProcDescVsyncMethods, ProcDescVsync};
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}