Skip to main content

engage/generated/app/
myroomeffectmarker.rs

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