Skip to main content

engage/generated/unity_engine/
fixedjoint.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-fixedjoint-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            component::{Component, IComponent},
12            joint::{IJoint, Joint},
13            object_2::{IObject_2, Object_2},
14        },
15    };
16
17    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/fixedjoint/FixedJoint.md"))]
18    #[::unity::class(namespace = "UnityEngine", name = "FixedJoint")]
19    #[parent(crate::unity_engine::joint::Joint)]
20    pub struct FixedJoint {}
21}
22
23#[cfg(feature = "unity_engine-fixedjoint-types")]
24pub use __types::*;
25
26#[cfg(feature = "unity_engine-fixedjoint")]
27pub trait IFixedJointMethods: IFixedJoint {
28    #[doc = "`.ctor()` overload"]
29    fn ctor(self) -> () {
30        unsafe {
31            let __receiver = <FixedJoint as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32            ::unity::il2cpp_call!((::unity::module_base()+0x3ef7640usize)as*mut u8,();
33(FixedJoint)__receiver)
34        }
35    }
36}
37
38#[cfg(feature = "unity_engine-fixedjoint")]
39impl<__T: IFixedJoint> IFixedJointMethods for __T {}
40
41#[cfg(feature = "unity_engine-fixedjoint")]
42impl FixedJoint {
43    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
44        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
45    }
46}
47
48#[cfg(feature = "unity_engine-fixedjoint")]
49impl FixedJoint {
50    #[doc = "`.ctor()` — no args"]
51    pub fn new() -> Self {
52        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
53            panic!(
54                "{}
55::{}
56 failed to instantiate",
57                ::core::stringify!(FixedJoint),
58                ::core::stringify!(new),
59            )
60        });
61        <Self as IFixedJointMethods>::ctor(this);
62        this
63    }
64}
65
66#[cfg(feature = "unity_engine-fixedjoint")]
67#[doc(hidden)]
68pub mod prelude {
69    pub use super::{FixedJoint, IFixedJoint, IFixedJointMethods};
70    #[cfg(feature = "system-object")]
71    pub use crate::system::object::IObjectMethods;
72    #[cfg(feature = "unity_engine-component")]
73    pub use crate::unity_engine::component::IComponentMethods;
74    #[cfg(feature = "unity_engine-joint")]
75    pub use crate::unity_engine::joint::IJointMethods;
76    #[cfg(feature = "unity_engine-object_2")]
77    pub use crate::unity_engine::object_2::IObject_2Methods;
78    pub use crate::{
79        system::object::IObject,
80        unity_engine::{component::IComponent, joint::IJoint, object_2::IObject_2},
81    };
82}