engage/generated/app/
dishresultdialogparamcontent.rs1#[cfg(feature = "app-dishresultdialogparamcontent-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::object::{IObject, Object},
10 unity_engine::{
11 behaviour::{Behaviour, IBehaviour},
12 component::{Component, IComponent},
13 monobehaviour::{IMonoBehaviour, MonoBehaviour},
14 object_2::{IObject_2, Object_2},
15 },
16 };
17
18 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/dishresultdialogparamcontent/DishResultDialogParamContent.md"))]
19 #[::unity::class(namespace = "App", name = "DishResultDialogParamContent")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct DishResultDialogParamContent {
22 #[offset(24)]
23 #[rename(name = "m_TitleText")]
24 pub m_title_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
25 #[offset(32)]
26 #[rename(name = "m_ValueObject")]
27 pub m_value_object: crate::unity_engine::gameobject::GameObject,
28 #[offset(40)]
29 #[rename(name = "m_UpObject")]
30 pub m_up_object: crate::unity_engine::gameobject::GameObject,
31 #[offset(48)]
32 #[rename(name = "m_DownObject")]
33 pub m_down_object: crate::unity_engine::gameobject::GameObject,
34 #[offset(56)]
35 #[rename(name = "m_NothingObject")]
36 pub m_nothing_object: crate::unity_engine::gameobject::GameObject,
37 #[offset(64)]
38 #[rename(name = "m_ValueText")]
39 pub m_value_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
40 }
41}
42
43#[cfg(feature = "app-dishresultdialogparamcontent-types")]
44pub use __types::*;
45
46#[cfg(feature = "app-dishresultdialogparamcontent")]
47pub trait IDishResultDialogParamContentMethods: IDishResultDialogParamContent {
48 #[doc = "`Awake()` overload"]
49 fn awake(self) -> () {
50 unsafe {
51 let __receiver =
52 <DishResultDialogParamContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
53 ::unity::il2cpp_call!((::unity::module_base()+0x1cf6140usize)as*mut u8,();
54(DishResultDialogParamContent)__receiver)
55 }
56 }
57 #[doc = "`SetEnhance(crate::app::capabilitydefinition::CapabilityDefinition_Type, i32)` overload"]
58 fn set_enhance(
59 self,
60 r#type: impl ::core::convert::Into<crate::app::capabilitydefinition::CapabilityDefinition_Type>,
61 value: impl ::core::convert::Into<i32>,
62 ) -> bool {
63 unsafe {
64 let __receiver =
65 <DishResultDialogParamContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66 ::unity::il2cpp_call!((::unity::module_base()+0x1cf5cc0usize)as*mut u8,bool;
67(DishResultDialogParamContent)__receiver,(crate::app::capabilitydefinition::CapabilityDefinition_Type)::core::convert::Into::into(r#type),(i32)::core::convert::Into::into(value))
68 }
69 }
70 #[doc = "`SetBonus(crate::app::capabilitydefinition::CapabilityDefinition_Type, i32)` overload"]
71 fn set_bonus(
72 self,
73 r#type: impl ::core::convert::Into<crate::app::capabilitydefinition::CapabilityDefinition_Type>,
74 value: impl ::core::convert::Into<i32>,
75 ) -> bool {
76 unsafe {
77 let __receiver =
78 <DishResultDialogParamContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79 ::unity::il2cpp_call!((::unity::module_base()+0x1cf5ee0usize)as*mut u8,bool;
80(DishResultDialogParamContent)__receiver,(crate::app::capabilitydefinition::CapabilityDefinition_Type)::core::convert::Into::into(r#type),(i32)::core::convert::Into::into(value))
81 }
82 }
83 #[doc = "`SetTitle(crate::app::capabilitydefinition::CapabilityDefinition_Type)` overload"]
84 fn set_title(self, r#type: impl ::core::convert::Into<crate::app::capabilitydefinition::CapabilityDefinition_Type>) -> () {
85 unsafe {
86 let __receiver =
87 <DishResultDialogParamContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88 ::unity::il2cpp_call!((::unity::module_base()+0x1cf61b0usize)as*mut u8,();
89(DishResultDialogParamContent)__receiver,(crate::app::capabilitydefinition::CapabilityDefinition_Type)::core::convert::Into::into(r#type))
90 }
91 }
92 #[doc = "`.ctor()` overload"]
93 fn ctor(self) -> () {
94 unsafe {
95 let __receiver =
96 <DishResultDialogParamContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
97 ::unity::il2cpp_call!((::unity::module_base()+0x1cf63f0usize)as*mut u8,();
98(DishResultDialogParamContent)__receiver)
99 }
100 }
101}
102
103#[cfg(feature = "app-dishresultdialogparamcontent")]
104impl<__T: IDishResultDialogParamContent> IDishResultDialogParamContentMethods for __T {}
105
106#[cfg(feature = "app-dishresultdialogparamcontent")]
107impl DishResultDialogParamContent {
108 pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
109 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
110 }
111
112 pub fn set_enhance_method_info() -> &'static ::unity::il2cpp::MethodInfo {
113 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
114 }
115
116 pub fn set_bonus_method_info() -> &'static ::unity::il2cpp::MethodInfo {
117 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
118 }
119
120 pub fn set_title_method_info() -> &'static ::unity::il2cpp::MethodInfo {
121 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
122 }
123
124 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
125 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
126 }
127}
128
129#[cfg(feature = "app-dishresultdialogparamcontent")]
130impl DishResultDialogParamContent {
131 #[doc = "`.ctor()` — no args"]
132 pub fn new() -> Self {
133 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
134 panic!(
135 "{}
136::{}
137 failed to instantiate",
138 ::core::stringify!(DishResultDialogParamContent),
139 ::core::stringify!(new),
140 )
141 });
142 <Self as IDishResultDialogParamContentMethods>::ctor(this);
143 this
144 }
145}
146
147#[cfg(feature = "app-dishresultdialogparamcontent")]
148#[doc(hidden)]
149pub mod prelude {
150 pub use super::{DishResultDialogParamContent, IDishResultDialogParamContent, IDishResultDialogParamContentMethods};
151 #[cfg(feature = "system-object")]
152 pub use crate::system::object::IObjectMethods;
153 #[cfg(feature = "unity_engine-behaviour")]
154 pub use crate::unity_engine::behaviour::IBehaviourMethods;
155 #[cfg(feature = "unity_engine-component")]
156 pub use crate::unity_engine::component::IComponentMethods;
157 #[cfg(feature = "unity_engine-monobehaviour")]
158 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
159 #[cfg(feature = "unity_engine-object_2")]
160 pub use crate::unity_engine::object_2::IObject_2Methods;
161 pub use crate::{
162 system::object::IObject,
163 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
164 };
165}