Skip to main content

engage/generated/app/talk3_d/
talktagtext.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-talk3_d-talktagtext-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::talk3_d::talktag::{ITalkTag, TalkTag},
10        system::object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/talk3_d/talktagtext/TalkTagText.md"))]
14    #[::unity::class(namespace = "App.Talk3D", name = "TalkTagText")]
15    #[parent(crate::app::talk3_d::talktag::TalkTag)]
16    pub struct TalkTagText {
17        #[offset(16)]
18        #[rename(name = "m_TagID")]
19        pub m_tag_id: crate::app::mess::Mess_TagID_Text,
20        #[offset(20)]
21        #[rename(name = "m_Pixel")]
22        pub m_pixel: u32,
23        #[offset(24)]
24        #[rename(name = "m_Result")]
25        pub m_result: crate::app::talk3_d::talktag::TalkTag_Result,
26    }
27}
28
29#[cfg(feature = "app-talk3_d-talktagtext-types")]
30pub use __types::*;
31
32#[cfg(feature = "app-talk3_d-talktagtext")]
33pub trait ITalkTagTextMethods: ITalkTagText {
34    #[doc = "`Initialize(crate::app::talk3_d::talkptr::TalkPtr)` overload"]
35    fn initialize(self, talk_ptr: impl ::core::convert::Into<crate::app::talk3_d::talkptr::TalkPtr>) -> () {
36        unsafe {
37            let __receiver = <TalkTagText as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
38            {
39                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
40                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
41                    panic!(
42                        "unity: virtual slot {}
43 out of range (vtable len {}
44) on the runtime class behind {}
45 (method `{}
46`)",
47                        4usize,
48                        __vt.len(),
49                        <TalkTagText as ::unity::ClassIdentity>::NAME,
50                        "Initialize",
51                    )
52                });
53                let __inner: extern "C" fn(TalkTagText, crate::app::talk3_d::talkptr::TalkPtr, ::unity::OptionalMethod) -> () =
54                    ::core::mem::transmute(__vi.method_ptr);
55                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
56                __inner(__receiver, ::core::convert::Into::into(talk_ptr), __mi)
57            }
58        }
59    }
60    #[doc = "`Execute()` overload"]
61    fn execute(self) -> () {
62        unsafe {
63            let __receiver = <TalkTagText as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64            {
65                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
66                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
67                    panic!(
68                        "unity: virtual slot {}
69 out of range (vtable len {}
70) on the runtime class behind {}
71 (method `{}
72`)",
73                        5usize,
74                        __vt.len(),
75                        <TalkTagText as ::unity::ClassIdentity>::NAME,
76                        "Execute",
77                    )
78                });
79                let __inner: extern "C" fn(TalkTagText, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
80                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
81                __inner(__receiver, __mi)
82            }
83        }
84    }
85    #[doc = "`GetResult()` overload"]
86    fn get_result(self) -> crate::app::talk3_d::talktag::TalkTag_Result {
87        unsafe {
88            let __receiver = <TalkTagText as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
89            {
90                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
91                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
92                    panic!(
93                        "unity: virtual slot {}
94 out of range (vtable len {}
95) on the runtime class behind {}
96 (method `{}
97`)",
98                        8usize,
99                        __vt.len(),
100                        <TalkTagText as ::unity::ClassIdentity>::NAME,
101                        "GetResult",
102                    )
103                });
104                let __inner: extern "C" fn(TalkTagText, ::unity::OptionalMethod) -> crate::app::talk3_d::talktag::TalkTag_Result =
105                    ::core::mem::transmute(__vi.method_ptr);
106                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
107                __inner(__receiver, __mi)
108            }
109        }
110    }
111    #[doc = "`.ctor()` overload"]
112    fn ctor(self) -> () {
113        unsafe {
114            let __receiver = <TalkTagText as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
115            ::unity::il2cpp_call!((::unity::module_base()+0x21da890usize)as*mut u8,();
116(TalkTagText)__receiver)
117        }
118    }
119}
120
121#[cfg(feature = "app-talk3_d-talktagtext")]
122impl<__T: ITalkTagText> ITalkTagTextMethods for __T {}
123
124#[cfg(feature = "app-talk3_d-talktagtext")]
125impl TalkTagText {
126    pub fn initialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
127        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
128    }
129
130    pub fn execute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
131        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
132    }
133
134    pub fn get_result_method_info() -> &'static ::unity::il2cpp::MethodInfo {
135        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
136    }
137
138    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
139        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
140    }
141}
142
143#[cfg(feature = "app-talk3_d-talktagtext")]
144impl TalkTagText {
145    #[doc = "Direct (non-virtual) call to `TalkTagText`'s own `Initialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
146    pub unsafe fn initialize(this: impl ::core::convert::Into<::unity::IlInstance>, talk_ptr: crate::app::talk3_d::talkptr::TalkPtr) -> () {
147        let __mi = Self::initialize_method_info();
148        let __inner: extern "C" fn(::unity::IlInstance, crate::app::talk3_d::talkptr::TalkPtr, ::unity::OptionalMethod) -> () =
149            ::core::mem::transmute(__mi.method_ptr);
150        __inner(this.into(), talk_ptr, ::core::option::Option::None)
151    }
152
153    #[doc = "Direct (non-virtual) call to `TalkTagText`'s own `Execute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
154    pub unsafe fn execute(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
155        let __mi = Self::execute_method_info();
156        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
157        __inner(this.into(), ::core::option::Option::None)
158    }
159
160    #[doc = "Direct (non-virtual) call to `TalkTagText`'s own `GetResult`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
161    pub unsafe fn get_result(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::talk3_d::talktag::TalkTag_Result {
162        let __mi = Self::get_result_method_info();
163        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::talk3_d::talktag::TalkTag_Result =
164            ::core::mem::transmute(__mi.method_ptr);
165        __inner(this.into(), ::core::option::Option::None)
166    }
167}
168
169#[cfg(feature = "app-talk3_d-talktagtext")]
170impl TalkTagText {
171    #[doc = "`.ctor()` — no args"]
172    pub fn new() -> Self {
173        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
174            panic!(
175                "{}
176::{}
177 failed to instantiate",
178                ::core::stringify!(TalkTagText),
179                ::core::stringify!(new),
180            )
181        });
182        <Self as ITalkTagTextMethods>::ctor(this);
183        this
184    }
185}
186
187#[cfg(feature = "app-talk3_d-talktagtext")]
188#[doc(hidden)]
189pub mod prelude {
190    pub use super::{ITalkTagText, ITalkTagTextMethods, TalkTagText};
191    #[cfg(feature = "app-talk3_d-talktag")]
192    pub use crate::app::talk3_d::talktag::ITalkTagMethods;
193    #[cfg(feature = "system-object")]
194    pub use crate::system::object::IObjectMethods;
195    pub use crate::{app::talk3_d::talktag::ITalkTag, system::object::IObject};
196}