Skip to main content

engage/generated/unity_engine/experimental/rendering/
iscriptableruntimereflectionsystem.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-experimental-rendering-iscriptableruntimereflectionsystem-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8
9    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/experimental/rendering/iscriptableruntimereflectionsystem/IScriptableRuntimeReflectionSystem.md"))]
10    #[::unity::class(namespace = "UnityEngine.Experimental.Rendering", name = "IScriptableRuntimeReflectionSystem")]
11    pub struct IScriptableRuntimeReflectionSystem {}
12}
13
14#[cfg(feature = "unity_engine-experimental-rendering-iscriptableruntimereflectionsystem-types")]
15pub use __types::*;
16
17#[cfg(feature = "unity_engine-experimental-rendering-iscriptableruntimereflectionsystem")]
18pub trait IIScriptableRuntimeReflectionSystemMethods: IIScriptableRuntimeReflectionSystem {
19    #[doc = "`TickRealtimeProbes()` overload"]
20    fn tick_realtime_probes(self) -> bool {
21        unsafe {
22            let __receiver =
23                <IScriptableRuntimeReflectionSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
24            {
25                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
26                let __vi = *__vt.get(0usize).unwrap_or_else(|| {
27                    panic!(
28                        "unity: virtual slot {}
29 out of range (vtable len {}
30) on the runtime class behind {}
31 (method `{}
32`)",
33                        0usize,
34                        __vt.len(),
35                        <IScriptableRuntimeReflectionSystem as ::unity::ClassIdentity>::NAME,
36                        "TickRealtimeProbes",
37                    )
38                });
39                let __inner: extern "C" fn(IScriptableRuntimeReflectionSystem, ::unity::OptionalMethod) -> bool =
40                    ::core::mem::transmute(__vi.method_ptr);
41                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
42                __inner(__receiver, __mi)
43            }
44        }
45    }
46}
47
48#[cfg(feature = "unity_engine-experimental-rendering-iscriptableruntimereflectionsystem")]
49impl<__T: IIScriptableRuntimeReflectionSystem> IIScriptableRuntimeReflectionSystemMethods for __T {}
50
51#[cfg(feature = "unity_engine-experimental-rendering-iscriptableruntimereflectionsystem")]
52impl IScriptableRuntimeReflectionSystem {
53    pub fn tick_realtime_probes_method_info() -> &'static ::unity::il2cpp::MethodInfo {
54        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
55    }
56}
57
58#[cfg(feature = "unity_engine-experimental-rendering-iscriptableruntimereflectionsystem")]
59impl IScriptableRuntimeReflectionSystem {
60    #[doc = "Direct (non-virtual) call to `IScriptableRuntimeReflectionSystem`'s own `TickRealtimeProbes`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
61    pub unsafe fn tick_realtime_probes(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
62        let __mi = Self::tick_realtime_probes_method_info();
63        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
64        __inner(this.into(), ::core::option::Option::None)
65    }
66}
67
68#[cfg(feature = "unity_engine-experimental-rendering-iscriptableruntimereflectionsystem")]
69#[doc(hidden)]
70pub mod prelude {
71    pub use super::{IIScriptableRuntimeReflectionSystem, IIScriptableRuntimeReflectionSystemMethods, IScriptableRuntimeReflectionSystem};
72}