engage/generated/app/
refinegodweaponcommon.rs1#[cfg(feature = "app-refinegodweaponcommon-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refinegodweaponcommon/RefineGodWeaponCommon.md"))]
11 #[::unity::class(namespace = "App", name = "RefineGodWeaponCommon")]
12 #[parent(crate::system::object::Object)]
13 pub struct RefineGodWeaponCommon {}
14}
15
16#[cfg(feature = "app-refinegodweaponcommon-types")]
17pub use __types::*;
18
19#[cfg(feature = "app-refinegodweaponcommon")]
20impl RefineGodWeaponCommon {
21 #[doc = "`GetCapacity(crate::app::godunit::GodUnit)` overload"]
22 pub fn get_capacity(god_unit: impl ::core::convert::Into<crate::app::godunit::GodUnit>) -> i32 {
23 unsafe {
24 ::unity::il2cpp_call!((::unity::module_base()+0x237fb00usize)as*mut u8,i32;
25(crate::app::godunit::GodUnit)::core::convert::Into::into(god_unit))
26 }
27 }
28
29 #[doc = "`HasEfficacySkills(crate::app::itemdata::ItemData)` overload"]
30 pub fn has_efficacy_skills(item_data: impl ::core::convert::Into<crate::app::itemdata::ItemData>) -> bool {
31 unsafe {
32 ::unity::il2cpp_call!((::unity::module_base()+0x237fbc0usize)as*mut u8,bool;
33(crate::app::itemdata::ItemData)::core::convert::Into::into(item_data))
34 }
35 }
36}
37
38#[cfg(feature = "app-refinegodweaponcommon")]
39pub trait IRefineGodWeaponCommonMethods: IRefineGodWeaponCommon {
40 #[doc = "`.ctor()` overload"]
41 fn ctor(self) -> () {
42 unsafe {
43 let __receiver = <RefineGodWeaponCommon as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
44 ::unity::il2cpp_call!((::unity::module_base()+0x237fd20usize)as*mut u8,();
45(RefineGodWeaponCommon)__receiver)
46 }
47 }
48}
49
50#[cfg(feature = "app-refinegodweaponcommon")]
51impl<__T: IRefineGodWeaponCommon> IRefineGodWeaponCommonMethods for __T {}
52
53#[cfg(feature = "app-refinegodweaponcommon")]
54impl RefineGodWeaponCommon {
55 pub fn get_capacity_method_info() -> &'static ::unity::il2cpp::MethodInfo {
56 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
57 }
58
59 pub fn has_efficacy_skills_method_info() -> &'static ::unity::il2cpp::MethodInfo {
60 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
61 }
62
63 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
64 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
65 }
66}
67
68#[cfg(feature = "app-refinegodweaponcommon")]
69impl RefineGodWeaponCommon {
70 #[doc = "`.ctor()` — no args"]
71 pub fn new() -> Self {
72 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
73 panic!(
74 "{}
75::{}
76 failed to instantiate",
77 ::core::stringify!(RefineGodWeaponCommon),
78 ::core::stringify!(new),
79 )
80 });
81 <Self as IRefineGodWeaponCommonMethods>::ctor(this);
82 this
83 }
84}
85
86#[cfg(feature = "app-refinegodweaponcommon")]
87#[doc(hidden)]
88pub mod prelude {
89 pub use super::{IRefineGodWeaponCommon, IRefineGodWeaponCommonMethods, RefineGodWeaponCommon};
90 pub use crate::system::object::IObject;
91 #[cfg(feature = "system-object")]
92 pub use crate::system::object::IObjectMethods;
93}