Skip to main content

engage/generated/app/
dragonrideshotmanager.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-dragonrideshotmanager-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::singletonclass_1::{ISingletonClass_1, SingletonClass_1},
10        system::object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/dragonrideshotmanager/DragonRideShotManager.md"))]
14    #[::unity::class(namespace = "App", name = "DragonRideShotManager")]
15    #[parent(crate::app::singletonclass_1::SingletonClass_1<crate::app::dragonrideshotmanager::DragonRideShotManager>)]
16    pub struct DragonRideShotManager {
17        #[offset(32)]
18        #[rename(name = "m_PoolParent")]
19        pub m_pool_parent: crate::unity_engine::gameobject::GameObject,
20        #[offset(40)]
21        #[rename(name = "m_UseCount")]
22        pub m_use_count: i32,
23        #[offset(44)]
24        #[rename(name = "m_ReturnCount")]
25        pub m_return_count: i32,
26        #[offset(48)]
27        #[rename(name = "m_ReservePoolArray")]
28        pub m_reserve_pool_array: ::unity::Array<crate::unity_engine::gameobject::GameObject>,
29        #[offset(56)]
30        #[rename(name = "MaxShotCount")]
31        pub max_shot_count: i32,
32        #[offset(60)]
33        #[rename(name = "m_DefaultInterpSecond")]
34        pub m_default_interp_second: f32,
35        #[offset(64)]
36        #[rename(name = "m_DefaultShotSpeed")]
37        pub m_default_shot_speed: f32,
38        #[offset(68)]
39        #[rename(name = "m_DefaultLifeSecond")]
40        pub m_default_life_second: f32,
41        #[offset(72)]
42        #[rename(name = "m_IsPenetrate")]
43        pub m_is_penetrate: bool,
44    }
45}
46
47#[cfg(feature = "app-dragonrideshotmanager-types")]
48pub use __types::*;
49
50#[cfg(feature = "app-dragonrideshotmanager")]
51pub trait IDragonRideShotManagerMethods: IDragonRideShotManager {
52    #[doc = "`.ctor()` overload"]
53    fn ctor(self) -> () {
54        unsafe {
55            let __receiver = <DragonRideShotManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56            ::unity::il2cpp_call!((::unity::module_base()+0x2ad9870usize)as*mut u8,();
57(DragonRideShotManager)__receiver)
58        }
59    }
60    #[doc = "`Destruct()` overload"]
61    fn destruct(self) -> () {
62        unsafe {
63            let __receiver = <DragonRideShotManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64            ::unity::il2cpp_call!((::unity::module_base()+0x2ad0070usize)as*mut u8,();
65(DragonRideShotManager)__receiver)
66        }
67    }
68    #[doc = "`SetDefaultParam(f32, f32, f32, bool)` overload"]
69    fn set_default_param(
70        self,
71        interp_second: impl ::core::convert::Into<f32>,
72        shot_speed: impl ::core::convert::Into<f32>,
73        life_second: impl ::core::convert::Into<f32>,
74        is_penetrate: impl ::core::convert::Into<bool>,
75    ) -> () {
76        unsafe {
77            let __receiver = <DragonRideShotManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78            ::unity::il2cpp_call!((::unity::module_base()+0x2ad9b00usize)as*mut u8,();
79(DragonRideShotManager)__receiver,(f32)::core::convert::Into::into(interp_second),(f32)::core::convert::Into::into(shot_speed),(f32)::core::convert::Into::into(life_second),(bool)::core::convert::Into::into(is_penetrate))
80        }
81    }
82    #[doc = "`Tick()` overload"]
83    fn tick(self) -> () {
84        unsafe {
85            let __receiver = <DragonRideShotManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
86            ::unity::il2cpp_call!((::unity::module_base()+0x2ad9b20usize)as*mut u8,();
87(DragonRideShotManager)__receiver)
88        }
89    }
90    #[doc = "`InactiveAllShot()` overload"]
91    fn inactive_all_shot(self) -> () {
92        unsafe {
93            let __receiver = <DragonRideShotManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
94            ::unity::il2cpp_call!((::unity::module_base()+0x2ad9be0usize)as*mut u8,();
95(DragonRideShotManager)__receiver)
96        }
97    }
98    #[doc = "`SetActiveShot(crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3, bool, bool, bool, bool)` overload"]
99    fn set_active_shot(
100        self,
101        pos: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
102        target: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
103        straight: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
104        diff: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
105        is_assist: impl ::core::convert::Into<bool>,
106        is_special_time: impl ::core::convert::Into<bool>,
107        is_penetrate: impl ::core::convert::Into<bool>,
108        is_maximum: impl ::core::convert::Into<bool>,
109    ) -> () {
110        unsafe {
111            let __receiver = <DragonRideShotManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
112            ::unity::il2cpp_call!((::unity::module_base()+0x2ad9c70usize)as*mut u8,();
113(DragonRideShotManager)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(pos),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(target),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(straight),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(diff),(bool)::core::convert::Into::into(is_assist),(bool)::core::convert::Into::into(is_special_time),(bool)::core::convert::Into::into(is_penetrate),(bool)::core::convert::Into::into(is_maximum))
114        }
115    }
116    #[doc = "`ResetShot(crate::unity_engine::gameobject::GameObject)` overload"]
117    fn reset_shot(self, obj: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> () {
118        unsafe {
119            let __receiver = <DragonRideShotManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
120            ::unity::il2cpp_call!((::unity::module_base()+0x2ad94e0usize)as*mut u8,();
121(DragonRideShotManager)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(obj))
122        }
123    }
124}
125
126#[cfg(feature = "app-dragonrideshotmanager")]
127impl<__T: IDragonRideShotManager> IDragonRideShotManagerMethods for __T {}
128
129#[cfg(feature = "app-dragonrideshotmanager")]
130impl DragonRideShotManager {
131    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
133    }
134
135    pub fn destruct_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
137    }
138
139    pub fn set_default_param_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
141    }
142
143    pub fn tick_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
145    }
146
147    pub fn inactive_all_shot_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
149    }
150
151    pub fn set_active_shot_method_info() -> &'static ::unity::il2cpp::MethodInfo {
152        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
153    }
154
155    pub fn reset_shot_method_info() -> &'static ::unity::il2cpp::MethodInfo {
156        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
157    }
158}
159
160#[cfg(feature = "app-dragonrideshotmanager")]
161impl DragonRideShotManager {
162    #[doc = "`.ctor()` — no args"]
163    pub fn new() -> Self {
164        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
165            panic!(
166                "{}
167::{}
168 failed to instantiate",
169                ::core::stringify!(DragonRideShotManager),
170                ::core::stringify!(new),
171            )
172        });
173        <Self as IDragonRideShotManagerMethods>::ctor(this);
174        this
175    }
176}
177
178#[cfg(feature = "app-dragonrideshotmanager")]
179#[doc(hidden)]
180pub mod prelude {
181    pub use super::{DragonRideShotManager, IDragonRideShotManager, IDragonRideShotManagerMethods};
182    #[cfg(feature = "app-singletonclass_1")]
183    pub use crate::app::singletonclass_1::ISingletonClass_1Methods;
184    #[cfg(feature = "system-object")]
185    pub use crate::system::object::IObjectMethods;
186    pub use crate::{app::singletonclass_1::ISingletonClass_1, system::object::IObject};
187}