Skip to main content

engage/generated/app/talk3_d/
talktagpicture.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-talk3_d-talktagpicture-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/talktagpicture/TalkTagPicture.md"))]
14    #[::unity::class(namespace = "App.Talk3D", name = "TalkTagPicture")]
15    #[parent(crate::app::talk3_d::talktag::TalkTag)]
16    pub struct TalkTagPicture {
17        #[offset(16)]
18        #[rename(name = "m_TagID")]
19        pub m_tag_id: crate::app::mess::Mess_TagID_Picture,
20        #[offset(20)]
21        #[rename(name = "m_PictureIndex")]
22        pub m_picture_index: i32,
23        #[offset(24)]
24        #[rename(name = "m_TextureName")]
25        pub m_texture_name: ::unity::Il2CppString,
26        #[offset(32)]
27        #[rename(name = "m_AnimName")]
28        pub m_anim_name: ::unity::Il2CppString,
29    }
30}
31
32#[cfg(feature = "app-talk3_d-talktagpicture-types")]
33pub use __types::*;
34
35#[cfg(feature = "app-talk3_d-talktagpicture")]
36pub trait ITalkTagPictureMethods: ITalkTagPicture {
37    #[doc = "`Initialize(crate::app::talk3_d::talkptr::TalkPtr)` overload"]
38    fn initialize(self, talk_ptr: impl ::core::convert::Into<crate::app::talk3_d::talkptr::TalkPtr>) -> () {
39        unsafe {
40            let __receiver = <TalkTagPicture as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
41            {
42                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
43                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
44                    panic!(
45                        "unity: virtual slot {}
46 out of range (vtable len {}
47) on the runtime class behind {}
48 (method `{}
49`)",
50                        4usize,
51                        __vt.len(),
52                        <TalkTagPicture as ::unity::ClassIdentity>::NAME,
53                        "Initialize",
54                    )
55                });
56                let __inner: extern "C" fn(TalkTagPicture, crate::app::talk3_d::talkptr::TalkPtr, ::unity::OptionalMethod) -> () =
57                    ::core::mem::transmute(__vi.method_ptr);
58                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
59                __inner(__receiver, ::core::convert::Into::into(talk_ptr), __mi)
60            }
61        }
62    }
63    #[doc = "`Execute()` overload"]
64    fn execute(self) -> () {
65        unsafe {
66            let __receiver = <TalkTagPicture as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67            {
68                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
69                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
70                    panic!(
71                        "unity: virtual slot {}
72 out of range (vtable len {}
73) on the runtime class behind {}
74 (method `{}
75`)",
76                        5usize,
77                        __vt.len(),
78                        <TalkTagPicture as ::unity::ClassIdentity>::NAME,
79                        "Execute",
80                    )
81                });
82                let __inner: extern "C" fn(TalkTagPicture, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
83                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
84                __inner(__receiver, __mi)
85            }
86        }
87    }
88    #[doc = "`GetResult()` overload"]
89    fn get_result(self) -> crate::app::talk3_d::talktag::TalkTag_Result {
90        unsafe {
91            let __receiver = <TalkTagPicture as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
92            {
93                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
94                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
95                    panic!(
96                        "unity: virtual slot {}
97 out of range (vtable len {}
98) on the runtime class behind {}
99 (method `{}
100`)",
101                        8usize,
102                        __vt.len(),
103                        <TalkTagPicture as ::unity::ClassIdentity>::NAME,
104                        "GetResult",
105                    )
106                });
107                let __inner: extern "C" fn(TalkTagPicture, ::unity::OptionalMethod) -> crate::app::talk3_d::talktag::TalkTag_Result =
108                    ::core::mem::transmute(__vi.method_ptr);
109                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
110                __inner(__receiver, __mi)
111            }
112        }
113    }
114    #[doc = "`.ctor()` overload"]
115    fn ctor(self) -> () {
116        unsafe {
117            let __receiver = <TalkTagPicture as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
118            ::unity::il2cpp_call!((::unity::module_base()+0x21da8a0usize)as*mut u8,();
119(TalkTagPicture)__receiver)
120        }
121    }
122}
123
124#[cfg(feature = "app-talk3_d-talktagpicture")]
125impl<__T: ITalkTagPicture> ITalkTagPictureMethods for __T {}
126
127#[cfg(feature = "app-talk3_d-talktagpicture")]
128impl TalkTagPicture {
129    pub fn initialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
130        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
131    }
132
133    pub fn execute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
134        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
135    }
136
137    pub fn get_result_method_info() -> &'static ::unity::il2cpp::MethodInfo {
138        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
139    }
140
141    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
142        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
143    }
144}
145
146#[cfg(feature = "app-talk3_d-talktagpicture")]
147impl TalkTagPicture {
148    #[doc = "Direct (non-virtual) call to `TalkTagPicture`'s own `Initialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
149    pub unsafe fn initialize(this: impl ::core::convert::Into<::unity::IlInstance>, talk_ptr: crate::app::talk3_d::talkptr::TalkPtr) -> () {
150        let __mi = Self::initialize_method_info();
151        let __inner: extern "C" fn(::unity::IlInstance, crate::app::talk3_d::talkptr::TalkPtr, ::unity::OptionalMethod) -> () =
152            ::core::mem::transmute(__mi.method_ptr);
153        __inner(this.into(), talk_ptr, ::core::option::Option::None)
154    }
155
156    #[doc = "Direct (non-virtual) call to `TalkTagPicture`'s own `Execute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
157    pub unsafe fn execute(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
158        let __mi = Self::execute_method_info();
159        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
160        __inner(this.into(), ::core::option::Option::None)
161    }
162
163    #[doc = "Direct (non-virtual) call to `TalkTagPicture`'s own `GetResult`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
164    pub unsafe fn get_result(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::talk3_d::talktag::TalkTag_Result {
165        let __mi = Self::get_result_method_info();
166        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::talk3_d::talktag::TalkTag_Result =
167            ::core::mem::transmute(__mi.method_ptr);
168        __inner(this.into(), ::core::option::Option::None)
169    }
170}
171
172#[cfg(feature = "app-talk3_d-talktagpicture")]
173impl TalkTagPicture {
174    #[doc = "`.ctor()` — no args"]
175    pub fn new() -> Self {
176        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
177            panic!(
178                "{}
179::{}
180 failed to instantiate",
181                ::core::stringify!(TalkTagPicture),
182                ::core::stringify!(new),
183            )
184        });
185        <Self as ITalkTagPictureMethods>::ctor(this);
186        this
187    }
188}
189
190#[cfg(feature = "app-talk3_d-talktagpicture")]
191#[doc(hidden)]
192pub mod prelude {
193    pub use super::{ITalkTagPicture, ITalkTagPictureMethods, TalkTagPicture};
194    #[cfg(feature = "app-talk3_d-talktag")]
195    pub use crate::app::talk3_d::talktag::ITalkTagMethods;
196    #[cfg(feature = "system-object")]
197    pub use crate::system::object::IObjectMethods;
198    pub use crate::{app::talk3_d::talktag::ITalkTag, system::object::IObject};
199}