Skip to main content

engage/generated/app/
unitparamdetail.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-unitparamdetail-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        r#enum::{Enum, IEnum},
11        valuetype::{IValueType, ValueType},
12    };
13
14    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/unitparamdetail/UnitParamDetail.md"))]
15    #[::unity::class(namespace = "App", name = "UnitParamDetail")]
16    #[parent(crate::system::object::Object)]
17    pub struct UnitParamDetail {
18        #[offset(16)]
19        #[rename(name = "m_value")]
20        pub m_value: ::unity::Array<i32>,
21    }
22
23    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/unitparamdetail/UnitParamDetail_ValueDetail.md"))]
24    #[repr(C)]
25    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
26    pub struct UnitParamDetail_ValueDetail {
27        pub value: i32,
28    }
29    impl ::unity::ClassIdentity for UnitParamDetail_ValueDetail {
30        const NAME: &'static str = "UnitParamDetail.ValueDetail";
31        const NAMESPACE: &'static str = "App";
32
33        fn class() -> ::unity::Class {
34            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
35            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
36        }
37    }
38    impl ::unity::IlType for UnitParamDetail_ValueDetail {
39        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
40            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
41        }
42    }
43    impl UnitParamDetail_ValueDetail {
44        pub fn base() -> Self {
45            Self { value: 0 }
46        }
47
48        pub fn god() -> Self {
49            Self { value: 1 }
50        }
51
52        pub fn terrain() -> Self {
53            Self { value: 2 }
54        }
55
56        pub fn support() -> Self {
57            Self { value: 3 }
58        }
59
60        pub fn effect() -> Self {
61            Self { value: 4 }
62        }
63
64        pub fn hub() -> Self {
65            Self { value: 5 }
66        }
67
68        pub fn weight() -> Self {
69            Self { value: 6 }
70        }
71
72        pub fn num() -> Self {
73            Self { value: 7 }
74        }
75    }
76}
77
78#[cfg(feature = "app-unitparamdetail-types")]
79pub use __types::*;
80
81#[cfg(feature = "app-unitparamdetail")]
82pub trait IUnitParamDetailMethods: IUnitParamDetail {
83    #[doc = "`SetParam(i32, i32, i32, i32, i32, i32)` overload"]
84    fn set_param(
85        self,
86        total: impl ::core::convert::Into<i32>,
87        no_god: impl ::core::convert::Into<i32>,
88        no_effect: impl ::core::convert::Into<i32>,
89        no_hub: impl ::core::convert::Into<i32>,
90        terrain: impl ::core::convert::Into<i32>,
91        support: impl ::core::convert::Into<i32>,
92    ) -> () {
93        unsafe {
94            let __receiver = <UnitParamDetail as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
95            ::unity::il2cpp_call!((::unity::module_base()+0x1c52fe0usize)as*mut u8,();
96(UnitParamDetail)__receiver,(i32)::core::convert::Into::into(total),(i32)::core::convert::Into::into(no_god),(i32)::core::convert::Into::into(no_effect),(i32)::core::convert::Into::into(no_hub),(i32)::core::convert::Into::into(terrain),(i32)::core::convert::Into::into(support))
97        }
98    }
99    #[doc = "`AddParam(crate::app::unitparamdetail::UnitParamDetail_ValueDetail, i32)` overload"]
100    fn add_param(
101        self,
102        r#type: impl ::core::convert::Into<crate::app::unitparamdetail::UnitParamDetail_ValueDetail>,
103        val: impl ::core::convert::Into<i32>,
104    ) -> () {
105        unsafe {
106            let __receiver = <UnitParamDetail as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107            ::unity::il2cpp_call!((::unity::module_base()+0x1c53230usize)as*mut u8,();
108(UnitParamDetail)__receiver,(crate::app::unitparamdetail::UnitParamDetail_ValueDetail)::core::convert::Into::into(r#type),(i32)::core::convert::Into::into(val))
109        }
110    }
111    #[doc = "`SetParamForContinuous(i32, i32, i32)` overload"]
112    fn set_param_for_continuous(
113        self,
114        god_delta: impl ::core::convert::Into<i32>,
115        skill_delta: impl ::core::convert::Into<i32>,
116        weight: impl ::core::convert::Into<i32>,
117    ) -> () {
118        unsafe {
119            let __receiver = <UnitParamDetail as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
120            ::unity::il2cpp_call!((::unity::module_base()+0x1c53270usize)as*mut u8,();
121(UnitParamDetail)__receiver,(i32)::core::convert::Into::into(god_delta),(i32)::core::convert::Into::into(skill_delta),(i32)::core::convert::Into::into(weight))
122        }
123    }
124    #[doc = "`GetValue(crate::app::unitparamdetail::UnitParamDetail_ValueDetail)` overload"]
125    fn get_value(self, detail: impl ::core::convert::Into<crate::app::unitparamdetail::UnitParamDetail_ValueDetail>) -> i32 {
126        unsafe {
127            let __receiver = <UnitParamDetail as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
128            ::unity::il2cpp_call!((::unity::module_base()+0x1c533b0usize)as*mut u8,i32;
129(UnitParamDetail)__receiver,(crate::app::unitparamdetail::UnitParamDetail_ValueDetail)::core::convert::Into::into(detail))
130        }
131    }
132    #[doc = "`GetTotal()` overload"]
133    fn get_total(self) -> i32 {
134        unsafe {
135            let __receiver = <UnitParamDetail as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
136            ::unity::il2cpp_call!((::unity::module_base()+0x1c533f0usize)as*mut u8,i32;
137(UnitParamDetail)__receiver)
138        }
139    }
140    #[doc = "`GetEnhanceDir(bool)` overload"]
141    fn get_enhance_dir(self, is_god_change: impl ::core::convert::Into<bool>) -> i32 {
142        unsafe {
143            let __receiver = <UnitParamDetail as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
144            ::unity::il2cpp_call!((::unity::module_base()+0x1c53450usize)as*mut u8,i32;
145(UnitParamDetail)__receiver,(bool)::core::convert::Into::into(is_god_change))
146        }
147    }
148    #[doc = "`.ctor()` overload"]
149    fn ctor(self) -> () {
150        unsafe {
151            let __receiver = <UnitParamDetail as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
152            ::unity::il2cpp_call!((::unity::module_base()+0x1c534e0usize)as*mut u8,();
153(UnitParamDetail)__receiver)
154        }
155    }
156}
157
158#[cfg(feature = "app-unitparamdetail")]
159impl<__T: IUnitParamDetail> IUnitParamDetailMethods for __T {}
160
161#[cfg(feature = "app-unitparamdetail")]
162impl UnitParamDetail {
163    pub fn set_param_method_info() -> &'static ::unity::il2cpp::MethodInfo {
164        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
165    }
166
167    pub fn add_param_method_info() -> &'static ::unity::il2cpp::MethodInfo {
168        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
169    }
170
171    pub fn set_param_for_continuous_method_info() -> &'static ::unity::il2cpp::MethodInfo {
172        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
173    }
174
175    pub fn get_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
176        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
177    }
178
179    pub fn get_total_method_info() -> &'static ::unity::il2cpp::MethodInfo {
180        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
181    }
182
183    pub fn get_enhance_dir_method_info() -> &'static ::unity::il2cpp::MethodInfo {
184        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
185    }
186
187    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
188        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
189    }
190}
191
192#[cfg(feature = "app-unitparamdetail")]
193impl UnitParamDetail {
194    #[doc = "`.ctor()` — no args"]
195    pub fn new() -> Self {
196        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
197            panic!(
198                "{}
199::{}
200 failed to instantiate",
201                ::core::stringify!(UnitParamDetail),
202                ::core::stringify!(new),
203            )
204        });
205        <Self as IUnitParamDetailMethods>::ctor(this);
206        this
207    }
208}
209
210#[cfg(feature = "app-unitparamdetail")]
211#[doc(hidden)]
212pub mod prelude {
213    pub use super::{IUnitParamDetail, IUnitParamDetailMethods, UnitParamDetail, UnitParamDetail_ValueDetail};
214    #[cfg(feature = "system-object")]
215    pub use crate::system::object::IObjectMethods;
216    #[cfg(feature = "system-enum")]
217    pub use crate::system::r#enum::IEnumMethods;
218    #[cfg(feature = "system-valuetype")]
219    pub use crate::system::valuetype::IValueTypeMethods;
220    pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
221}