engage/generated/unity_engine/
boundingsphere.rs1#[cfg(feature = "unity_engine-boundingsphere-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 valuetype::{IValueType, ValueType},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/boundingsphere/BoundingSphere.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct BoundingSphere {
17 pub position: crate::unity_engine::vector3::Vector3,
18 pub radius: f32,
19 }
20 impl ::unity::ClassIdentity for BoundingSphere {
21 const NAME: &'static str = "BoundingSphere";
22 const NAMESPACE: &'static str = "UnityEngine";
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 BoundingSphere {
30 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32 }
33 }
34}
35
36#[cfg(feature = "unity_engine-boundingsphere-types")]
37pub use __types::*;
38
39#[cfg(feature = "unity_engine-boundingsphere")]
40impl BoundingSphere {
41 #[doc = "`.ctor(crate::unity_engine::vector3::Vector3, f32)` overload"]
42 pub fn ctor(&mut self, pos: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>, rad: impl ::core::convert::Into<f32>) -> () {
43 unsafe {
44 ::unity::il2cpp_call!((::unity::module_base()+0x2c38260usize)as*mut u8,();
45(*mut BoundingSphere)self as*mut BoundingSphere,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(pos),(f32)::core::convert::Into::into(rad))
46 }
47 }
48}
49
50#[cfg(feature = "unity_engine-boundingsphere")]
51impl BoundingSphere {
52 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
53 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
54 }
55}
56
57#[cfg(feature = "unity_engine-boundingsphere")]
58#[doc(hidden)]
59pub mod prelude {
60 pub use super::BoundingSphere;
61 #[cfg(feature = "system-object")]
62 pub use crate::system::object::IObjectMethods;
63 #[cfg(feature = "system-valuetype")]
64 pub use crate::system::valuetype::IValueTypeMethods;
65 pub use crate::system::{object::IObject, valuetype::IValueType};
66}