engage/generated/app/talk3_d/
talkpagescroll.rs1#[cfg(feature = "app-talk3_d-talkpagescroll-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::procinst::{IProcInst, ProcInst},
10 system::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/talk3_d/talkpagescroll/TalkPageScroll.md"))]
14 #[::unity::class(namespace = "App.Talk3D", name = "TalkPageScroll")]
15 #[parent(crate::app::procinst::ProcInst)]
16 pub struct TalkPageScroll {}
17}
18
19#[cfg(feature = "app-talk3_d-talkpagescroll-types")]
20pub use __types::*;
21
22#[cfg(feature = "app-talk3_d-talkpagescroll")]
23impl TalkPageScroll {
24 #[doc = "`CreateInstBind(crate::app::procinst::ProcInst)` overload"]
25 pub fn create_inst_bind(
26 parent: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
27 ) -> crate::app::talk3_d::talkpagescroll::TalkPageScroll {
28 unsafe {
29 ::unity::il2cpp_call!((::unity::module_base()+0x20c47a0usize)as*mut u8,crate::app::talk3_d::talkpagescroll::TalkPageScroll;
30(crate::app::procinst::ProcInst)::core::convert::Into::into(parent))
31 }
32 }
33}
34
35#[cfg(feature = "app-talk3_d-talkpagescroll")]
36pub trait ITalkPageScrollMethods: ITalkPageScroll {
37 #[doc = "`OnCreate()` overload"]
38 fn on_create(self) -> () {
39 unsafe {
40 let __receiver = <TalkPageScroll 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(9usize).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 9usize,
51 __vt.len(),
52 <TalkPageScroll as ::unity::ClassIdentity>::NAME,
53 "OnCreate",
54 )
55 });
56 let __inner: extern "C" fn(TalkPageScroll, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
57 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
58 __inner(__receiver, __mi)
59 }
60 }
61 }
62 #[doc = "`OnDispose()` overload"]
63 fn on_dispose(self) -> () {
64 unsafe {
65 let __receiver = <TalkPageScroll as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66 {
67 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
68 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
69 panic!(
70 "unity: virtual slot {}
71 out of range (vtable len {}
72) on the runtime class behind {}
73 (method `{}
74`)",
75 10usize,
76 __vt.len(),
77 <TalkPageScroll as ::unity::ClassIdentity>::NAME,
78 "OnDispose",
79 )
80 });
81 let __inner: extern "C" fn(TalkPageScroll, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
82 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
83 __inner(__receiver, __mi)
84 }
85 }
86 }
87 #[doc = "`Tick()` overload"]
88 fn tick(self) -> () {
89 unsafe {
90 let __receiver = <TalkPageScroll as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91 ::unity::il2cpp_call!((::unity::module_base()+0x20c4700usize)as*mut u8,();
92(TalkPageScroll)__receiver)
93 }
94 }
95 #[doc = "`.ctor()` overload"]
96 fn ctor(self) -> () {
97 unsafe {
98 let __receiver = <TalkPageScroll as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99 ::unity::il2cpp_call!((::unity::module_base()+0x20c49b0usize)as*mut u8,();
100(TalkPageScroll)__receiver)
101 }
102 }
103}
104
105#[cfg(feature = "app-talk3_d-talkpagescroll")]
106impl<__T: ITalkPageScroll> ITalkPageScrollMethods for __T {}
107
108#[cfg(feature = "app-talk3_d-talkpagescroll")]
109impl TalkPageScroll {
110 pub fn on_create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
111 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
112 }
113
114 pub fn on_dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
115 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
116 }
117
118 pub fn tick_method_info() -> &'static ::unity::il2cpp::MethodInfo {
119 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
120 }
121
122 pub fn create_inst_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
123 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
124 }
125
126 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
127 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
128 }
129}
130
131#[cfg(feature = "app-talk3_d-talkpagescroll")]
132impl TalkPageScroll {
133 #[doc = "Direct (non-virtual) call to `TalkPageScroll`'s own `OnCreate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
134 pub unsafe fn on_create(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
135 let __mi = Self::on_create_method_info();
136 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
137 __inner(this.into(), ::core::option::Option::None)
138 }
139
140 #[doc = "Direct (non-virtual) call to `TalkPageScroll`'s own `OnDispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
141 pub unsafe fn on_dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
142 let __mi = Self::on_dispose_method_info();
143 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
144 __inner(this.into(), ::core::option::Option::None)
145 }
146}
147
148#[cfg(feature = "app-talk3_d-talkpagescroll")]
149impl TalkPageScroll {
150 #[doc = "`.ctor()` — no args"]
151 pub fn new() -> Self {
152 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
153 panic!(
154 "{}
155::{}
156 failed to instantiate",
157 ::core::stringify!(TalkPageScroll),
158 ::core::stringify!(new),
159 )
160 });
161 <Self as ITalkPageScrollMethods>::ctor(this);
162 this
163 }
164}
165
166#[cfg(feature = "app-talk3_d-talkpagescroll")]
167#[doc(hidden)]
168pub mod prelude {
169 pub use super::{ITalkPageScroll, ITalkPageScrollMethods, TalkPageScroll};
170 #[cfg(feature = "app-procinst")]
171 pub use crate::app::procinst::IProcInstMethods;
172 #[cfg(feature = "system-object")]
173 pub use crate::system::object::IObjectMethods;
174 pub use crate::{app::procinst::IProcInst, system::object::IObject};
175}