Skip to main content

engage/generated/app/talk3_d/
talktagfinish.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-talk3_d-talktagfinish-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/talktagfinish/TalkTagFinish.md"))]
14    #[::unity::class(namespace = "App.Talk3D", name = "TalkTagFinish")]
15    #[parent(crate::app::talk3_d::talktag::TalkTag)]
16    pub struct TalkTagFinish {}
17}
18
19#[cfg(feature = "app-talk3_d-talktagfinish-types")]
20pub use __types::*;
21
22#[cfg(feature = "app-talk3_d-talktagfinish")]
23pub trait ITalkTagFinishMethods: ITalkTagFinish {
24    #[doc = "`GetResult()` overload"]
25    fn get_result(self) -> crate::app::talk3_d::talktag::TalkTag_Result {
26        unsafe {
27            let __receiver = <TalkTagFinish as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
28            {
29                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
30                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
31                    panic!(
32                        "unity: virtual slot {}
33 out of range (vtable len {}
34) on the runtime class behind {}
35 (method `{}
36`)",
37                        8usize,
38                        __vt.len(),
39                        <TalkTagFinish as ::unity::ClassIdentity>::NAME,
40                        "GetResult",
41                    )
42                });
43                let __inner: extern "C" fn(TalkTagFinish, ::unity::OptionalMethod) -> crate::app::talk3_d::talktag::TalkTag_Result =
44                    ::core::mem::transmute(__vi.method_ptr);
45                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
46                __inner(__receiver, __mi)
47            }
48        }
49    }
50    #[doc = "`NeedFadeWait()` overload"]
51    fn need_fade_wait(self) -> bool {
52        unsafe {
53            let __receiver = <TalkTagFinish as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
54            {
55                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
56                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
57                    panic!(
58                        "unity: virtual slot {}
59 out of range (vtable len {}
60) on the runtime class behind {}
61 (method `{}
62`)",
63                        7usize,
64                        __vt.len(),
65                        <TalkTagFinish as ::unity::ClassIdentity>::NAME,
66                        "NeedFadeWait",
67                    )
68                });
69                let __inner: extern "C" fn(TalkTagFinish, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
70                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
71                __inner(__receiver, __mi)
72            }
73        }
74    }
75    #[doc = "`.ctor()` overload"]
76    fn ctor(self) -> () {
77        unsafe {
78            let __receiver = <TalkTagFinish as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79            ::unity::il2cpp_call!((::unity::module_base()+0x21d9600usize)as*mut u8,();
80(TalkTagFinish)__receiver)
81        }
82    }
83}
84
85#[cfg(feature = "app-talk3_d-talktagfinish")]
86impl<__T: ITalkTagFinish> ITalkTagFinishMethods for __T {}
87
88#[cfg(feature = "app-talk3_d-talktagfinish")]
89impl TalkTagFinish {
90    pub fn get_result_method_info() -> &'static ::unity::il2cpp::MethodInfo {
91        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
92    }
93
94    pub fn need_fade_wait_method_info() -> &'static ::unity::il2cpp::MethodInfo {
95        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
96    }
97
98    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
99        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
100    }
101}
102
103#[cfg(feature = "app-talk3_d-talktagfinish")]
104impl TalkTagFinish {
105    #[doc = "Direct (non-virtual) call to `TalkTagFinish`'s own `GetResult`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
106    pub unsafe fn get_result(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::talk3_d::talktag::TalkTag_Result {
107        let __mi = Self::get_result_method_info();
108        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::talk3_d::talktag::TalkTag_Result =
109            ::core::mem::transmute(__mi.method_ptr);
110        __inner(this.into(), ::core::option::Option::None)
111    }
112
113    #[doc = "Direct (non-virtual) call to `TalkTagFinish`'s own `NeedFadeWait`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
114    pub unsafe fn need_fade_wait(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
115        let __mi = Self::need_fade_wait_method_info();
116        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
117        __inner(this.into(), ::core::option::Option::None)
118    }
119}
120
121#[cfg(feature = "app-talk3_d-talktagfinish")]
122impl TalkTagFinish {
123    #[doc = "`.ctor()` — no args"]
124    pub fn new() -> Self {
125        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
126            panic!(
127                "{}
128::{}
129 failed to instantiate",
130                ::core::stringify!(TalkTagFinish),
131                ::core::stringify!(new),
132            )
133        });
134        <Self as ITalkTagFinishMethods>::ctor(this);
135        this
136    }
137}
138
139#[cfg(feature = "app-talk3_d-talktagfinish")]
140#[doc(hidden)]
141pub mod prelude {
142    pub use super::{ITalkTagFinish, ITalkTagFinishMethods, TalkTagFinish};
143    #[cfg(feature = "app-talk3_d-talktag")]
144    pub use crate::app::talk3_d::talktag::ITalkTagMethods;
145    #[cfg(feature = "system-object")]
146    pub use crate::system::object::IObjectMethods;
147    pub use crate::{app::talk3_d::talktag::ITalkTag, system::object::IObject};
148}