Skip to main content

engage/generated/app/talk3_d/
talktaglocalize.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-talk3_d-talktaglocalize-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/talktaglocalize/TalkTagLocalize.md"))]
14    #[::unity::class(namespace = "App.Talk3D", name = "TalkTagLocalize")]
15    #[parent(crate::app::talk3_d::talktag::TalkTag)]
16    pub struct TalkTagLocalize {
17        #[offset(16)]
18        #[rename(name = "m_TagID")]
19        pub m_tag_id: crate::app::mess::Mess_TagID_Localize,
20        #[offset(24)]
21        #[rename(name = "m_ReplaceStr0")]
22        pub m_replace_str0: ::unity::Il2CppString,
23        #[offset(32)]
24        #[rename(name = "m_ReplaceStr1")]
25        pub m_replace_str1: ::unity::Il2CppString,
26    }
27}
28
29#[cfg(feature = "app-talk3_d-talktaglocalize-types")]
30pub use __types::*;
31
32#[cfg(feature = "app-talk3_d-talktaglocalize")]
33pub trait ITalkTagLocalizeMethods: ITalkTagLocalize {
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 = <TalkTagLocalize 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                        <TalkTagLocalize as ::unity::ClassIdentity>::NAME,
50                        "Initialize",
51                    )
52                });
53                let __inner: extern "C" fn(TalkTagLocalize, 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 = <TalkTagLocalize 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                        <TalkTagLocalize as ::unity::ClassIdentity>::NAME,
76                        "Execute",
77                    )
78                });
79                let __inner: extern "C" fn(TalkTagLocalize, ::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 = <TalkTagLocalize 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                        <TalkTagLocalize as ::unity::ClassIdentity>::NAME,
101                        "GetResult",
102                    )
103                });
104                let __inner: extern "C" fn(TalkTagLocalize, ::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 = "`GetTagID()` overload"]
112    fn get_tag_id(self) -> crate::app::mess::Mess_TagID_Localize {
113        unsafe {
114            let __receiver = <TalkTagLocalize as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
115            ::unity::il2cpp_call!((::unity::module_base()+0x21d9e30usize)as*mut u8,crate::app::mess::Mess_TagID_Localize;
116(TalkTagLocalize)__receiver)
117        }
118    }
119    #[doc = "`GetReplaceName0()` overload"]
120    fn get_replace_name0(self) -> ::unity::Il2CppString {
121        unsafe {
122            let __receiver = <TalkTagLocalize as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
123            ::unity::il2cpp_call!((::unity::module_base()+0x21d9e40usize)as*mut u8, ::unity::Il2CppString;
124(TalkTagLocalize)__receiver)
125        }
126    }
127    #[doc = "`GetReplaceName1()` overload"]
128    fn get_replace_name1(self) -> ::unity::Il2CppString {
129        unsafe {
130            let __receiver = <TalkTagLocalize as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
131            ::unity::il2cpp_call!((::unity::module_base()+0x21d9e50usize)as*mut u8, ::unity::Il2CppString;
132(TalkTagLocalize)__receiver)
133        }
134    }
135    #[doc = "`.ctor()` overload"]
136    fn ctor(self) -> () {
137        unsafe {
138            let __receiver = <TalkTagLocalize as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
139            ::unity::il2cpp_call!((::unity::module_base()+0x21d9e60usize)as*mut u8,();
140(TalkTagLocalize)__receiver)
141        }
142    }
143}
144
145#[cfg(feature = "app-talk3_d-talktaglocalize")]
146impl<__T: ITalkTagLocalize> ITalkTagLocalizeMethods for __T {}
147
148#[cfg(feature = "app-talk3_d-talktaglocalize")]
149impl TalkTagLocalize {
150    pub fn initialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
151        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
152    }
153
154    pub fn execute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
155        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
156    }
157
158    pub fn get_result_method_info() -> &'static ::unity::il2cpp::MethodInfo {
159        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
160    }
161
162    pub fn get_tag_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
163        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
164    }
165
166    pub fn get_replace_name0_method_info() -> &'static ::unity::il2cpp::MethodInfo {
167        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
168    }
169
170    pub fn get_replace_name1_method_info() -> &'static ::unity::il2cpp::MethodInfo {
171        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
172    }
173
174    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
175        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
176    }
177}
178
179#[cfg(feature = "app-talk3_d-talktaglocalize")]
180impl TalkTagLocalize {
181    #[doc = "Direct (non-virtual) call to `TalkTagLocalize`'s own `Initialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
182    pub unsafe fn initialize(this: impl ::core::convert::Into<::unity::IlInstance>, talk_ptr: crate::app::talk3_d::talkptr::TalkPtr) -> () {
183        let __mi = Self::initialize_method_info();
184        let __inner: extern "C" fn(::unity::IlInstance, crate::app::talk3_d::talkptr::TalkPtr, ::unity::OptionalMethod) -> () =
185            ::core::mem::transmute(__mi.method_ptr);
186        __inner(this.into(), talk_ptr, ::core::option::Option::None)
187    }
188
189    #[doc = "Direct (non-virtual) call to `TalkTagLocalize`'s own `Execute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
190    pub unsafe fn execute(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
191        let __mi = Self::execute_method_info();
192        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
193        __inner(this.into(), ::core::option::Option::None)
194    }
195
196    #[doc = "Direct (non-virtual) call to `TalkTagLocalize`'s own `GetResult`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
197    pub unsafe fn get_result(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::talk3_d::talktag::TalkTag_Result {
198        let __mi = Self::get_result_method_info();
199        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::talk3_d::talktag::TalkTag_Result =
200            ::core::mem::transmute(__mi.method_ptr);
201        __inner(this.into(), ::core::option::Option::None)
202    }
203}
204
205#[cfg(feature = "app-talk3_d-talktaglocalize")]
206impl TalkTagLocalize {
207    #[doc = "`.ctor()` — no args"]
208    pub fn new() -> Self {
209        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
210            panic!(
211                "{}
212::{}
213 failed to instantiate",
214                ::core::stringify!(TalkTagLocalize),
215                ::core::stringify!(new),
216            )
217        });
218        <Self as ITalkTagLocalizeMethods>::ctor(this);
219        this
220    }
221}
222
223#[cfg(feature = "app-talk3_d-talktaglocalize")]
224#[doc(hidden)]
225pub mod prelude {
226    pub use super::{ITalkTagLocalize, ITalkTagLocalizeMethods, TalkTagLocalize};
227    #[cfg(feature = "app-talk3_d-talktag")]
228    pub use crate::app::talk3_d::talktag::ITalkTagMethods;
229    #[cfg(feature = "system-object")]
230    pub use crate::system::object::IObjectMethods;
231    pub use crate::{app::talk3_d::talktag::ITalkTag, system::object::IObject};
232}