engage/generated/root/
mvproot.rs1#[cfg(feature = "root-mvproot-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 behaviour::{Behaviour, IBehaviour},
12 component::{Component, IComponent},
13 monobehaviour::{IMonoBehaviour, MonoBehaviour},
14 object_2::{IObject_2, Object_2},
15 },
16 };
17
18 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/mvproot/MVPRoot.md"))]
19 #[::unity::class(namespace = "", name = "MVPRoot")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct MVPRoot {
22 #[offset(24)]
23 #[rename(name = "m_MVPTitleText")]
24 pub m_mvp_title_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
25 #[offset(32)]
26 #[rename(name = "m_UnitText")]
27 pub m_unit_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
28 #[offset(40)]
29 #[rename(name = "m_GodObj")]
30 pub m_god_obj: crate::unity_engine::gameobject::GameObject,
31 #[offset(48)]
32 #[rename(name = "m_TurnTitleText")]
33 pub m_turn_title_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
34 #[offset(56)]
35 #[rename(name = "m_ValueText")]
36 pub m_value_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
37 }
38}
39
40#[cfg(feature = "root-mvproot-types")]
41pub use __types::*;
42
43#[cfg(feature = "root-mvproot")]
44pub trait IMVPRootMethods: IMVPRoot {
45 #[doc = "`Start()` overload"]
46 fn start(self) -> () {
47 unsafe {
48 let __receiver = <MVPRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
49 ::unity::il2cpp_call!((::unity::module_base()+0x1bf12a0usize)as*mut u8,();
50(MVPRoot)__receiver)
51 }
52 }
53 #[doc = "`OnDisable()` overload"]
54 fn on_disable(self) -> () {
55 unsafe {
56 let __receiver = <MVPRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57 ::unity::il2cpp_call!((::unity::module_base()+0x1bf1730usize)as*mut u8,();
58(MVPRoot)__receiver)
59 }
60 }
61 #[doc = "`.ctor()` overload"]
62 fn ctor(self) -> () {
63 unsafe {
64 let __receiver = <MVPRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
65 ::unity::il2cpp_call!((::unity::module_base()+0x1bf17c0usize)as*mut u8,();
66(MVPRoot)__receiver)
67 }
68 }
69}
70
71#[cfg(feature = "root-mvproot")]
72impl<__T: IMVPRoot> IMVPRootMethods for __T {}
73
74#[cfg(feature = "root-mvproot")]
75impl MVPRoot {
76 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
77 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
78 }
79
80 pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
81 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
82 }
83
84 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
85 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
86 }
87}
88
89#[cfg(feature = "root-mvproot")]
90impl MVPRoot {
91 #[doc = "`.ctor()` — no args"]
92 pub fn new() -> Self {
93 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
94 panic!(
95 "{}
96::{}
97 failed to instantiate",
98 ::core::stringify!(MVPRoot),
99 ::core::stringify!(new),
100 )
101 });
102 <Self as IMVPRootMethods>::ctor(this);
103 this
104 }
105}
106
107#[cfg(feature = "root-mvproot")]
108#[doc(hidden)]
109pub mod prelude {
110 pub use super::{IMVPRoot, IMVPRootMethods, MVPRoot};
111 #[cfg(feature = "system-object")]
112 pub use crate::system::object::IObjectMethods;
113 #[cfg(feature = "unity_engine-behaviour")]
114 pub use crate::unity_engine::behaviour::IBehaviourMethods;
115 #[cfg(feature = "unity_engine-component")]
116 pub use crate::unity_engine::component::IComponentMethods;
117 #[cfg(feature = "unity_engine-monobehaviour")]
118 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
119 #[cfg(feature = "unity_engine-object_2")]
120 pub use crate::unity_engine::object_2::IObject_2Methods;
121 pub use crate::{
122 system::object::IObject,
123 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
124 };
125}