Skip to main content

engage/generated/app/
helpitemfixedtext.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-helpitemfixedtext-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::helpitembase::{HelpItemBase, IHelpItemBase},
10        system::object::{IObject, Object},
11        unity_engine::{
12            behaviour::{Behaviour, IBehaviour},
13            component::{Component, IComponent},
14            monobehaviour::{IMonoBehaviour, MonoBehaviour},
15            object_2::{IObject_2, Object_2},
16        },
17    };
18
19    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/helpitemfixedtext/HelpItemFixedText.md"))]
20    #[::unity::class(namespace = "App", name = "HelpItemFixedText")]
21    #[parent(crate::app::helpitembase::HelpItemBase)]
22    pub struct HelpItemFixedText {
23        #[offset(80)]
24        #[rename(name = "m_MID")]
25        pub m_mid: ::unity::Il2CppString,
26    }
27}
28
29#[cfg(feature = "app-helpitemfixedtext-types")]
30pub use __types::*;
31
32#[cfg(feature = "app-helpitemfixedtext")]
33pub trait IHelpItemFixedTextMethods: IHelpItemFixedText {
34    #[doc = "`SetData(::unity::Il2CppString)` overload"]
35    fn set_data(self, mid: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
36        unsafe {
37            let __receiver = <HelpItemFixedText as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
38            ::unity::il2cpp_call!((::unity::module_base()+0x297d2a0usize)as*mut u8,();
39(HelpItemFixedText)__receiver,(::unity::Il2CppString)::core::convert::Into::into(mid))
40        }
41    }
42    #[doc = "`IsValid()` overload"]
43    fn is_valid(self) -> bool {
44        unsafe {
45            let __receiver = <HelpItemFixedText as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
46            {
47                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
48                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
49                    panic!(
50                        "unity: virtual slot {}
51 out of range (vtable len {}
52) on the runtime class behind {}
53 (method `{}
54`)",
55                        7usize,
56                        __vt.len(),
57                        <HelpItemFixedText as ::unity::ClassIdentity>::NAME,
58                        "IsValid",
59                    )
60                });
61                let __inner: extern "C" fn(HelpItemFixedText, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
62                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
63                __inner(__receiver, __mi)
64            }
65        }
66    }
67    #[doc = "`SetContents(crate::app::helpparamsetter::HelpParamSetter)` overload"]
68    fn set_contents(self, setter: impl ::core::convert::Into<crate::app::helpparamsetter::HelpParamSetter>) -> () {
69        unsafe {
70            let __receiver = <HelpItemFixedText as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
71            {
72                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
73                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
74                    panic!(
75                        "unity: virtual slot {}
76 out of range (vtable len {}
77) on the runtime class behind {}
78 (method `{}
79`)",
80                        6usize,
81                        __vt.len(),
82                        <HelpItemFixedText as ::unity::ClassIdentity>::NAME,
83                        "SetContents",
84                    )
85                });
86                let __inner: extern "C" fn(HelpItemFixedText, crate::app::helpparamsetter::HelpParamSetter, ::unity::OptionalMethod) -> () =
87                    ::core::mem::transmute(__vi.method_ptr);
88                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
89                __inner(__receiver, ::core::convert::Into::into(setter), __mi)
90            }
91        }
92    }
93    #[doc = "`.ctor()` overload"]
94    fn ctor(self) -> () {
95        unsafe {
96            let __receiver = <HelpItemFixedText as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
97            ::unity::il2cpp_call!((::unity::module_base()+0x297d380usize)as*mut u8,();
98(HelpItemFixedText)__receiver)
99        }
100    }
101}
102
103#[cfg(feature = "app-helpitemfixedtext")]
104impl<__T: IHelpItemFixedText> IHelpItemFixedTextMethods for __T {}
105
106#[cfg(feature = "app-helpitemfixedtext")]
107impl HelpItemFixedText {
108    pub fn set_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
109        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
110    }
111
112    pub fn is_valid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
113        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
114    }
115
116    pub fn set_contents_method_info() -> &'static ::unity::il2cpp::MethodInfo {
117        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
118    }
119
120    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
121        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
122    }
123}
124
125#[cfg(feature = "app-helpitemfixedtext")]
126impl HelpItemFixedText {
127    #[doc = "Direct (non-virtual) call to `HelpItemFixedText`'s own `IsValid`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
128    pub unsafe fn is_valid(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
129        let __mi = Self::is_valid_method_info();
130        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
131        __inner(this.into(), ::core::option::Option::None)
132    }
133
134    #[doc = "Direct (non-virtual) call to `HelpItemFixedText`'s own `SetContents`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
135    pub unsafe fn set_contents(this: impl ::core::convert::Into<::unity::IlInstance>, setter: crate::app::helpparamsetter::HelpParamSetter) -> () {
136        let __mi = Self::set_contents_method_info();
137        let __inner: extern "C" fn(::unity::IlInstance, crate::app::helpparamsetter::HelpParamSetter, ::unity::OptionalMethod) -> () =
138            ::core::mem::transmute(__mi.method_ptr);
139        __inner(this.into(), setter, ::core::option::Option::None)
140    }
141}
142
143#[cfg(feature = "app-helpitemfixedtext")]
144impl HelpItemFixedText {
145    #[doc = "`.ctor()` — no args"]
146    pub fn new() -> Self {
147        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
148            panic!(
149                "{}
150::{}
151 failed to instantiate",
152                ::core::stringify!(HelpItemFixedText),
153                ::core::stringify!(new),
154            )
155        });
156        <Self as IHelpItemFixedTextMethods>::ctor(this);
157        this
158    }
159}
160
161#[cfg(feature = "app-helpitemfixedtext")]
162#[doc(hidden)]
163pub mod prelude {
164    pub use super::{HelpItemFixedText, IHelpItemFixedText, IHelpItemFixedTextMethods};
165    #[cfg(feature = "app-helpitembase")]
166    pub use crate::app::helpitembase::IHelpItemBaseMethods;
167    #[cfg(feature = "system-object")]
168    pub use crate::system::object::IObjectMethods;
169    #[cfg(feature = "unity_engine-behaviour")]
170    pub use crate::unity_engine::behaviour::IBehaviourMethods;
171    #[cfg(feature = "unity_engine-component")]
172    pub use crate::unity_engine::component::IComponentMethods;
173    #[cfg(feature = "unity_engine-monobehaviour")]
174    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
175    #[cfg(feature = "unity_engine-object_2")]
176    pub use crate::unity_engine::object_2::IObject_2Methods;
177    pub use crate::{
178        app::helpitembase::IHelpItemBase,
179        system::object::IObject,
180        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
181    };
182}