Skip to main content

engage/generated/app/
mascotfoodeatsequence.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-mascotfoodeatsequence-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            procinst::{IProcInst, ProcInst},
11            singletonprocinst_1::{ISingletonProcInst_1, SingletonProcInst_1},
12        },
13        system::{
14            object::{IObject, Object},
15            r#enum::{Enum, IEnum},
16            valuetype::{IValueType, ValueType},
17        },
18    };
19
20    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mascotfoodeatsequence/MascotFoodEatSequence_Label.md"))]
21    #[repr(C)]
22    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
23    pub struct MascotFoodEatSequence_Label {
24        pub value: i32,
25    }
26    impl ::unity::ClassIdentity for MascotFoodEatSequence_Label {
27        const NAME: &'static str = "MascotFoodEatSequence.Label";
28        const NAMESPACE: &'static str = "App";
29
30        fn class() -> ::unity::Class {
31            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
32            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
33        }
34    }
35    impl ::unity::IlType for MascotFoodEatSequence_Label {
36        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
37            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
38        }
39    }
40    impl MascotFoodEatSequence_Label {
41        pub fn eat_food() -> Self {
42            Self { value: 0 }
43        }
44
45        pub fn exit() -> Self {
46            Self { value: 1 }
47        }
48    }
49
50    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mascotfoodeatsequence/MascotFoodEatSequence.md"))]
51    #[::unity::class(namespace = "App", name = "MascotFoodEatSequence")]
52    #[parent(crate::app::singletonprocinst_1::SingletonProcInst_1<crate::app::mascotfoodeatsequence::MascotFoodEatSequence>)]
53    pub struct MascotFoodEatSequence {
54        #[offset(120)]
55        #[rename(name = "m_foodStuffData")]
56        pub m_food_stuff_data: crate::app::foodstuffdata::FoodstuffData,
57    }
58}
59
60#[cfg(feature = "app-mascotfoodeatsequence-types")]
61pub use __types::*;
62
63#[cfg(feature = "app-mascotfoodeatsequence")]
64impl MascotFoodEatSequence {
65    #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::foodstuffdata::FoodstuffData)` overload"]
66    pub fn create_bind(
67        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
68        foodstuff_data: impl ::core::convert::Into<crate::app::foodstuffdata::FoodstuffData>,
69    ) -> () {
70        unsafe {
71            ::unity::il2cpp_call!((::unity::module_base()+0x20371f0usize)as*mut u8,();
72(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::foodstuffdata::FoodstuffData)::core::convert::Into::into(foodstuff_data))
73        }
74    }
75}
76
77#[cfg(feature = "app-mascotfoodeatsequence")]
78pub trait IMascotFoodEatSequenceMethods: IMascotFoodEatSequence {
79    #[doc = "`.ctor(crate::app::foodstuffdata::FoodstuffData)` overload"]
80    fn ctor(self, foodstuff_data: impl ::core::convert::Into<crate::app::foodstuffdata::FoodstuffData>) -> () {
81        unsafe {
82            let __receiver = <MascotFoodEatSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83            ::unity::il2cpp_call!((::unity::module_base()+0x2035390usize)as*mut u8,();
84(MascotFoodEatSequence)__receiver,(crate::app::foodstuffdata::FoodstuffData)::core::convert::Into::into(foodstuff_data))
85        }
86    }
87    #[doc = "`get_PlayerController()` overload"]
88    fn get_player_controller(self) -> crate::app::hubplayercontroller::HubPlayerController {
89        unsafe {
90            let __receiver = <MascotFoodEatSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91            ::unity::il2cpp_call!((::unity::module_base()+0x2035430usize)as*mut u8,crate::app::hubplayercontroller::HubPlayerController;
92(MascotFoodEatSequence)__receiver)
93        }
94    }
95    #[doc = "`get_Player()` overload"]
96    fn get_player(self) -> crate::app::hubunitcontroller::HubUnitController {
97        unsafe {
98            let __receiver = <MascotFoodEatSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99            ::unity::il2cpp_call!((::unity::module_base()+0x2035440usize)as*mut u8,crate::app::hubunitcontroller::HubUnitController;
100(MascotFoodEatSequence)__receiver)
101        }
102    }
103    #[doc = "`get_Mascot()` overload"]
104    fn get_mascot(self) -> crate::app::hubmascotcontroller::HubMascotController {
105        unsafe {
106            let __receiver = <MascotFoodEatSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107            ::unity::il2cpp_call!((::unity::module_base()+0x20354a0usize)as*mut u8,crate::app::hubmascotcontroller::HubMascotController;
108(MascotFoodEatSequence)__receiver)
109        }
110    }
111    #[doc = "`InitEatFood()` overload"]
112    fn init_eat_food(self) -> () {
113        unsafe {
114            let __receiver = <MascotFoodEatSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
115            ::unity::il2cpp_call!((::unity::module_base()+0x2035540usize)as*mut u8,();
116(MascotFoodEatSequence)__receiver)
117        }
118    }
119    #[doc = "`EatFood()` overload"]
120    fn eat_food(self) -> crate::system::collections::ienumerator::IEnumerator {
121        unsafe {
122            let __receiver = <MascotFoodEatSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
123            ::unity::il2cpp_call!((::unity::module_base()+0x2036160usize)as*mut u8,crate::system::collections::ienumerator::IEnumerator;
124(MascotFoodEatSequence)__receiver)
125        }
126    }
127    #[doc = "`ExitEatFood()` overload"]
128    fn exit_eat_food(self) -> () {
129        unsafe {
130            let __receiver = <MascotFoodEatSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
131            ::unity::il2cpp_call!((::unity::module_base()+0x20361e0usize)as*mut u8,();
132(MascotFoodEatSequence)__receiver)
133        }
134    }
135    #[doc = "`GetBond()` overload"]
136    fn get_bond(self) -> () {
137        unsafe {
138            let __receiver = <MascotFoodEatSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
139            ::unity::il2cpp_call!((::unity::module_base()+0x2036ab0usize)as*mut u8,();
140(MascotFoodEatSequence)__receiver)
141        }
142    }
143    #[doc = "`CreateDesc()` overload"]
144    fn create_desc(self) -> ::unity::Array<crate::app::procdesc::ProcDesc> {
145        unsafe {
146            let __receiver = <MascotFoodEatSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
147            ::unity::il2cpp_call!((::unity::module_base()+0x2036b70usize)as*mut u8, ::unity::Array<crate::app::procdesc::ProcDesc> ;
148(MascotFoodEatSequence)__receiver)
149        }
150    }
151}
152
153#[cfg(feature = "app-mascotfoodeatsequence")]
154impl<__T: IMascotFoodEatSequence> IMascotFoodEatSequenceMethods for __T {}
155
156#[cfg(feature = "app-mascotfoodeatsequence")]
157impl MascotFoodEatSequence {
158    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
159        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
160    }
161
162    pub fn get_player_controller_method_info() -> &'static ::unity::il2cpp::MethodInfo {
163        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
164    }
165
166    pub fn get_player_method_info() -> &'static ::unity::il2cpp::MethodInfo {
167        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
168    }
169
170    pub fn get_mascot_method_info() -> &'static ::unity::il2cpp::MethodInfo {
171        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
172    }
173
174    pub fn init_eat_food_method_info() -> &'static ::unity::il2cpp::MethodInfo {
175        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
176    }
177
178    pub fn eat_food_method_info() -> &'static ::unity::il2cpp::MethodInfo {
179        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
180    }
181
182    pub fn exit_eat_food_method_info() -> &'static ::unity::il2cpp::MethodInfo {
183        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
184    }
185
186    pub fn get_bond_method_info() -> &'static ::unity::il2cpp::MethodInfo {
187        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
188    }
189
190    pub fn create_desc_method_info() -> &'static ::unity::il2cpp::MethodInfo {
191        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
192    }
193
194    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
195        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
196    }
197}
198
199#[cfg(feature = "app-mascotfoodeatsequence")]
200impl MascotFoodEatSequence {
201    #[doc = "`.ctor(crate::app::foodstuffdata::FoodstuffData)` — overload selector"]
202    pub fn new(foodstuff_data: crate::app::foodstuffdata::FoodstuffData) -> Self {
203        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
204            panic!(
205                "{}
206::{}
207 failed to instantiate",
208                ::core::stringify!(MascotFoodEatSequence),
209                ::core::stringify!(new),
210            )
211        });
212        <Self as IMascotFoodEatSequenceMethods>::ctor(this, foodstuff_data);
213        this
214    }
215}
216
217#[cfg(feature = "app-mascotfoodeatsequence")]
218#[doc(hidden)]
219pub mod prelude {
220    pub use super::{IMascotFoodEatSequence, IMascotFoodEatSequenceMethods, MascotFoodEatSequence, MascotFoodEatSequence_Label};
221    #[cfg(feature = "app-procinst")]
222    pub use crate::app::procinst::IProcInstMethods;
223    #[cfg(feature = "app-singletonprocinst_1")]
224    pub use crate::app::singletonprocinst_1::ISingletonProcInst_1Methods;
225    #[cfg(feature = "system-object")]
226    pub use crate::system::object::IObjectMethods;
227    #[cfg(feature = "system-enum")]
228    pub use crate::system::r#enum::IEnumMethods;
229    #[cfg(feature = "system-valuetype")]
230    pub use crate::system::valuetype::IValueTypeMethods;
231    pub use crate::{
232        app::{procinst::IProcInst, singletonprocinst_1::ISingletonProcInst_1},
233        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
234    };
235}