engage/generated/app/
targethidemarker.rs1#[cfg(feature = "app-targethidemarker-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/targethidemarker/TargetHideMarker.md"))]
18 #[::unity::class(namespace = "App", name = "TargetHideMarker")]
19 #[parent(crate::unity_engine::timeline::marker::Marker)]
20 pub struct TargetHideMarker {
21 #[offset(40)]
22 #[rename(name = "targetLocator")]
23 pub target_locator: ::unity::Array<::unity::Il2CppString>,
24 }
25}
26
27#[cfg(feature = "app-targethidemarker-types")]
28pub use __types::*;
29
30#[cfg(feature = "app-targethidemarker")]
31pub trait ITargetHideMarkerMethods: ITargetHideMarker {
32 #[doc = "`get_id()` overload"]
33 fn get_id(self) -> crate::unity_engine::propertyname::PropertyName {
34 unsafe {
35 let __receiver = <TargetHideMarker 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 <TargetHideMarker as ::unity::ClassIdentity>::NAME,
48 "get_id",
49 )
50 });
51 let __inner: extern "C" fn(TargetHideMarker, ::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 = <TargetHideMarker as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
62 ::unity::il2cpp_call!((::unity::module_base()+0x21ddd00usize)as*mut u8,();
63(TargetHideMarker)__receiver)
64 }
65 }
66}
67
68#[cfg(feature = "app-targethidemarker")]
69impl<__T: ITargetHideMarker> ITargetHideMarkerMethods for __T {}
70
71#[cfg(feature = "app-targethidemarker")]
72impl TargetHideMarker {
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-targethidemarker")]
83impl TargetHideMarker {
84 #[doc = "Direct (non-virtual) call to `TargetHideMarker`'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-targethidemarker")]
94impl TargetHideMarker {
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!(TargetHideMarker),
103 ::core::stringify!(new),
104 )
105 });
106 <Self as ITargetHideMarkerMethods>::ctor(this);
107 this
108 }
109}
110
111#[cfg(feature = "app-targethidemarker")]
112#[doc(hidden)]
113pub mod prelude {
114 pub use super::{ITargetHideMarker, ITargetHideMarkerMethods, TargetHideMarker};
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}