engage/generated/unity_engine/events/
persistentcallgroup.rs1#[cfg(feature = "unity_engine-events-persistentcallgroup-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/events/persistentcallgroup/PersistentCallGroup.md"))]
11 #[::unity::class(namespace = "UnityEngine.Events", name = "PersistentCallGroup")]
12 #[parent(crate::system::object::Object)]
13 pub struct PersistentCallGroup {
14 #[offset(16)]
15 #[rename(name = "m_Calls")]
16 pub m_calls: crate::system::collections::generic::list_1::List_1<crate::unity_engine::events::persistentcall::PersistentCall>,
17 }
18}
19
20#[cfg(feature = "unity_engine-events-persistentcallgroup-types")]
21pub use __types::*;
22
23#[cfg(feature = "unity_engine-events-persistentcallgroup")]
24pub trait IPersistentCallGroupMethods: IPersistentCallGroup {
25 #[doc = "`.ctor()` overload"]
26 fn ctor(self) -> () {
27 unsafe {
28 let __receiver = <PersistentCallGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
29 ::unity::il2cpp_call!((::unity::module_base()+0x32f0f70usize)as*mut u8,();
30(PersistentCallGroup)__receiver)
31 }
32 }
33 #[doc = "`Initialize(crate::unity_engine::events::invokablecalllist::InvokableCallList, crate::unity_engine::events::unityeventbase::UnityEventBase)` overload"]
34 fn initialize(
35 self,
36 invokable_list: impl ::core::convert::Into<crate::unity_engine::events::invokablecalllist::InvokableCallList>,
37 unity_event_base: impl ::core::convert::Into<crate::unity_engine::events::unityeventbase::UnityEventBase>,
38 ) -> () {
39 unsafe {
40 let __receiver = <PersistentCallGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
41 ::unity::il2cpp_call!((::unity::module_base()+0x32f1000usize)as*mut u8,();
42(PersistentCallGroup)__receiver,(crate::unity_engine::events::invokablecalllist::InvokableCallList)::core::convert::Into::into(invokable_list),(crate::unity_engine::events::unityeventbase::UnityEventBase)::core::convert::Into::into(unity_event_base))
43 }
44 }
45}
46
47#[cfg(feature = "unity_engine-events-persistentcallgroup")]
48impl<__T: IPersistentCallGroup> IPersistentCallGroupMethods for __T {}
49
50#[cfg(feature = "unity_engine-events-persistentcallgroup")]
51impl PersistentCallGroup {
52 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
53 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
54 }
55
56 pub fn initialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
57 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
58 }
59}
60
61#[cfg(feature = "unity_engine-events-persistentcallgroup")]
62impl PersistentCallGroup {
63 #[doc = "`.ctor()` — no args"]
64 pub fn new() -> Self {
65 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
66 panic!(
67 "{}
68::{}
69 failed to instantiate",
70 ::core::stringify!(PersistentCallGroup),
71 ::core::stringify!(new),
72 )
73 });
74 <Self as IPersistentCallGroupMethods>::ctor(this);
75 this
76 }
77}
78
79#[cfg(feature = "unity_engine-events-persistentcallgroup")]
80#[doc(hidden)]
81pub mod prelude {
82 pub use super::{IPersistentCallGroup, IPersistentCallGroupMethods, PersistentCallGroup};
83 pub use crate::system::object::IObject;
84 #[cfg(feature = "system-object")]
85 pub use crate::system::object::IObjectMethods;
86}