Skip to main content

engage/generated/app/talk3_d/
talktagwindow.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-talk3_d-talktagwindow-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::{
11            object::{IObject, Object},
12            r#enum::{Enum, IEnum},
13            valuetype::{IValueType, ValueType},
14        },
15    };
16
17    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/talk3_d/talktagwindow/TalkTagWindow_TagID.md"))]
18    #[repr(C)]
19    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
20    pub struct TalkTagWindow_TagID {
21        pub value: i32,
22    }
23    impl ::unity::ClassIdentity for TalkTagWindow_TagID {
24        const NAME: &'static str = "TalkTagWindow.TagID";
25        const NAMESPACE: &'static str = "App.Talk3D";
26
27        fn class() -> ::unity::Class {
28            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
29            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
30        }
31    }
32    impl ::unity::IlType for TalkTagWindow_TagID {
33        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
34            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
35        }
36    }
37    impl TalkTagWindow_TagID {
38        pub fn make() -> Self {
39            Self { value: 0 }
40        }
41
42        pub fn delete() -> Self {
43            Self { value: 1 }
44        }
45
46        pub fn active() -> Self {
47            Self { value: 2 }
48        }
49
50        pub fn try_make() -> Self {
51            Self { value: 3 }
52        }
53
54        pub fn silhouette_on() -> Self {
55            Self { value: 4 }
56        }
57
58        pub fn silhouette_off() -> Self {
59            Self { value: 5 }
60        }
61
62        pub fn show_model() -> Self {
63            Self { value: 6 }
64        }
65
66        pub fn hide_model() -> Self {
67            Self { value: 7 }
68        }
69
70        pub fn show_bg() -> Self {
71            Self { value: 8 }
72        }
73
74        pub fn hide_bg() -> Self {
75            Self { value: 9 }
76        }
77    }
78
79    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/talk3_d/talktagwindow/TalkTagWindow.md"))]
80    #[::unity::class(namespace = "App.Talk3D", name = "TalkTagWindow")]
81    #[parent(crate::app::talk3_d::talktag::TalkTag)]
82    pub struct TalkTagWindow {
83        #[offset(16)]
84        #[rename(name = "m_TagID")]
85        pub m_tag_id: crate::app::talk3_d::talktagwindow::TalkTagWindow_TagID,
86        #[offset(24)]
87        #[rename(name = "m_Pid")]
88        pub m_pid: ::unity::Il2CppString,
89        #[offset(32)]
90        #[rename(name = "m_PidForCreate")]
91        pub m_pid_for_create: ::unity::Il2CppString,
92        #[offset(40)]
93        #[rename(name = "m_LocationName")]
94        pub m_location_name: ::unity::Il2CppString,
95        #[offset(48)]
96        #[rename(name = "m_ReplaceName")]
97        pub m_replace_name: ::unity::Il2CppString,
98    }
99}
100
101#[cfg(feature = "app-talk3_d-talktagwindow-types")]
102pub use __types::*;
103
104#[cfg(feature = "app-talk3_d-talktagwindow")]
105pub trait ITalkTagWindowMethods: ITalkTagWindow {
106    #[doc = "`Initialize(crate::app::talk3_d::talkptr::TalkPtr)` overload"]
107    fn initialize(self, talk_ptr: impl ::core::convert::Into<crate::app::talk3_d::talkptr::TalkPtr>) -> () {
108        unsafe {
109            let __receiver = <TalkTagWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
110            {
111                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
112                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
113                    panic!(
114                        "unity: virtual slot {}
115 out of range (vtable len {}
116) on the runtime class behind {}
117 (method `{}
118`)",
119                        4usize,
120                        __vt.len(),
121                        <TalkTagWindow as ::unity::ClassIdentity>::NAME,
122                        "Initialize",
123                    )
124                });
125                let __inner: extern "C" fn(TalkTagWindow, crate::app::talk3_d::talkptr::TalkPtr, ::unity::OptionalMethod) -> () =
126                    ::core::mem::transmute(__vi.method_ptr);
127                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
128                __inner(__receiver, ::core::convert::Into::into(talk_ptr), __mi)
129            }
130        }
131    }
132    #[doc = "`Execute()` overload"]
133    fn execute(self) -> () {
134        unsafe {
135            let __receiver = <TalkTagWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
136            {
137                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
138                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
139                    panic!(
140                        "unity: virtual slot {}
141 out of range (vtable len {}
142) on the runtime class behind {}
143 (method `{}
144`)",
145                        5usize,
146                        __vt.len(),
147                        <TalkTagWindow as ::unity::ClassIdentity>::NAME,
148                        "Execute",
149                    )
150                });
151                let __inner: extern "C" fn(TalkTagWindow, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
152                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
153                __inner(__receiver, __mi)
154            }
155        }
156    }
157    #[doc = "`ExecuteForCharacterPreLoad()` overload"]
158    fn execute_for_character_pre_load(self) -> () {
159        unsafe {
160            let __receiver = <TalkTagWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
161            {
162                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
163                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
164                    panic!(
165                        "unity: virtual slot {}
166 out of range (vtable len {}
167) on the runtime class behind {}
168 (method `{}
169`)",
170                        6usize,
171                        __vt.len(),
172                        <TalkTagWindow as ::unity::ClassIdentity>::NAME,
173                        "ExecuteForCharacterPreLoad",
174                    )
175                });
176                let __inner: extern "C" fn(TalkTagWindow, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
177                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
178                __inner(__receiver, __mi)
179            }
180        }
181    }
182    #[doc = "`GetResult()` overload"]
183    fn get_result(self) -> crate::app::talk3_d::talktag::TalkTag_Result {
184        unsafe {
185            let __receiver = <TalkTagWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
186            {
187                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
188                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
189                    panic!(
190                        "unity: virtual slot {}
191 out of range (vtable len {}
192) on the runtime class behind {}
193 (method `{}
194`)",
195                        8usize,
196                        __vt.len(),
197                        <TalkTagWindow as ::unity::ClassIdentity>::NAME,
198                        "GetResult",
199                    )
200                });
201                let __inner: extern "C" fn(TalkTagWindow, ::unity::OptionalMethod) -> crate::app::talk3_d::talktag::TalkTag_Result =
202                    ::core::mem::transmute(__vi.method_ptr);
203                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
204                __inner(__receiver, __mi)
205            }
206        }
207    }
208    #[doc = "`GetPID()` overload"]
209    fn get_pid(self) -> ::unity::Il2CppString {
210        unsafe {
211            let __receiver = <TalkTagWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
212            ::unity::il2cpp_call!((::unity::module_base()+0x21dcae0usize)as*mut u8, ::unity::Il2CppString;
213(TalkTagWindow)__receiver)
214        }
215    }
216    #[doc = "`.ctor()` overload"]
217    fn ctor(self) -> () {
218        unsafe {
219            let __receiver = <TalkTagWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
220            ::unity::il2cpp_call!((::unity::module_base()+0x21da880usize)as*mut u8,();
221(TalkTagWindow)__receiver)
222        }
223    }
224}
225
226#[cfg(feature = "app-talk3_d-talktagwindow")]
227impl<__T: ITalkTagWindow> ITalkTagWindowMethods for __T {}
228
229#[cfg(feature = "app-talk3_d-talktagwindow")]
230impl TalkTagWindow {
231    pub fn initialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
232        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
233    }
234
235    pub fn execute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
236        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
237    }
238
239    pub fn execute_for_character_pre_load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
240        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
241    }
242
243    pub fn get_result_method_info() -> &'static ::unity::il2cpp::MethodInfo {
244        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
245    }
246
247    pub fn get_pid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
248        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
249    }
250
251    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
252        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
253    }
254}
255
256#[cfg(feature = "app-talk3_d-talktagwindow")]
257impl TalkTagWindow {
258    #[doc = "Direct (non-virtual) call to `TalkTagWindow`'s own `Initialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
259    pub unsafe fn initialize(this: impl ::core::convert::Into<::unity::IlInstance>, talk_ptr: crate::app::talk3_d::talkptr::TalkPtr) -> () {
260        let __mi = Self::initialize_method_info();
261        let __inner: extern "C" fn(::unity::IlInstance, crate::app::talk3_d::talkptr::TalkPtr, ::unity::OptionalMethod) -> () =
262            ::core::mem::transmute(__mi.method_ptr);
263        __inner(this.into(), talk_ptr, ::core::option::Option::None)
264    }
265
266    #[doc = "Direct (non-virtual) call to `TalkTagWindow`'s own `Execute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
267    pub unsafe fn execute(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
268        let __mi = Self::execute_method_info();
269        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
270        __inner(this.into(), ::core::option::Option::None)
271    }
272
273    #[doc = "Direct (non-virtual) call to `TalkTagWindow`'s own `ExecuteForCharacterPreLoad`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
274    pub unsafe fn execute_for_character_pre_load(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
275        let __mi = Self::execute_for_character_pre_load_method_info();
276        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
277        __inner(this.into(), ::core::option::Option::None)
278    }
279
280    #[doc = "Direct (non-virtual) call to `TalkTagWindow`'s own `GetResult`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
281    pub unsafe fn get_result(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::talk3_d::talktag::TalkTag_Result {
282        let __mi = Self::get_result_method_info();
283        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::talk3_d::talktag::TalkTag_Result =
284            ::core::mem::transmute(__mi.method_ptr);
285        __inner(this.into(), ::core::option::Option::None)
286    }
287}
288
289#[cfg(feature = "app-talk3_d-talktagwindow")]
290impl TalkTagWindow {
291    #[doc = "`.ctor()` — no args"]
292    pub fn new() -> Self {
293        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
294            panic!(
295                "{}
296::{}
297 failed to instantiate",
298                ::core::stringify!(TalkTagWindow),
299                ::core::stringify!(new),
300            )
301        });
302        <Self as ITalkTagWindowMethods>::ctor(this);
303        this
304    }
305}
306
307#[cfg(feature = "app-talk3_d-talktagwindow")]
308#[doc(hidden)]
309pub mod prelude {
310    pub use super::{ITalkTagWindow, ITalkTagWindowMethods, TalkTagWindow, TalkTagWindow_TagID};
311    #[cfg(feature = "app-talk3_d-talktag")]
312    pub use crate::app::talk3_d::talktag::ITalkTagMethods;
313    #[cfg(feature = "system-object")]
314    pub use crate::system::object::IObjectMethods;
315    #[cfg(feature = "system-enum")]
316    pub use crate::system::r#enum::IEnumMethods;
317    #[cfg(feature = "system-valuetype")]
318    pub use crate::system::valuetype::IValueTypeMethods;
319    pub use crate::{
320        app::talk3_d::talktag::ITalkTag,
321        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
322    };
323}