Skip to main content

engage/generated/app/talk3_d/
talktagarg.rs

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