Skip to main content

engage/generated/app/
gctimeitem.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-gctimeitem-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            menuitem::{IMenuItem, MenuItem},
11            paramitem::{IParamItem, ParamItem},
12        },
13        system::object::{IObject, Object},
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gctimeitem/GCTimeItem.md"))]
17    #[::unity::class(namespace = "App", name = "GCTimeItem")]
18    #[parent(crate::app::paramitem::ParamItem)]
19    pub struct GCTimeItem {}
20}
21
22#[cfg(feature = "app-gctimeitem-types")]
23pub use __types::*;
24
25#[cfg(feature = "app-gctimeitem")]
26pub trait IGCTimeItemMethods: IGCTimeItem {
27    #[doc = "`GetColumnName0()` overload"]
28    fn get_column_name0(self) -> ::unity::Il2CppString {
29        unsafe {
30            let __receiver = <GCTimeItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
31            {
32                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
33                let __vi = *__vt.get(42usize).unwrap_or_else(|| {
34                    panic!(
35                        "unity: virtual slot {}
36 out of range (vtable len {}
37) on the runtime class behind {}
38 (method `{}
39`)",
40                        42usize,
41                        __vt.len(),
42                        <GCTimeItem as ::unity::ClassIdentity>::NAME,
43                        "GetColumnName0",
44                    )
45                });
46                let __inner: extern "C" fn(GCTimeItem, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
47                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
48                __inner(__receiver, __mi)
49            }
50        }
51    }
52    #[doc = "`GetValue()` overload"]
53    fn get_value(self) -> i32 {
54        unsafe {
55            let __receiver = <GCTimeItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56            ::unity::il2cpp_call!((::unity::module_base()+0x2276f20usize)as*mut u8,i32;
57(GCTimeItem)__receiver)
58        }
59    }
60    #[doc = "`SetValue(i32)` overload"]
61    fn set_value(self, value: impl ::core::convert::Into<i32>) -> () {
62        unsafe {
63            let __receiver = <GCTimeItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64            ::unity::il2cpp_call!((::unity::module_base()+0x2276f50usize)as*mut u8,();
65(GCTimeItem)__receiver,(i32)::core::convert::Into::into(value))
66        }
67    }
68    #[doc = "`GetColumnName1()` overload"]
69    fn get_column_name1(self) -> ::unity::Il2CppString {
70        unsafe {
71            let __receiver = <GCTimeItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72            {
73                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
74                let __vi = *__vt.get(43usize).unwrap_or_else(|| {
75                    panic!(
76                        "unity: virtual slot {}
77 out of range (vtable len {}
78) on the runtime class behind {}
79 (method `{}
80`)",
81                        43usize,
82                        __vt.len(),
83                        <GCTimeItem as ::unity::ClassIdentity>::NAME,
84                        "GetColumnName1",
85                    )
86                });
87                let __inner: extern "C" fn(GCTimeItem, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
88                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
89                __inner(__receiver, __mi)
90            }
91        }
92    }
93    #[doc = "`OnLeftRight(i32, bool)` overload"]
94    fn on_left_right(self, step: impl ::core::convert::Into<i32>, is_trigger: impl ::core::convert::Into<bool>) -> () {
95        unsafe {
96            let __receiver = <GCTimeItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
97            {
98                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
99                let __vi = *__vt.get(70usize).unwrap_or_else(|| {
100                    panic!(
101                        "unity: virtual slot {}
102 out of range (vtable len {}
103) on the runtime class behind {}
104 (method `{}
105`)",
106                        70usize,
107                        __vt.len(),
108                        <GCTimeItem as ::unity::ClassIdentity>::NAME,
109                        "OnLeftRight",
110                    )
111                });
112                let __inner: extern "C" fn(GCTimeItem, i32, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
113                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
114                __inner(
115                    __receiver,
116                    ::core::convert::Into::into(step),
117                    ::core::convert::Into::into(is_trigger),
118                    __mi,
119                )
120            }
121        }
122    }
123    #[doc = "`.ctor()` overload"]
124    fn ctor(self) -> () {
125        unsafe {
126            let __receiver = <GCTimeItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
127            ::unity::il2cpp_call!((::unity::module_base()+0x22770c0usize)as*mut u8,();
128(GCTimeItem)__receiver)
129        }
130    }
131}
132
133#[cfg(feature = "app-gctimeitem")]
134impl<__T: IGCTimeItem> IGCTimeItemMethods for __T {}
135
136#[cfg(feature = "app-gctimeitem")]
137impl GCTimeItem {
138    pub fn get_column_name0_method_info() -> &'static ::unity::il2cpp::MethodInfo {
139        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
140    }
141
142    pub fn get_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
143        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
144    }
145
146    pub fn set_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
147        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
148    }
149
150    pub fn get_column_name1_method_info() -> &'static ::unity::il2cpp::MethodInfo {
151        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
152    }
153
154    pub fn on_left_right_method_info() -> &'static ::unity::il2cpp::MethodInfo {
155        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
156    }
157
158    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
159        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
160    }
161}
162
163#[cfg(feature = "app-gctimeitem")]
164impl GCTimeItem {
165    #[doc = "Direct (non-virtual) call to `GCTimeItem`'s own `GetColumnName0`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
166    pub unsafe fn get_column_name0(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
167        let __mi = Self::get_column_name0_method_info();
168        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
169        __inner(this.into(), ::core::option::Option::None)
170    }
171
172    #[doc = "Direct (non-virtual) call to `GCTimeItem`'s own `GetColumnName1`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
173    pub unsafe fn get_column_name1(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
174        let __mi = Self::get_column_name1_method_info();
175        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
176        __inner(this.into(), ::core::option::Option::None)
177    }
178
179    #[doc = "Direct (non-virtual) call to `GCTimeItem`'s own `OnLeftRight`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
180    pub unsafe fn on_left_right(this: impl ::core::convert::Into<::unity::IlInstance>, step: i32, is_trigger: bool) -> () {
181        let __mi = Self::on_left_right_method_info();
182        let __inner: extern "C" fn(::unity::IlInstance, i32, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
183        __inner(this.into(), step, is_trigger, ::core::option::Option::None)
184    }
185}
186
187#[cfg(feature = "app-gctimeitem")]
188impl GCTimeItem {
189    #[doc = "`.ctor()` — no args"]
190    pub fn new() -> Self {
191        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
192            panic!(
193                "{}
194::{}
195 failed to instantiate",
196                ::core::stringify!(GCTimeItem),
197                ::core::stringify!(new),
198            )
199        });
200        <Self as IGCTimeItemMethods>::ctor(this);
201        this
202    }
203}
204
205#[cfg(feature = "app-gctimeitem")]
206#[doc(hidden)]
207pub mod prelude {
208    pub use super::{GCTimeItem, IGCTimeItem, IGCTimeItemMethods};
209    #[cfg(feature = "app-menuitem")]
210    pub use crate::app::menuitem::IMenuItemMethods;
211    #[cfg(feature = "app-paramitem")]
212    pub use crate::app::paramitem::IParamItemMethods;
213    #[cfg(feature = "system-object")]
214    pub use crate::system::object::IObjectMethods;
215    pub use crate::{
216        app::{menuitem::IMenuItem, paramitem::IParamItem},
217        system::object::IObject,
218    };
219}