Skip to main content

engage/generated/app/
fishingpicturebookmenuitemcontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-fishingpicturebookmenuitemcontent-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::basicmenuitemcontent::{BasicMenuItemContent, IBasicMenuItemContent},
10        system::object::{IObject, Object},
11        unity_engine::{
12            behaviour::{Behaviour, IBehaviour},
13            component::{Component, IComponent},
14            monobehaviour::{IMonoBehaviour, MonoBehaviour},
15            object_2::{IObject_2, Object_2},
16        },
17    };
18
19    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/fishingpicturebookmenuitemcontent/FishingPictureBookMenuItemContent.md"))]
20    #[::unity::class(namespace = "App", name = "FishingPictureBookMenuItemContent")]
21    #[parent(crate::app::basicmenuitemcontent::BasicMenuItemContent)]
22    pub struct FishingPictureBookMenuItemContent {
23        #[static_field]
24        #[rename(name = "cTextureAtlasPath")]
25        pub c_texture_atlas_path: ::unity::Il2CppString,
26        #[static_field]
27        #[rename(name = "cTextureLarge")]
28        pub c_texture_large: ::unity::Il2CppString,
29        #[static_field]
30        #[rename(name = "cTextureMiddle")]
31        pub c_texture_middle: ::unity::Il2CppString,
32        #[static_field]
33        #[rename(name = "cTextureSmall")]
34        pub c_texture_small: ::unity::Il2CppString,
35        #[offset(72)]
36        #[rename(name = "m_Name")]
37        pub m_name: crate::unity_engine::gameobject::GameObject,
38        #[offset(80)]
39        #[rename(name = "m_NameText")]
40        pub m_name_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
41        #[offset(88)]
42        #[rename(name = "m_Icon")]
43        pub m_icon: crate::unity_engine::gameobject::GameObject,
44        #[offset(96)]
45        #[rename(name = "m_FishIcon")]
46        pub m_fish_icon: crate::unity_engine::gameobject::GameObject,
47        #[offset(104)]
48        #[rename(name = "m_Sprite")]
49        pub m_sprite: crate::unity_engine::sprite::Sprite,
50    }
51}
52
53#[cfg(feature = "app-fishingpicturebookmenuitemcontent-types")]
54pub use __types::*;
55
56#[cfg(feature = "app-fishingpicturebookmenuitemcontent")]
57pub trait IFishingPictureBookMenuItemContentMethods: IFishingPictureBookMenuItemContent {
58    #[doc = "`OnDestroy()` overload"]
59    fn on_destroy(self) -> () {
60        unsafe {
61            let __receiver =
62                <FishingPictureBookMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
63            ::unity::il2cpp_call!((::unity::module_base()+0x2603ab0usize)as*mut u8,();
64(FishingPictureBookMenuItemContent)__receiver)
65        }
66    }
67    #[doc = "`Build(crate::app::basicmenuitem::BasicMenuItem)` overload"]
68    fn build(self, menu_item: impl ::core::convert::Into<crate::app::basicmenuitem::BasicMenuItem>) -> () {
69        unsafe {
70            let __receiver =
71                <FishingPictureBookMenuItemContent 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(8usize).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                        8usize,
82                        __vt.len(),
83                        <FishingPictureBookMenuItemContent as ::unity::ClassIdentity>::NAME,
84                        "Build",
85                    )
86                });
87                let __inner: extern "C" fn(
88                    FishingPictureBookMenuItemContent,
89                    crate::app::basicmenuitem::BasicMenuItem,
90                    ::unity::OptionalMethod,
91                ) -> () = ::core::mem::transmute(__vi.method_ptr);
92                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
93                __inner(__receiver, ::core::convert::Into::into(menu_item), __mi)
94            }
95        }
96    }
97    #[doc = "`BuildText()` overload"]
98    fn build_text(self) -> () {
99        unsafe {
100            let __receiver =
101                <FishingPictureBookMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
102            {
103                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
104                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
105                    panic!(
106                        "unity: virtual slot {}
107 out of range (vtable len {}
108) on the runtime class behind {}
109 (method `{}
110`)",
111                        10usize,
112                        __vt.len(),
113                        <FishingPictureBookMenuItemContent as ::unity::ClassIdentity>::NAME,
114                        "BuildText",
115                    )
116                });
117                let __inner: extern "C" fn(FishingPictureBookMenuItemContent, ::unity::OptionalMethod) -> () =
118                    ::core::mem::transmute(__vi.method_ptr);
119                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
120                __inner(__receiver, __mi)
121            }
122        }
123    }
124    #[doc = "`UpdateTextColor()` overload"]
125    fn update_text_color(self) -> () {
126        unsafe {
127            let __receiver =
128                <FishingPictureBookMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
129            {
130                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
131                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
132                    panic!(
133                        "unity: virtual slot {}
134 out of range (vtable len {}
135) on the runtime class behind {}
136 (method `{}
137`)",
138                        7usize,
139                        __vt.len(),
140                        <FishingPictureBookMenuItemContent as ::unity::ClassIdentity>::NAME,
141                        "UpdateTextColor",
142                    )
143                });
144                let __inner: extern "C" fn(FishingPictureBookMenuItemContent, ::unity::OptionalMethod) -> () =
145                    ::core::mem::transmute(__vi.method_ptr);
146                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
147                __inner(__receiver, __mi)
148            }
149        }
150    }
151    #[doc = "`.ctor()` overload"]
152    fn ctor(self) -> () {
153        unsafe {
154            let __receiver =
155                <FishingPictureBookMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
156            ::unity::il2cpp_call!((::unity::module_base()+0x26040c0usize)as*mut u8,();
157(FishingPictureBookMenuItemContent)__receiver)
158        }
159    }
160}
161
162#[cfg(feature = "app-fishingpicturebookmenuitemcontent")]
163impl<__T: IFishingPictureBookMenuItemContent> IFishingPictureBookMenuItemContentMethods for __T {}
164
165#[cfg(feature = "app-fishingpicturebookmenuitemcontent")]
166impl FishingPictureBookMenuItemContent {
167    pub fn on_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
168        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
169    }
170
171    pub fn build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
172        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
173    }
174
175    pub fn build_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
176        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
177    }
178
179    pub fn update_text_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
180        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
181    }
182
183    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
184        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
185    }
186}
187
188#[cfg(feature = "app-fishingpicturebookmenuitemcontent")]
189impl FishingPictureBookMenuItemContent {
190    #[doc = "Direct (non-virtual) call to `FishingPictureBookMenuItemContent`'s own `Build`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
191    pub unsafe fn build(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item: crate::app::basicmenuitem::BasicMenuItem) -> () {
192        let __mi = Self::build_method_info();
193        let __inner: extern "C" fn(::unity::IlInstance, crate::app::basicmenuitem::BasicMenuItem, ::unity::OptionalMethod) -> () =
194            ::core::mem::transmute(__mi.method_ptr);
195        __inner(this.into(), menu_item, ::core::option::Option::None)
196    }
197
198    #[doc = "Direct (non-virtual) call to `FishingPictureBookMenuItemContent`'s own `BuildText`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
199    pub unsafe fn build_text(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
200        let __mi = Self::build_text_method_info();
201        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
202        __inner(this.into(), ::core::option::Option::None)
203    }
204
205    #[doc = "Direct (non-virtual) call to `FishingPictureBookMenuItemContent`'s own `UpdateTextColor`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
206    pub unsafe fn update_text_color(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
207        let __mi = Self::update_text_color_method_info();
208        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
209        __inner(this.into(), ::core::option::Option::None)
210    }
211}
212
213#[cfg(feature = "app-fishingpicturebookmenuitemcontent")]
214impl FishingPictureBookMenuItemContent {
215    #[doc = "`.ctor()` — no args"]
216    pub fn new() -> Self {
217        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
218            panic!(
219                "{}
220::{}
221 failed to instantiate",
222                ::core::stringify!(FishingPictureBookMenuItemContent),
223                ::core::stringify!(new),
224            )
225        });
226        <Self as IFishingPictureBookMenuItemContentMethods>::ctor(this);
227        this
228    }
229}
230
231#[cfg(feature = "app-fishingpicturebookmenuitemcontent")]
232#[doc(hidden)]
233pub mod prelude {
234    pub use super::{FishingPictureBookMenuItemContent, IFishingPictureBookMenuItemContent, IFishingPictureBookMenuItemContentMethods};
235    #[cfg(feature = "app-basicmenuitemcontent")]
236    pub use crate::app::basicmenuitemcontent::IBasicMenuItemContentMethods;
237    #[cfg(feature = "system-object")]
238    pub use crate::system::object::IObjectMethods;
239    #[cfg(feature = "unity_engine-behaviour")]
240    pub use crate::unity_engine::behaviour::IBehaviourMethods;
241    #[cfg(feature = "unity_engine-component")]
242    pub use crate::unity_engine::component::IComponentMethods;
243    #[cfg(feature = "unity_engine-monobehaviour")]
244    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
245    #[cfg(feature = "unity_engine-object_2")]
246    pub use crate::unity_engine::object_2::IObject_2Methods;
247    pub use crate::{
248        app::basicmenuitemcontent::IBasicMenuItemContent,
249        system::object::IObject,
250        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
251    };
252}