Skip to main content

engage/generated/root_motion/
inspectorcomment.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root_motion-inspectorcomment-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::propertyattribute::{IPropertyAttribute, PropertyAttribute},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root_motion/inspectorcomment/InspectorComment.md"))]
14    #[::unity::class(namespace = "RootMotion", name = "InspectorComment")]
15    #[parent(crate::unity_engine::propertyattribute::PropertyAttribute)]
16    pub struct InspectorComment {
17        #[offset(16)]
18        #[rename(name = "name")]
19        pub name: ::unity::Il2CppString,
20        #[offset(24)]
21        #[rename(name = "color")]
22        pub color: ::unity::Il2CppString,
23    }
24}
25
26#[cfg(feature = "root_motion-inspectorcomment-types")]
27pub use __types::*;
28
29#[cfg(feature = "root_motion-inspectorcomment")]
30pub trait IInspectorCommentMethods: IInspectorComment {
31    #[doc = "`.ctor(::unity::Il2CppString)` overload"]
32    fn ctor(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
33        unsafe {
34            let __receiver = <InspectorComment as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
35            ::unity::il2cpp_call!((::unity::module_base()+0x2916800usize)as*mut u8,();
36(InspectorComment)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
37        }
38    }
39    #[doc = "`.ctor(::unity::Il2CppString, ::unity::Il2CppString)` overload"]
40    fn ctor_2(self, name: impl ::core::convert::Into<::unity::Il2CppString>, color: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
41        unsafe {
42            let __receiver = <InspectorComment as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43            ::unity::il2cpp_call!((::unity::module_base()+0x2916890usize)as*mut u8,();
44(InspectorComment)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name),(::unity::Il2CppString)::core::convert::Into::into(color))
45        }
46    }
47}
48
49#[cfg(feature = "root_motion-inspectorcomment")]
50impl<__T: IInspectorComment> IInspectorCommentMethods for __T {}
51
52#[cfg(feature = "root_motion-inspectorcomment")]
53impl InspectorComment {
54    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
55        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
56    }
57
58    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
59        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
60    }
61}
62
63#[cfg(feature = "root_motion-inspectorcomment")]
64impl InspectorComment {
65    #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
66    pub fn new(name: ::unity::Il2CppString) -> Self {
67        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
68            panic!(
69                "{}
70::{}
71 failed to instantiate",
72                ::core::stringify!(InspectorComment),
73                ::core::stringify!(new),
74            )
75        });
76        <Self as IInspectorCommentMethods>::ctor(this, name);
77        this
78    }
79
80    #[doc = "`.ctor(::unity::Il2CppString, ::unity::Il2CppString)` — overload selector"]
81    pub fn new_2(name: ::unity::Il2CppString, color: ::unity::Il2CppString) -> Self {
82        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
83            panic!(
84                "{}
85::{}
86 failed to instantiate",
87                ::core::stringify!(InspectorComment),
88                ::core::stringify!(new_2),
89            )
90        });
91        <Self as IInspectorCommentMethods>::ctor_2(this, name, color);
92        this
93    }
94}
95
96#[cfg(feature = "root_motion-inspectorcomment")]
97#[doc(hidden)]
98pub mod prelude {
99    pub use super::{IInspectorComment, IInspectorCommentMethods, InspectorComment};
100    #[cfg(feature = "system-object")]
101    pub use crate::system::object::IObjectMethods;
102    #[cfg(feature = "unity_engine-propertyattribute")]
103    pub use crate::unity_engine::propertyattribute::IPropertyAttributeMethods;
104    pub use crate::{system::object::IObject, unity_engine::propertyattribute::IPropertyAttribute};
105}