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