Skip to main content

engage/generated/app/
myroomsemarker.rs

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