engage/generated/root/
engageparameters.rs1#[cfg(feature = "root-engageparameters-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/root/engageparameters/EngageParameters.md"))]
19 #[::unity::class(namespace = "", name = "EngageParameters")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct EngageParameters {
22 #[offset(24)]
23 #[rename(name = "ReferenceHeight")]
24 pub reference_height: f32,
25 #[offset(28)]
26 #[rename(name = "LowerLimit")]
27 pub lower_limit: f32,
28 #[offset(32)]
29 #[rename(name = "UpperLimit")]
30 pub upper_limit: f32,
31 }
32}
33
34#[cfg(feature = "root-engageparameters-types")]
35pub use __types::*;
36
37#[cfg(feature = "root-engageparameters")]
38pub trait IEngageParametersMethods: IEngageParameters {
39 #[doc = "`.ctor()` overload"]
40 fn ctor(self) -> () {
41 unsafe {
42 let __receiver = <EngageParameters as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43 ::unity::il2cpp_call!((::unity::module_base()+0x22e9ab0usize)as*mut u8,();
44(EngageParameters)__receiver)
45 }
46 }
47}
48
49#[cfg(feature = "root-engageparameters")]
50impl<__T: IEngageParameters> IEngageParametersMethods for __T {}
51
52#[cfg(feature = "root-engageparameters")]
53impl EngageParameters {
54 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
55 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
56 }
57}
58
59#[cfg(feature = "root-engageparameters")]
60impl EngageParameters {
61 #[doc = "`.ctor()` — no args"]
62 pub fn new() -> Self {
63 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
64 panic!(
65 "{}
66::{}
67 failed to instantiate",
68 ::core::stringify!(EngageParameters),
69 ::core::stringify!(new),
70 )
71 });
72 <Self as IEngageParametersMethods>::ctor(this);
73 this
74 }
75}
76
77#[cfg(feature = "root-engageparameters")]
78#[doc(hidden)]
79pub mod prelude {
80 pub use super::{EngageParameters, IEngageParameters, IEngageParametersMethods};
81 #[cfg(feature = "system-object")]
82 pub use crate::system::object::IObjectMethods;
83 #[cfg(feature = "unity_engine-behaviour")]
84 pub use crate::unity_engine::behaviour::IBehaviourMethods;
85 #[cfg(feature = "unity_engine-component")]
86 pub use crate::unity_engine::component::IComponentMethods;
87 #[cfg(feature = "unity_engine-monobehaviour")]
88 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
89 #[cfg(feature = "unity_engine-object_2")]
90 pub use crate::unity_engine::object_2::IObject_2Methods;
91 pub use crate::{
92 system::object::IObject,
93 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
94 };
95}