Skip to main content

engage/generated/app/
physicsmanager.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-physicsmanager-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/app/physicsmanager/PhysicsManager.md"))]
14    #[::unity::class(namespace = "App", name = "PhysicsManager")]
15    #[parent(crate::system::object::Object)]
16    pub struct PhysicsManager {}
17
18    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/physicsmanager/PhysicsManager_Scope.md"))]
19    #[repr(C)]
20    #[derive(::core::clone::Clone, ::core::marker::Copy)]
21    pub struct PhysicsManager_Scope {
22        pub m_enable: bool,
23    }
24    impl ::unity::ClassIdentity for PhysicsManager_Scope {
25        const NAME: &'static str = "PhysicsManager.Scope";
26        const NAMESPACE: &'static str = "App";
27
28        fn class() -> ::unity::Class {
29            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
30            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
31        }
32    }
33    impl ::unity::IlType for PhysicsManager_Scope {
34        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
35            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
36        }
37    }
38}
39
40#[cfg(feature = "app-physicsmanager-types")]
41pub use __types::*;
42
43#[cfg(feature = "app-physicsmanager")]
44impl PhysicsManager {
45    #[doc = "`Initialize()` overload"]
46    pub fn initialize() -> () {
47        unsafe {
48            ::unity::il2cpp_call!((::unity::module_base()+0x280b5e0usize)as*mut u8,();
49            )
50        }
51    }
52
53    #[doc = "`SetEnable(bool)` overload"]
54    pub fn set_enable(enable: impl ::core::convert::Into<bool>) -> () {
55        unsafe {
56            ::unity::il2cpp_call!((::unity::module_base()+0x280b5f0usize)as*mut u8,();
57(bool)::core::convert::Into::into(enable))
58        }
59    }
60
61    #[doc = "`IsEnable()` overload"]
62    pub fn is_enable() -> bool {
63        unsafe {
64            ::unity::il2cpp_call!((::unity::module_base()+0x280b600usize)as*mut u8,bool;
65            )
66        }
67    }
68}
69
70#[cfg(feature = "app-physicsmanager")]
71pub trait IPhysicsManagerMethods: IPhysicsManager {
72    #[doc = "`.ctor()` overload"]
73    fn ctor(self) -> () {
74        unsafe {
75            let __receiver = <PhysicsManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76            ::unity::il2cpp_call!((::unity::module_base()+0x280b610usize)as*mut u8,();
77(PhysicsManager)__receiver)
78        }
79    }
80}
81
82#[cfg(feature = "app-physicsmanager")]
83impl<__T: IPhysicsManager> IPhysicsManagerMethods for __T {}
84
85#[cfg(feature = "app-physicsmanager")]
86impl PhysicsManager {
87    pub fn initialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
88        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
89    }
90
91    pub fn set_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
92        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
93    }
94
95    pub fn is_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
96        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
97    }
98
99    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
100        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
101    }
102}
103
104#[cfg(feature = "app-physicsmanager")]
105impl PhysicsManager {
106    #[doc = "`.ctor()` — no args"]
107    pub fn new() -> Self {
108        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
109            panic!(
110                "{}
111::{}
112 failed to instantiate",
113                ::core::stringify!(PhysicsManager),
114                ::core::stringify!(new),
115            )
116        });
117        <Self as IPhysicsManagerMethods>::ctor(this);
118        this
119    }
120}
121
122#[cfg(feature = "app-physicsmanager")]
123impl PhysicsManager_Scope {
124    #[doc = "`.ctor(bool)` overload"]
125    pub fn ctor(&mut self, enable: impl ::core::convert::Into<bool>) -> () {
126        unsafe {
127            ::unity::il2cpp_call!((::unity::module_base()+0x2264bc0usize)as*mut u8,();
128(*mut PhysicsManager_Scope)self as*mut PhysicsManager_Scope,(bool)::core::convert::Into::into(enable))
129        }
130    }
131
132    #[doc = "`Dispose()` overload"]
133    pub fn dispose(&mut self) -> () {
134        unsafe {
135            ::unity::il2cpp_call!((::unity::module_base()+0x2264c00usize)as*mut u8,();
136(*mut PhysicsManager_Scope)self as*mut PhysicsManager_Scope)
137        }
138    }
139}
140
141#[cfg(feature = "app-physicsmanager")]
142impl PhysicsManager_Scope {
143    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
145    }
146
147    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
149    }
150}
151
152#[cfg(feature = "app-physicsmanager")]
153#[doc(hidden)]
154pub mod prelude {
155    pub use super::{IPhysicsManager, IPhysicsManagerMethods, PhysicsManager, PhysicsManager_Scope};
156    #[cfg(feature = "system-object")]
157    pub use crate::system::object::IObjectMethods;
158    #[cfg(feature = "system-valuetype")]
159    pub use crate::system::valuetype::IValueTypeMethods;
160    pub use crate::system::{object::IObject, valuetype::IValueType};
161}