engage/generated/app/
eventmarker.rs1#[cfg(feature = "app-eventmarker-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/eventmarker/EventMarker.md"))]
18 #[::unity::class(namespace = "App", name = "EventMarker")]
19 #[parent(crate::unity_engine::timeline::marker::Marker)]
20 pub struct EventMarker {
21 #[offset(40)]
22 #[rename(name = "EventMode")]
23 pub event_mode: bool,
24 #[offset(41)]
25 #[rename(name = "IsIgnoreMarker")]
26 pub is_ignore_marker: bool,
27 }
28}
29
30#[cfg(feature = "app-eventmarker-types")]
31pub use __types::*;
32
33#[cfg(feature = "app-eventmarker")]
34pub trait IEventMarkerMethods: IEventMarker {
35 #[doc = "`get_id()` overload"]
36 fn get_id(self) -> crate::unity_engine::propertyname::PropertyName {
37 unsafe {
38 let __receiver = <EventMarker 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 <EventMarker as ::unity::ClassIdentity>::NAME,
51 "get_id",
52 )
53 });
54 let __inner: extern "C" fn(EventMarker, ::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 = <EventMarker as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
65 ::unity::il2cpp_call!((::unity::module_base()+0x24e1950usize)as*mut u8,();
66(EventMarker)__receiver)
67 }
68 }
69}
70
71#[cfg(feature = "app-eventmarker")]
72impl<__T: IEventMarker> IEventMarkerMethods for __T {}
73
74#[cfg(feature = "app-eventmarker")]
75impl EventMarker {
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-eventmarker")]
86impl EventMarker {
87 #[doc = "Direct (non-virtual) call to `EventMarker`'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-eventmarker")]
97impl EventMarker {
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!(EventMarker),
106 ::core::stringify!(new),
107 )
108 });
109 <Self as IEventMarkerMethods>::ctor(this);
110 this
111 }
112}
113
114#[cfg(feature = "app-eventmarker")]
115#[doc(hidden)]
116pub mod prelude {
117 pub use super::{EventMarker, IEventMarker, IEventMarkerMethods};
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}