engage/generated/combat/
characterproportion.rs1#[cfg(feature = "combat-characterproportion-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::object::{IObject, Object},
10 unity_engine::{
11 behaviour::{Behaviour, IBehaviour},
12 component::{Component, IComponent},
13 monobehaviour::{IMonoBehaviour, MonoBehaviour},
14 object_2::{IObject_2, Object_2},
15 },
16 };
17
18 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/characterproportion/CharacterProportion.md"))]
19 #[::unity::class(namespace = "Combat", name = "CharacterProportion")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct CharacterProportion {
22 #[offset(24)]
23 #[rename(name = "ProportionParameters")]
24 pub proportion_parameters: crate::combat::proportionparameters::ProportionParameters,
25 #[offset(32)]
26 #[rename(name = "shadowScaleAll")]
27 pub shadow_scale_all: f32,
28 #[offset(36)]
29 #[rename(name = "shadowScaleLegs")]
30 pub shadow_scale_legs: f32,
31 #[offset(40)]
32 #[rename(name = "shadowScaleFeet")]
33 pub shadow_scale_feet: f32,
34 #[offset(48)]
35 #[rename(name = "_chrJoint")]
36 pub chr_joint: crate::combat::characterjoint::CharacterJoint,
37 #[offset(56)]
38 #[rename(name = "_cp")]
39 pub cp: crate::combat::character::Character,
40 }
41}
42
43#[cfg(feature = "combat-characterproportion-types")]
44pub use __types::*;
45
46#[cfg(feature = "combat-characterproportion")]
47pub trait ICharacterProportionMethods: ICharacterProportion {
48 #[doc = "`isShadowScaleOne()` overload"]
49 fn is_shadow_scale_one(self) -> bool {
50 unsafe {
51 let __receiver = <CharacterProportion as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
52 ::unity::il2cpp_call!((::unity::module_base()+0x25e7da0usize)as*mut u8,bool;
53(CharacterProportion)__receiver)
54 }
55 }
56 #[doc = "`get_CharacterJoint()` overload"]
57 fn get_character_joint(self) -> crate::combat::characterjoint::CharacterJoint {
58 unsafe {
59 let __receiver = <CharacterProportion as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
60 ::unity::il2cpp_call!((::unity::module_base()+0x25e7de0usize)as*mut u8,crate::combat::characterjoint::CharacterJoint;
61(CharacterProportion)__receiver)
62 }
63 }
64 #[doc = "`get_CP()` overload"]
65 fn get_cp(self) -> crate::combat::character::Character {
66 unsafe {
67 let __receiver = <CharacterProportion as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
68 ::unity::il2cpp_call!((::unity::module_base()+0x25e7ea0usize)as*mut u8,crate::combat::character::Character;
69(CharacterProportion)__receiver)
70 }
71 }
72 #[doc = "`Start()` overload"]
73 fn start(self) -> () {
74 unsafe {
75 let __receiver = <CharacterProportion as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76 ::unity::il2cpp_call!((::unity::module_base()+0x25e7f60usize)as*mut u8,();
77(CharacterProportion)__receiver)
78 }
79 }
80 #[doc = "`Reset()` overload"]
81 fn reset(self) -> () {
82 unsafe {
83 let __receiver = <CharacterProportion as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
84 ::unity::il2cpp_call!((::unity::module_base()+0x25e80e0usize)as*mut u8,();
85(CharacterProportion)__receiver)
86 }
87 }
88 #[doc = "`Swap()` overload"]
89 fn swap(self) -> () {
90 unsafe {
91 let __receiver = <CharacterProportion as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
92 ::unity::il2cpp_call!((::unity::module_base()+0x25e81a0usize)as*mut u8,();
93(CharacterProportion)__receiver)
94 }
95 }
96 #[doc = "`LateUpdate()` overload"]
97 fn late_update(self) -> () {
98 unsafe {
99 let __receiver = <CharacterProportion as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100 ::unity::il2cpp_call!((::unity::module_base()+0x25e8270usize)as*mut u8,();
101(CharacterProportion)__receiver)
102 }
103 }
104 #[doc = "`CommitChanges()` overload"]
105 fn commit_changes(self) -> () {
106 unsafe {
107 let __receiver = <CharacterProportion as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
108 ::unity::il2cpp_call!((::unity::module_base()+0x25e8310usize)as*mut u8,();
109(CharacterProportion)__receiver)
110 }
111 }
112 #[doc = "`.ctor()` overload"]
113 fn ctor(self) -> () {
114 unsafe {
115 let __receiver = <CharacterProportion as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
116 ::unity::il2cpp_call!((::unity::module_base()+0x25e83b0usize)as*mut u8,();
117(CharacterProportion)__receiver)
118 }
119 }
120}
121
122#[cfg(feature = "combat-characterproportion")]
123impl<__T: ICharacterProportion> ICharacterProportionMethods for __T {}
124
125#[cfg(feature = "combat-characterproportion")]
126impl CharacterProportion {
127 pub fn is_shadow_scale_one_method_info() -> &'static ::unity::il2cpp::MethodInfo {
128 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
129 }
130
131 pub fn get_character_joint_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
133 }
134
135 pub fn get_cp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
137 }
138
139 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
141 }
142
143 pub fn reset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
145 }
146
147 pub fn swap_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
149 }
150
151 pub fn late_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
152 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
153 }
154
155 pub fn commit_changes_method_info() -> &'static ::unity::il2cpp::MethodInfo {
156 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
157 }
158
159 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
160 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
161 }
162}
163
164#[cfg(feature = "combat-characterproportion")]
165impl CharacterProportion {
166 #[doc = "`.ctor()` — no args"]
167 pub fn new() -> Self {
168 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
169 panic!(
170 "{}
171::{}
172 failed to instantiate",
173 ::core::stringify!(CharacterProportion),
174 ::core::stringify!(new),
175 )
176 });
177 <Self as ICharacterProportionMethods>::ctor(this);
178 this
179 }
180}
181
182#[cfg(feature = "combat-characterproportion")]
183#[doc(hidden)]
184pub mod prelude {
185 pub use super::{CharacterProportion, ICharacterProportion, ICharacterProportionMethods};
186 #[cfg(feature = "system-object")]
187 pub use crate::system::object::IObjectMethods;
188 #[cfg(feature = "unity_engine-behaviour")]
189 pub use crate::unity_engine::behaviour::IBehaviourMethods;
190 #[cfg(feature = "unity_engine-component")]
191 pub use crate::unity_engine::component::IComponentMethods;
192 #[cfg(feature = "unity_engine-monobehaviour")]
193 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
194 #[cfg(feature = "unity_engine-object_2")]
195 pub use crate::unity_engine::object_2::IObject_2Methods;
196 pub use crate::{
197 system::object::IObject,
198 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
199 };
200}