engage/generated/root/
akenvironmentportal.rs1#[cfg(feature = "root-akenvironmentportal-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/akenvironmentportal/AkEnvironmentPortal.md"))]
19 #[::unity::class(namespace = "", name = "AkEnvironmentPortal")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct AkEnvironmentPortal {
22 #[static_field]
23 #[rename(name = "MAX_ENVIRONMENTS_PER_PORTAL")]
24 pub max_environments_per_portal: i32,
25 #[offset(24)]
26 #[rename(name = "axis")]
27 pub axis: crate::unity_engine::vector3::Vector3,
28 #[offset(40)]
29 #[rename(name = "environments")]
30 pub environments: ::unity::Array<crate::root::akenvironment::AkEnvironment>,
31 #[offset(48)]
32 #[rename(name = "m_BoxCollider")]
33 pub m_box_collider: crate::unity_engine::boxcollider::BoxCollider,
34 }
35}
36
37#[cfg(feature = "root-akenvironmentportal-types")]
38pub use __types::*;
39
40#[cfg(feature = "root-akenvironmentportal")]
41pub trait IAkEnvironmentPortalMethods: IAkEnvironmentPortal {
42 #[doc = "`get_BoxCollider()` overload"]
43 fn get_box_collider(self) -> crate::unity_engine::boxcollider::BoxCollider {
44 unsafe {
45 let __receiver = <AkEnvironmentPortal as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
46 ::unity::il2cpp_call!((::unity::module_base()+0x2f1a220usize)as*mut u8,crate::unity_engine::boxcollider::BoxCollider;
47(AkEnvironmentPortal)__receiver)
48 }
49 }
50 #[doc = "`get_EnvironmentsShareAuxBus()` overload"]
51 fn get_environments_share_aux_bus(self) -> bool {
52 unsafe {
53 let __receiver = <AkEnvironmentPortal as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
54 ::unity::il2cpp_call!((::unity::module_base()+0x2f1a2f0usize)as*mut u8,bool;
55(AkEnvironmentPortal)__receiver)
56 }
57 }
58 #[doc = "`GetAuxSendValueForPosition(crate::unity_engine::vector3::Vector3, i32)` overload"]
59 fn get_aux_send_value_for_position(
60 self,
61 in_position: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
62 index: impl ::core::convert::Into<i32>,
63 ) -> f32 {
64 unsafe {
65 let __receiver = <AkEnvironmentPortal as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66 ::unity::il2cpp_call!((::unity::module_base()+0x2f1a480usize)as*mut u8,f32;
67(AkEnvironmentPortal)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(in_position),(i32)::core::convert::Into::into(index))
68 }
69 }
70 #[doc = "`.ctor()` overload"]
71 fn ctor(self) -> () {
72 unsafe {
73 let __receiver = <AkEnvironmentPortal as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74 ::unity::il2cpp_call!((::unity::module_base()+0x2f1a5e0usize)as*mut u8,();
75(AkEnvironmentPortal)__receiver)
76 }
77 }
78}
79
80#[cfg(feature = "root-akenvironmentportal")]
81impl<__T: IAkEnvironmentPortal> IAkEnvironmentPortalMethods for __T {}
82
83#[cfg(feature = "root-akenvironmentportal")]
84impl AkEnvironmentPortal {
85 pub fn get_box_collider_method_info() -> &'static ::unity::il2cpp::MethodInfo {
86 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
87 }
88
89 pub fn get_environments_share_aux_bus_method_info() -> &'static ::unity::il2cpp::MethodInfo {
90 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
91 }
92
93 pub fn get_aux_send_value_for_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
94 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
95 }
96
97 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
98 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
99 }
100}
101
102#[cfg(feature = "root-akenvironmentportal")]
103impl AkEnvironmentPortal {
104 #[doc = "`.ctor()` — no args"]
105 pub fn new() -> Self {
106 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
107 panic!(
108 "{}
109::{}
110 failed to instantiate",
111 ::core::stringify!(AkEnvironmentPortal),
112 ::core::stringify!(new),
113 )
114 });
115 <Self as IAkEnvironmentPortalMethods>::ctor(this);
116 this
117 }
118}
119
120#[cfg(feature = "root-akenvironmentportal")]
121#[doc(hidden)]
122pub mod prelude {
123 pub use super::{AkEnvironmentPortal, IAkEnvironmentPortal, IAkEnvironmentPortalMethods};
124 #[cfg(feature = "system-object")]
125 pub use crate::system::object::IObjectMethods;
126 #[cfg(feature = "unity_engine-behaviour")]
127 pub use crate::unity_engine::behaviour::IBehaviourMethods;
128 #[cfg(feature = "unity_engine-component")]
129 pub use crate::unity_engine::component::IComponentMethods;
130 #[cfg(feature = "unity_engine-monobehaviour")]
131 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
132 #[cfg(feature = "unity_engine-object_2")]
133 pub use crate::unity_engine::object_2::IObject_2Methods;
134 pub use crate::{
135 system::object::IObject,
136 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
137 };
138}