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