engage/generated/app/
myroomcameramarker.rs1#[cfg(feature = "app-myroomcameramarker-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::{
10 object::{IObject, Object},
11 r#enum::{Enum, IEnum},
12 valuetype::{IValueType, ValueType},
13 },
14 unity_engine::{
15 object_2::{IObject_2, Object_2},
16 scriptableobject::{IScriptableObject, ScriptableObject},
17 timeline::marker::{IMarker, Marker},
18 },
19 };
20
21 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/myroomcameramarker/MyRoomCameraMarker.md"))]
22 #[::unity::class(namespace = "App", name = "MyRoomCameraMarker")]
23 #[parent(crate::unity_engine::timeline::marker::Marker)]
24 pub struct MyRoomCameraMarker {
25 #[offset(40)]
26 #[rename(name = "CameraType")]
27 pub camera_type: crate::app::myroomcameramarker::MyRoomCameraMarker_Type,
28 #[offset(48)]
29 #[rename(name = "CameraName")]
30 pub camera_name: ::unity::Il2CppString,
31 #[offset(56)]
32 #[rename(name = "AnimName")]
33 pub anim_name: ::unity::Il2CppString,
34 }
35
36 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/myroomcameramarker/MyRoomCameraMarker_Type.md"))]
37 #[repr(C)]
38 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
39 pub struct MyRoomCameraMarker_Type {
40 pub value: i32,
41 }
42 impl ::unity::ClassIdentity for MyRoomCameraMarker_Type {
43 const NAME: &'static str = "MyRoomCameraMarker.Type";
44 const NAMESPACE: &'static str = "App";
45
46 fn class() -> ::unity::Class {
47 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
48 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
49 }
50 }
51 impl ::unity::IlType for MyRoomCameraMarker_Type {
52 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
53 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
54 }
55 }
56 impl MyRoomCameraMarker_Type {
57 pub fn chara_camera() -> Self {
58 Self { value: 0 }
59 }
60
61 pub fn scene_camera() -> Self {
62 Self { value: 1 }
63 }
64 }
65}
66
67#[cfg(feature = "app-myroomcameramarker-types")]
68pub use __types::*;
69
70#[cfg(feature = "app-myroomcameramarker")]
71pub trait IMyRoomCameraMarkerMethods: IMyRoomCameraMarker {
72 #[doc = "`get_id()` overload"]
73 fn get_id(self) -> crate::unity_engine::propertyname::PropertyName {
74 unsafe {
75 let __receiver = <MyRoomCameraMarker as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76 {
77 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
78 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
79 panic!(
80 "unity: virtual slot {}
81 out of range (vtable len {}
82) on the runtime class behind {}
83 (method `{}
84`)",
85 9usize,
86 __vt.len(),
87 <MyRoomCameraMarker as ::unity::ClassIdentity>::NAME,
88 "get_id",
89 )
90 });
91 let __inner: extern "C" fn(MyRoomCameraMarker, ::unity::OptionalMethod) -> crate::unity_engine::propertyname::PropertyName =
92 ::core::mem::transmute(__vi.method_ptr);
93 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
94 __inner(__receiver, __mi)
95 }
96 }
97 }
98 #[doc = "`.ctor()` overload"]
99 fn ctor(self) -> () {
100 unsafe {
101 let __receiver = <MyRoomCameraMarker as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
102 ::unity::il2cpp_call!((::unity::module_base()+0x238c410usize)as*mut u8,();
103(MyRoomCameraMarker)__receiver)
104 }
105 }
106}
107
108#[cfg(feature = "app-myroomcameramarker")]
109impl<__T: IMyRoomCameraMarker> IMyRoomCameraMarkerMethods for __T {}
110
111#[cfg(feature = "app-myroomcameramarker")]
112impl MyRoomCameraMarker {
113 pub fn get_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
114 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
115 }
116
117 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
118 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
119 }
120}
121
122#[cfg(feature = "app-myroomcameramarker")]
123impl MyRoomCameraMarker {
124 #[doc = "Direct (non-virtual) call to `MyRoomCameraMarker`'s own `get_id`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
125 pub unsafe fn get_id(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::propertyname::PropertyName {
126 let __mi = Self::get_id_method_info();
127 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::propertyname::PropertyName =
128 ::core::mem::transmute(__mi.method_ptr);
129 __inner(this.into(), ::core::option::Option::None)
130 }
131}
132
133#[cfg(feature = "app-myroomcameramarker")]
134impl MyRoomCameraMarker {
135 #[doc = "`.ctor()` — no args"]
136 pub fn new() -> Self {
137 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
138 panic!(
139 "{}
140::{}
141 failed to instantiate",
142 ::core::stringify!(MyRoomCameraMarker),
143 ::core::stringify!(new),
144 )
145 });
146 <Self as IMyRoomCameraMarkerMethods>::ctor(this);
147 this
148 }
149}
150
151#[cfg(feature = "app-myroomcameramarker")]
152#[doc(hidden)]
153pub mod prelude {
154 pub use super::{IMyRoomCameraMarker, IMyRoomCameraMarkerMethods, MyRoomCameraMarker, MyRoomCameraMarker_Type};
155 #[cfg(feature = "system-object")]
156 pub use crate::system::object::IObjectMethods;
157 #[cfg(feature = "system-enum")]
158 pub use crate::system::r#enum::IEnumMethods;
159 #[cfg(feature = "system-valuetype")]
160 pub use crate::system::valuetype::IValueTypeMethods;
161 #[cfg(feature = "unity_engine-object_2")]
162 pub use crate::unity_engine::object_2::IObject_2Methods;
163 #[cfg(feature = "unity_engine-scriptableobject")]
164 pub use crate::unity_engine::scriptableobject::IScriptableObjectMethods;
165 #[cfg(feature = "unity_engine-timeline-marker")]
166 pub use crate::unity_engine::timeline::marker::IMarkerMethods;
167 pub use crate::{
168 system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
169 unity_engine::{object_2::IObject_2, scriptableobject::IScriptableObject, timeline::marker::IMarker},
170 };
171}