engage/generated/app/
unitentrust.rs1#[cfg(feature = "app-unitentrust-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/unitentrust/UnitEntrust.md"))]
15 #[::unity::class(namespace = "App", name = "UnitEntrust")]
16 #[parent(crate::system::object::Object)]
17 pub struct UnitEntrust {}
18
19 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/unitentrust/UnitEntrust_Type.md"))]
20 #[repr(C)]
21 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
22 pub struct UnitEntrust_Type {
23 pub value: i32,
24 }
25 impl ::unity::ClassIdentity for UnitEntrust_Type {
26 const NAME: &'static str = "UnitEntrust.Type";
27 const NAMESPACE: &'static str = "App";
28
29 fn class() -> ::unity::Class {
30 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
31 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
32 }
33 }
34 impl ::unity::IlType for UnitEntrust_Type {
35 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
36 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
37 }
38 }
39 impl UnitEntrust_Type {
40 pub fn none() -> Self {
41 Self { value: 0 }
42 }
43
44 pub fn rush() -> Self {
45 Self { value: 1 }
46 }
47
48 pub fn escort() -> Self {
49 Self { value: 2 }
50 }
51
52 pub fn retreat() -> Self {
53 Self { value: 3 }
54 }
55
56 pub fn advancement() -> Self {
57 Self { value: 4 }
58 }
59
60 pub fn berserk() -> Self {
61 Self { value: 5 }
62 }
63
64 pub fn tracking() -> Self {
65 Self { value: 6 }
66 }
67
68 pub fn num() -> Self {
69 Self { value: 7 }
70 }
71 }
72}
73
74#[cfg(feature = "app-unitentrust-types")]
75pub use __types::*;
76
77#[cfg(feature = "app-unitentrust")]
78pub trait IUnitEntrustMethods: IUnitEntrust {
79 #[doc = "`.ctor()` overload"]
80 fn ctor(self) -> () {
81 unsafe {
82 let __receiver = <UnitEntrust as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83 ::unity::il2cpp_call!((::unity::module_base()+0x1f7c990usize)as*mut u8,();
84(UnitEntrust)__receiver)
85 }
86 }
87}
88
89#[cfg(feature = "app-unitentrust")]
90impl<__T: IUnitEntrust> IUnitEntrustMethods for __T {}
91
92#[cfg(feature = "app-unitentrust")]
93impl UnitEntrust {
94 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
95 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
96 }
97}
98
99#[cfg(feature = "app-unitentrust")]
100impl UnitEntrust {
101 #[doc = "`.ctor()` — no args"]
102 pub fn new() -> Self {
103 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
104 panic!(
105 "{}
106::{}
107 failed to instantiate",
108 ::core::stringify!(UnitEntrust),
109 ::core::stringify!(new),
110 )
111 });
112 <Self as IUnitEntrustMethods>::ctor(this);
113 this
114 }
115}
116
117#[cfg(feature = "app-unitentrust")]
118#[doc(hidden)]
119pub mod prelude {
120 pub use super::{IUnitEntrust, IUnitEntrustMethods, UnitEntrust, UnitEntrust_Type};
121 #[cfg(feature = "system-object")]
122 pub use crate::system::object::IObjectMethods;
123 #[cfg(feature = "system-enum")]
124 pub use crate::system::r#enum::IEnumMethods;
125 #[cfg(feature = "system-valuetype")]
126 pub use crate::system::valuetype::IValueTypeMethods;
127 pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
128}