engage/generated/app/talk3_d/
talktaganimation.rs1#[cfg(feature = "app-talk3_d-talktaganimation-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/talktaganimation/TalkTagAnimation_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 TalkTagAnimation_TagID {
21 pub value: i32,
22 }
23 impl ::unity::ClassIdentity for TalkTagAnimation_TagID {
24 const NAME: &'static str = "TalkTagAnimation.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 TalkTagAnimation_TagID {
33 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
34 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
35 }
36 }
37 impl TalkTagAnimation_TagID {
38 pub fn body() -> Self {
39 Self { value: 0 }
40 }
41
42 pub fn face() -> Self {
43 Self { value: 1 }
44 }
45
46 pub fn look_at() -> Self {
47 Self { value: 2 }
48 }
49 }
50
51 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/talk3_d/talktaganimation/TalkTagAnimation.md"))]
52 #[::unity::class(namespace = "App.Talk3D", name = "TalkTagAnimation")]
53 #[parent(crate::app::talk3_d::talktag::TalkTag)]
54 pub struct TalkTagAnimation {
55 #[offset(16)]
56 #[rename(name = "m_TagID")]
57 pub m_tag_id: crate::app::talk3_d::talktaganimation::TalkTagAnimation_TagID,
58 #[offset(24)]
59 #[rename(name = "m_Pid")]
60 pub m_pid: ::unity::Il2CppString,
61 #[offset(32)]
62 #[rename(name = "m_AnimeName")]
63 pub m_anime_name: ::unity::Il2CppString,
64 }
65}
66
67#[cfg(feature = "app-talk3_d-talktaganimation-types")]
68pub use __types::*;
69
70#[cfg(feature = "app-talk3_d-talktaganimation")]
71pub trait ITalkTagAnimationMethods: ITalkTagAnimation {
72 #[doc = "`Initialize(crate::app::talk3_d::talkptr::TalkPtr)` overload"]
73 fn initialize(self, talk_ptr: impl ::core::convert::Into<crate::app::talk3_d::talkptr::TalkPtr>) -> () {
74 unsafe {
75 let __receiver = <TalkTagAnimation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76 {
77 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
78 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
79 panic!(
80 "unity: virtual slot {}
81 out of range (vtable len {}
82) on the runtime class behind {}
83 (method `{}
84`)",
85 4usize,
86 __vt.len(),
87 <TalkTagAnimation as ::unity::ClassIdentity>::NAME,
88 "Initialize",
89 )
90 });
91 let __inner: extern "C" fn(TalkTagAnimation, crate::app::talk3_d::talkptr::TalkPtr, ::unity::OptionalMethod) -> () =
92 ::core::mem::transmute(__vi.method_ptr);
93 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
94 __inner(__receiver, ::core::convert::Into::into(talk_ptr), __mi)
95 }
96 }
97 }
98 #[doc = "`Execute()` overload"]
99 fn execute(self) -> () {
100 unsafe {
101 let __receiver = <TalkTagAnimation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
102 {
103 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
104 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
105 panic!(
106 "unity: virtual slot {}
107 out of range (vtable len {}
108) on the runtime class behind {}
109 (method `{}
110`)",
111 5usize,
112 __vt.len(),
113 <TalkTagAnimation as ::unity::ClassIdentity>::NAME,
114 "Execute",
115 )
116 });
117 let __inner: extern "C" fn(TalkTagAnimation, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
118 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
119 __inner(__receiver, __mi)
120 }
121 }
122 }
123 #[doc = "`GetResult()` overload"]
124 fn get_result(self) -> crate::app::talk3_d::talktag::TalkTag_Result {
125 unsafe {
126 let __receiver = <TalkTagAnimation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
127 {
128 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
129 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
130 panic!(
131 "unity: virtual slot {}
132 out of range (vtable len {}
133) on the runtime class behind {}
134 (method `{}
135`)",
136 8usize,
137 __vt.len(),
138 <TalkTagAnimation as ::unity::ClassIdentity>::NAME,
139 "GetResult",
140 )
141 });
142 let __inner: extern "C" fn(TalkTagAnimation, ::unity::OptionalMethod) -> crate::app::talk3_d::talktag::TalkTag_Result =
143 ::core::mem::transmute(__vi.method_ptr);
144 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
145 __inner(__receiver, __mi)
146 }
147 }
148 }
149 #[doc = "`.ctor()` overload"]
150 fn ctor(self) -> () {
151 unsafe {
152 let __receiver = <TalkTagAnimation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
153 ::unity::il2cpp_call!((::unity::module_base()+0x21d9190usize)as*mut u8,();
154(TalkTagAnimation)__receiver)
155 }
156 }
157}
158
159#[cfg(feature = "app-talk3_d-talktaganimation")]
160impl<__T: ITalkTagAnimation> ITalkTagAnimationMethods for __T {}
161
162#[cfg(feature = "app-talk3_d-talktaganimation")]
163impl TalkTagAnimation {
164 pub fn initialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
165 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
166 }
167
168 pub fn execute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
169 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
170 }
171
172 pub fn get_result_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
174 }
175
176 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
177 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
178 }
179}
180
181#[cfg(feature = "app-talk3_d-talktaganimation")]
182impl TalkTagAnimation {
183 #[doc = "Direct (non-virtual) call to `TalkTagAnimation`'s own `Initialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
184 pub unsafe fn initialize(this: impl ::core::convert::Into<::unity::IlInstance>, talk_ptr: crate::app::talk3_d::talkptr::TalkPtr) -> () {
185 let __mi = Self::initialize_method_info();
186 let __inner: extern "C" fn(::unity::IlInstance, crate::app::talk3_d::talkptr::TalkPtr, ::unity::OptionalMethod) -> () =
187 ::core::mem::transmute(__mi.method_ptr);
188 __inner(this.into(), talk_ptr, ::core::option::Option::None)
189 }
190
191 #[doc = "Direct (non-virtual) call to `TalkTagAnimation`'s own `Execute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
192 pub unsafe fn execute(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
193 let __mi = Self::execute_method_info();
194 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
195 __inner(this.into(), ::core::option::Option::None)
196 }
197
198 #[doc = "Direct (non-virtual) call to `TalkTagAnimation`'s own `GetResult`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
199 pub unsafe fn get_result(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::talk3_d::talktag::TalkTag_Result {
200 let __mi = Self::get_result_method_info();
201 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::talk3_d::talktag::TalkTag_Result =
202 ::core::mem::transmute(__mi.method_ptr);
203 __inner(this.into(), ::core::option::Option::None)
204 }
205}
206
207#[cfg(feature = "app-talk3_d-talktaganimation")]
208impl TalkTagAnimation {
209 #[doc = "`.ctor()` — no args"]
210 pub fn new() -> Self {
211 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
212 panic!(
213 "{}
214::{}
215 failed to instantiate",
216 ::core::stringify!(TalkTagAnimation),
217 ::core::stringify!(new),
218 )
219 });
220 <Self as ITalkTagAnimationMethods>::ctor(this);
221 this
222 }
223}
224
225#[cfg(feature = "app-talk3_d-talktaganimation")]
226#[doc(hidden)]
227pub mod prelude {
228 pub use super::{ITalkTagAnimation, ITalkTagAnimationMethods, TalkTagAnimation, TalkTagAnimation_TagID};
229 #[cfg(feature = "app-talk3_d-talktag")]
230 pub use crate::app::talk3_d::talktag::ITalkTagMethods;
231 #[cfg(feature = "system-object")]
232 pub use crate::system::object::IObjectMethods;
233 #[cfg(feature = "system-enum")]
234 pub use crate::system::r#enum::IEnumMethods;
235 #[cfg(feature = "system-valuetype")]
236 pub use crate::system::valuetype::IValueTypeMethods;
237 pub use crate::{
238 app::talk3_d::talktag::ITalkTag,
239 system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
240 };
241}