Skip to main content

engage/generated/root/
throwing_bridge.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-throwing_bridge-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        combat::{
10            launchbehaviour::{ILaunchBehaviour, LaunchBehaviour},
11            throwing::{IThrowing, Throwing},
12        },
13        system::object::{IObject, Object},
14        unity_engine::{
15            behaviour::{Behaviour, IBehaviour},
16            component::{Component, IComponent},
17            monobehaviour::{IMonoBehaviour, MonoBehaviour},
18            object_2::{IObject_2, Object_2},
19        },
20    };
21
22    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/throwing_bridge/Throwing_Bridge.md"))]
23    #[::unity::class(namespace = "", name = "Throwing_Bridge")]
24    #[parent(crate::combat::throwing::Throwing)]
25    pub struct Throwing_Bridge {}
26}
27
28#[cfg(feature = "root-throwing_bridge-types")]
29pub use __types::*;
30
31#[cfg(feature = "root-throwing_bridge")]
32pub trait IThrowing_BridgeMethods: IThrowing_Bridge {
33    #[doc = "`.ctor()` overload"]
34    fn ctor(self) -> () {
35        unsafe {
36            let __receiver = <Throwing_Bridge as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
37            ::unity::il2cpp_call!((::unity::module_base()+0x21ebcb0usize)as*mut u8,();
38(Throwing_Bridge)__receiver)
39        }
40    }
41}
42
43#[cfg(feature = "root-throwing_bridge")]
44impl<__T: IThrowing_Bridge> IThrowing_BridgeMethods for __T {}
45
46#[cfg(feature = "root-throwing_bridge")]
47impl Throwing_Bridge {
48    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
49        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
50    }
51}
52
53#[cfg(feature = "root-throwing_bridge")]
54impl Throwing_Bridge {
55    #[doc = "`.ctor()` — no args"]
56    pub fn new() -> Self {
57        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
58            panic!(
59                "{}
60::{}
61 failed to instantiate",
62                ::core::stringify!(Throwing_Bridge),
63                ::core::stringify!(new),
64            )
65        });
66        <Self as IThrowing_BridgeMethods>::ctor(this);
67        this
68    }
69}
70
71#[cfg(feature = "root-throwing_bridge")]
72#[doc(hidden)]
73pub mod prelude {
74    pub use super::{IThrowing_Bridge, IThrowing_BridgeMethods, Throwing_Bridge};
75    #[cfg(feature = "combat-launchbehaviour")]
76    pub use crate::combat::launchbehaviour::ILaunchBehaviourMethods;
77    #[cfg(feature = "combat-throwing")]
78    pub use crate::combat::throwing::IThrowingMethods;
79    #[cfg(feature = "system-object")]
80    pub use crate::system::object::IObjectMethods;
81    #[cfg(feature = "unity_engine-behaviour")]
82    pub use crate::unity_engine::behaviour::IBehaviourMethods;
83    #[cfg(feature = "unity_engine-component")]
84    pub use crate::unity_engine::component::IComponentMethods;
85    #[cfg(feature = "unity_engine-monobehaviour")]
86    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
87    #[cfg(feature = "unity_engine-object_2")]
88    pub use crate::unity_engine::object_2::IObject_2Methods;
89    pub use crate::{
90        combat::{launchbehaviour::ILaunchBehaviour, throwing::IThrowing},
91        system::object::IObject,
92        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
93    };
94}