Skip to main content

engage/generated/app/
capabilitydefinition.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-capabilitydefinition-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/capabilitydefinition/CapabilityDefinition_Type.md"))]
15    #[repr(C)]
16    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
17    pub struct CapabilityDefinition_Type {
18        pub value: i32,
19    }
20    impl ::unity::ClassIdentity for CapabilityDefinition_Type {
21        const NAME: &'static str = "CapabilityDefinition.Type";
22        const NAMESPACE: &'static str = "App";
23
24        fn class() -> ::unity::Class {
25            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27        }
28    }
29    impl ::unity::IlType for CapabilityDefinition_Type {
30        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32        }
33    }
34    impl CapabilityDefinition_Type {
35        pub fn none() -> Self {
36            Self { value: -1 }
37        }
38
39        pub fn hp() -> Self {
40            Self { value: 0 }
41        }
42
43        pub fn str() -> Self {
44            Self { value: 1 }
45        }
46
47        pub fn tech() -> Self {
48            Self { value: 2 }
49        }
50
51        pub fn quick() -> Self {
52            Self { value: 3 }
53        }
54
55        pub fn luck() -> Self {
56            Self { value: 4 }
57        }
58
59        pub fn def() -> Self {
60            Self { value: 5 }
61        }
62
63        pub fn magic() -> Self {
64            Self { value: 6 }
65        }
66
67        pub fn mdef() -> Self {
68            Self { value: 7 }
69        }
70
71        pub fn phys() -> Self {
72            Self { value: 8 }
73        }
74
75        pub fn sight() -> Self {
76            Self { value: 9 }
77        }
78
79        pub fn r#move() -> Self {
80            Self { value: 10 }
81        }
82
83        pub fn num() -> Self {
84            Self { value: 11 }
85        }
86
87        pub fn cc_num() -> Self {
88            Self { value: 8 }
89        }
90
91        pub fn grow_num() -> Self {
92            Self { value: 9 }
93        }
94    }
95
96    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/capabilitydefinition/CapabilityDefinition.md"))]
97    #[::unity::class(namespace = "App", name = "CapabilityDefinition")]
98    #[parent(crate::system::object::Object)]
99    pub struct CapabilityDefinition {
100        #[static_field]
101        #[rename(name = "Num")]
102        pub num: i32,
103        #[static_field]
104        #[rename(name = "CcNum")]
105        pub cc_num: i32,
106        #[static_field]
107        #[rename(name = "GrowNum")]
108        pub grow_num: i32,
109        #[static_field]
110        #[rename(name = "Names")]
111        pub names: ::unity::Array<::unity::Il2CppString>,
112        #[static_field]
113        #[rename(name = "Helps")]
114        pub helps: ::unity::Array<::unity::Il2CppString>,
115    }
116}
117
118#[cfg(feature = "app-capabilitydefinition-types")]
119pub use __types::*;
120
121#[cfg(feature = "app-capabilitydefinition")]
122impl CapabilityDefinition {
123    #[doc = "`GetName(i32)` overload"]
124    pub fn get_name(index: impl ::core::convert::Into<i32>) -> ::unity::Il2CppString {
125        unsafe {
126            ::unity::il2cpp_call!((::unity::module_base()+0x25bced0usize)as*mut u8, ::unity::Il2CppString;
127(i32)::core::convert::Into::into(index))
128        }
129    }
130
131    #[doc = "`GetHelp(i32)` overload"]
132    pub fn get_help(index: impl ::core::convert::Into<i32>) -> ::unity::Il2CppString {
133        unsafe {
134            ::unity::il2cpp_call!((::unity::module_base()+0x25bcfa0usize)as*mut u8, ::unity::Il2CppString;
135(i32)::core::convert::Into::into(index))
136        }
137    }
138
139    #[doc = "`.cctor()` overload"]
140    pub fn cctor() -> () {
141        unsafe {
142            ::unity::il2cpp_call!((::unity::module_base()+0x25bd080usize)as*mut u8,();
143            )
144        }
145    }
146}
147
148#[cfg(feature = "app-capabilitydefinition")]
149pub trait ICapabilityDefinitionMethods: ICapabilityDefinition {
150    #[doc = "`.ctor()` overload"]
151    fn ctor(self) -> () {
152        unsafe {
153            let __receiver = <CapabilityDefinition as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
154            ::unity::il2cpp_call!((::unity::module_base()+0x25bd070usize)as*mut u8,();
155(CapabilityDefinition)__receiver)
156        }
157    }
158}
159
160#[cfg(feature = "app-capabilitydefinition")]
161impl<__T: ICapabilityDefinition> ICapabilityDefinitionMethods for __T {}
162
163#[cfg(feature = "app-capabilitydefinition")]
164impl CapabilityDefinition {
165    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
166        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
167    }
168
169    pub fn get_help_method_info() -> &'static ::unity::il2cpp::MethodInfo {
170        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
171    }
172
173    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
174        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
175    }
176
177    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
178        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
179    }
180}
181
182#[cfg(feature = "app-capabilitydefinition")]
183impl CapabilityDefinition {
184    #[doc = "`.ctor()` — no args"]
185    pub fn new() -> Self {
186        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
187            panic!(
188                "{}
189::{}
190 failed to instantiate",
191                ::core::stringify!(CapabilityDefinition),
192                ::core::stringify!(new),
193            )
194        });
195        <Self as ICapabilityDefinitionMethods>::ctor(this);
196        this
197    }
198}
199
200#[cfg(feature = "app-capabilitydefinition")]
201#[doc(hidden)]
202pub mod prelude {
203    pub use super::{CapabilityDefinition, CapabilityDefinition_Type, ICapabilityDefinition, ICapabilityDefinitionMethods};
204    #[cfg(feature = "system-object")]
205    pub use crate::system::object::IObjectMethods;
206    #[cfg(feature = "system-enum")]
207    pub use crate::system::r#enum::IEnumMethods;
208    #[cfg(feature = "system-valuetype")]
209    pub use crate::system::valuetype::IValueTypeMethods;
210    pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
211}