engage/generated/app/
commonrewarddialogcontent.rs1#[cfg(feature = "app-commonrewarddialogcontent-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::gamemessagecontent::{GameMessageContent, IGameMessageContent},
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/commonrewarddialogcontent/CommonRewardDialogContent.md"))]
20 #[::unity::class(namespace = "App", name = "CommonRewardDialogContent")]
21 #[parent(crate::app::gamemessagecontent::GameMessageContent)]
22 pub struct CommonRewardDialogContent {
23 #[static_field]
24 #[rename(name = "PrefabPath")]
25 pub prefab_path: ::unity::Il2CppString,
26 }
27}
28
29#[cfg(feature = "app-commonrewarddialogcontent-types")]
30pub use __types::*;
31
32#[cfg(feature = "app-commonrewarddialogcontent")]
33impl CommonRewardDialogContent {
34 #[doc = "`LoadPrefabAsync()` overload"]
35 pub fn load_prefab_async() -> () {
36 unsafe {
37 ::unity::il2cpp_call!((::unity::module_base()+0x25305e0usize)as*mut u8,();
38 )
39 }
40 }
41
42 #[doc = "`IsLoadingPrefab()` overload"]
43 pub fn is_loading_prefab() -> bool {
44 unsafe {
45 ::unity::il2cpp_call!((::unity::module_base()+0x2530680usize)as*mut u8,bool;
46 )
47 }
48 }
49
50 #[doc = "`UnloadPrefab()` overload"]
51 pub fn unload_prefab() -> () {
52 unsafe {
53 ::unity::il2cpp_call!((::unity::module_base()+0x2530700usize)as*mut u8,();
54 )
55 }
56 }
57
58 #[doc = "`CreateRelay(crate::system::collections::generic::list_1::List_1<crate::app::relaycompletionawarddata::RelayCompletionAwardData_CalcResult_Item>, crate::system::collections::generic::list_1::List_1<crate::app::relaycompletionawarddata::RelayCompletionAwardData_CalcResult_Item>)` overload"]
59 pub fn create_relay(
60 main_item_param_list: impl ::core::convert::Into<
61 crate::system::collections::generic::list_1::List_1<crate::app::relaycompletionawarddata::RelayCompletionAwardData_CalcResult_Item>,
62 >,
63 sub_item_param_list: impl ::core::convert::Into<
64 crate::system::collections::generic::list_1::List_1<crate::app::relaycompletionawarddata::RelayCompletionAwardData_CalcResult_Item>,
65 >,
66 ) -> crate::app::commonrewarddialogcontent::CommonRewardDialogContent {
67 unsafe {
68 ::unity::il2cpp_call!((::unity::module_base()+0x2530780usize)as*mut u8,crate::app::commonrewarddialogcontent::CommonRewardDialogContent;
69(crate::system::collections::generic::list_1::List_1<crate::app::relaycompletionawarddata::RelayCompletionAwardData_CalcResult_Item>)::core::convert::Into::into(main_item_param_list),(crate::system::collections::generic::list_1::List_1<crate::app::relaycompletionawarddata::RelayCompletionAwardData_CalcResult_Item>)::core::convert::Into::into(sub_item_param_list))
70 }
71 }
72
73 #[doc = "`CreateSubOnly(::unity::Il2CppString, crate::system::collections::generic::dictionary_2::Dictionary_2<crate::app::itemdata::ItemData,i32>, i32)` overload"]
74 pub fn create_sub_only(
75 title_text: impl ::core::convert::Into<::unity::Il2CppString>,
76 sub_item_param_list: impl ::core::convert::Into<
77 crate::system::collections::generic::dictionary_2::Dictionary_2<crate::app::itemdata::ItemData, i32>,
78 >,
79 money: impl ::core::convert::Into<i32>,
80 ) -> crate::app::commonrewarddialogcontent::CommonRewardDialogContent {
81 unsafe {
82 ::unity::il2cpp_call!((::unity::module_base()+0x2530010usize)as*mut u8,crate::app::commonrewarddialogcontent::CommonRewardDialogContent;
83(::unity::Il2CppString)::core::convert::Into::into(title_text),(crate::system::collections::generic::dictionary_2::Dictionary_2<crate::app::itemdata::ItemData,i32>)::core::convert::Into::into(sub_item_param_list),(i32)::core::convert::Into::into(money))
84 }
85 }
86
87 #[doc = "`SetItem(crate::unity_engine::gameobject::GameObject, crate::app::itemdata::ItemData, i32)` overload"]
88 pub fn set_item(
89 root: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
90 item: impl ::core::convert::Into<crate::app::itemdata::ItemData>,
91 count: impl ::core::convert::Into<i32>,
92 ) -> () {
93 unsafe {
94 ::unity::il2cpp_call!((::unity::module_base()+0x2530c40usize)as*mut u8,();
95(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(root),(crate::app::itemdata::ItemData)::core::convert::Into::into(item),(i32)::core::convert::Into::into(count))
96 }
97 }
98}
99
100#[cfg(feature = "app-commonrewarddialogcontent")]
101pub trait ICommonRewardDialogContentMethods: ICommonRewardDialogContent {
102 #[doc = "`.ctor()` overload"]
103 fn ctor(self) -> () {
104 unsafe {
105 let __receiver =
106 <CommonRewardDialogContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107 ::unity::il2cpp_call!((::unity::module_base()+0x2531130usize)as*mut u8,();
108(CommonRewardDialogContent)__receiver)
109 }
110 }
111}
112
113#[cfg(feature = "app-commonrewarddialogcontent")]
114impl<__T: ICommonRewardDialogContent> ICommonRewardDialogContentMethods for __T {}
115
116#[cfg(feature = "app-commonrewarddialogcontent")]
117impl CommonRewardDialogContent {
118 pub fn load_prefab_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
119 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
120 }
121
122 pub fn is_loading_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
123 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
124 }
125
126 pub fn unload_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
127 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
128 }
129
130 pub fn create_relay_method_info() -> &'static ::unity::il2cpp::MethodInfo {
131 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
132 }
133
134 pub fn create_sub_only_method_info() -> &'static ::unity::il2cpp::MethodInfo {
135 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
136 }
137
138 pub fn set_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
139 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
140 }
141
142 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
143 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
144 }
145}
146
147#[cfg(feature = "app-commonrewarddialogcontent")]
148impl CommonRewardDialogContent {
149 #[doc = "`.ctor()` — no args"]
150 pub fn new() -> Self {
151 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
152 panic!(
153 "{}
154::{}
155 failed to instantiate",
156 ::core::stringify!(CommonRewardDialogContent),
157 ::core::stringify!(new),
158 )
159 });
160 <Self as ICommonRewardDialogContentMethods>::ctor(this);
161 this
162 }
163}
164
165#[cfg(feature = "app-commonrewarddialogcontent")]
166#[doc(hidden)]
167pub mod prelude {
168 pub use super::{CommonRewardDialogContent, ICommonRewardDialogContent, ICommonRewardDialogContentMethods};
169 #[cfg(feature = "app-gamemessagecontent")]
170 pub use crate::app::gamemessagecontent::IGameMessageContentMethods;
171 #[cfg(feature = "system-object")]
172 pub use crate::system::object::IObjectMethods;
173 #[cfg(feature = "unity_engine-behaviour")]
174 pub use crate::unity_engine::behaviour::IBehaviourMethods;
175 #[cfg(feature = "unity_engine-component")]
176 pub use crate::unity_engine::component::IComponentMethods;
177 #[cfg(feature = "unity_engine-monobehaviour")]
178 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
179 #[cfg(feature = "unity_engine-object_2")]
180 pub use crate::unity_engine::object_2::IObject_2Methods;
181 pub use crate::{
182 app::gamemessagecontent::IGameMessageContent,
183 system::object::IObject,
184 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
185 };
186}