Skip to main content

engage/generated/root_motion/
demoguimessage.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root_motion-demoguimessage-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_motion/demoguimessage/DemoGUIMessage.md"))]
19    #[::unity::class(namespace = "RootMotion", name = "DemoGUIMessage")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct DemoGUIMessage {
22        #[offset(24)]
23        #[rename(name = "text")]
24        pub text: ::unity::Il2CppString,
25        #[offset(32)]
26        #[rename(name = "color")]
27        pub color: crate::unity_engine::color::Color,
28    }
29}
30
31#[cfg(feature = "root_motion-demoguimessage-types")]
32pub use __types::*;
33
34#[cfg(feature = "root_motion-demoguimessage")]
35pub trait IDemoGUIMessageMethods: IDemoGUIMessage {
36    #[doc = "`OnGUI()` overload"]
37    fn on_gui(self) -> () {
38        unsafe {
39            let __receiver = <DemoGUIMessage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40            ::unity::il2cpp_call!((::unity::module_base()+0x1ceab90usize)as*mut u8,();
41(DemoGUIMessage)__receiver)
42        }
43    }
44    #[doc = "`.ctor()` overload"]
45    fn ctor(self) -> () {
46        unsafe {
47            let __receiver = <DemoGUIMessage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48            ::unity::il2cpp_call!((::unity::module_base()+0x1ceacf0usize)as*mut u8,();
49(DemoGUIMessage)__receiver)
50        }
51    }
52}
53
54#[cfg(feature = "root_motion-demoguimessage")]
55impl<__T: IDemoGUIMessage> IDemoGUIMessageMethods for __T {}
56
57#[cfg(feature = "root_motion-demoguimessage")]
58impl DemoGUIMessage {
59    pub fn on_gui_method_info() -> &'static ::unity::il2cpp::MethodInfo {
60        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
61    }
62
63    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
64        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
65    }
66}
67
68#[cfg(feature = "root_motion-demoguimessage")]
69impl DemoGUIMessage {
70    #[doc = "`.ctor()` — no args"]
71    pub fn new() -> Self {
72        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
73            panic!(
74                "{}
75::{}
76 failed to instantiate",
77                ::core::stringify!(DemoGUIMessage),
78                ::core::stringify!(new),
79            )
80        });
81        <Self as IDemoGUIMessageMethods>::ctor(this);
82        this
83    }
84}
85
86#[cfg(feature = "root_motion-demoguimessage")]
87#[doc(hidden)]
88pub mod prelude {
89    pub use super::{DemoGUIMessage, IDemoGUIMessage, IDemoGUIMessageMethods};
90    #[cfg(feature = "system-object")]
91    pub use crate::system::object::IObjectMethods;
92    #[cfg(feature = "unity_engine-behaviour")]
93    pub use crate::unity_engine::behaviour::IBehaviourMethods;
94    #[cfg(feature = "unity_engine-component")]
95    pub use crate::unity_engine::component::IComponentMethods;
96    #[cfg(feature = "unity_engine-monobehaviour")]
97    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
98    #[cfg(feature = "unity_engine-object_2")]
99    pub use crate::unity_engine::object_2::IObject_2Methods;
100    pub use crate::{
101        system::object::IObject,
102        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
103    };
104}