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