engage/generated/unity_engine/events/
invokablecalllist.rs1#[cfg(feature = "unity_engine-events-invokablecalllist-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/invokablecalllist/InvokableCallList.md"))]
11 #[::unity::class(namespace = "UnityEngine.Events", name = "InvokableCallList")]
12 #[parent(crate::system::object::Object)]
13 pub struct InvokableCallList {
14 #[offset(16)]
15 #[rename(name = "m_PersistentCalls")]
16 pub m_persistent_calls:
17 crate::system::collections::generic::list_1::List_1<crate::unity_engine::events::baseinvokablecall::BaseInvokableCall>,
18 #[offset(24)]
19 #[rename(name = "m_RuntimeCalls")]
20 pub m_runtime_calls: crate::system::collections::generic::list_1::List_1<crate::unity_engine::events::baseinvokablecall::BaseInvokableCall>,
21 #[offset(32)]
22 #[rename(name = "m_ExecutingCalls")]
23 pub m_executing_calls: crate::system::collections::generic::list_1::List_1<crate::unity_engine::events::baseinvokablecall::BaseInvokableCall>,
24 #[offset(40)]
25 #[rename(name = "m_NeedsUpdate")]
26 pub m_needs_update: bool,
27 }
28}
29
30#[cfg(feature = "unity_engine-events-invokablecalllist-types")]
31pub use __types::*;
32
33#[cfg(feature = "unity_engine-events-invokablecalllist")]
34pub trait IInvokableCallListMethods: IInvokableCallList {
35 #[doc = "`AddPersistentInvokableCall(crate::unity_engine::events::baseinvokablecall::BaseInvokableCall)` overload"]
36 fn add_persistent_invokable_call(
37 self,
38 call: impl ::core::convert::Into<crate::unity_engine::events::baseinvokablecall::BaseInvokableCall>,
39 ) -> () {
40 unsafe {
41 let __receiver = <InvokableCallList as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
42 ::unity::il2cpp_call!((::unity::module_base()+0x2c51b10usize)as*mut u8,();
43(InvokableCallList)__receiver,(crate::unity_engine::events::baseinvokablecall::BaseInvokableCall)::core::convert::Into::into(call))
44 }
45 }
46 #[doc = "`AddListener(crate::unity_engine::events::baseinvokablecall::BaseInvokableCall)` overload"]
47 fn add_listener(self, call: impl ::core::convert::Into<crate::unity_engine::events::baseinvokablecall::BaseInvokableCall>) -> () {
48 unsafe {
49 let __receiver = <InvokableCallList as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
50 ::unity::il2cpp_call!((::unity::module_base()+0x2c51b80usize)as*mut u8,();
51(InvokableCallList)__receiver,(crate::unity_engine::events::baseinvokablecall::BaseInvokableCall)::core::convert::Into::into(call))
52 }
53 }
54 #[doc = "`RemoveListener(crate::system::object::Object, crate::system::reflection::methodinfo::MethodInfo)` overload"]
55 fn remove_listener(
56 self,
57 target_obj: impl ::core::convert::Into<crate::system::object::Object>,
58 method: impl ::core::convert::Into<crate::system::reflection::methodinfo::MethodInfo>,
59 ) -> () {
60 unsafe {
61 let __receiver = <InvokableCallList as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
62 ::unity::il2cpp_call!((::unity::module_base()+0x2c51bf0usize)as*mut u8,();
63(InvokableCallList)__receiver,(crate::system::object::Object)::core::convert::Into::into(target_obj),(crate::system::reflection::methodinfo::MethodInfo)::core::convert::Into::into(method))
64 }
65 }
66 #[doc = "`ClearPersistent()` overload"]
67 fn clear_persistent(self) -> () {
68 unsafe {
69 let __receiver = <InvokableCallList as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
70 ::unity::il2cpp_call!((::unity::module_base()+0x2c51dc0usize)as*mut u8,();
71(InvokableCallList)__receiver)
72 }
73 }
74 #[doc = "`PrepareInvoke()` overload"]
75 fn prepare_invoke(
76 self,
77 ) -> crate::system::collections::generic::list_1::List_1<crate::unity_engine::events::baseinvokablecall::BaseInvokableCall> {
78 unsafe {
79 let __receiver = <InvokableCallList as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80 ::unity::il2cpp_call!((::unity::module_base()+0x2c51e20usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::unity_engine::events::baseinvokablecall::BaseInvokableCall> ;
81(InvokableCallList)__receiver)
82 }
83 }
84 #[doc = "`.ctor()` overload"]
85 fn ctor(self) -> () {
86 unsafe {
87 let __receiver = <InvokableCallList as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88 ::unity::il2cpp_call!((::unity::module_base()+0x2c51eb0usize)as*mut u8,();
89(InvokableCallList)__receiver)
90 }
91 }
92}
93
94#[cfg(feature = "unity_engine-events-invokablecalllist")]
95impl<__T: IInvokableCallList> IInvokableCallListMethods for __T {}
96
97#[cfg(feature = "unity_engine-events-invokablecalllist")]
98impl InvokableCallList {
99 pub fn add_persistent_invokable_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
100 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
101 }
102
103 pub fn add_listener_method_info() -> &'static ::unity::il2cpp::MethodInfo {
104 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
105 }
106
107 pub fn remove_listener_method_info() -> &'static ::unity::il2cpp::MethodInfo {
108 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
109 }
110
111 pub fn clear_persistent_method_info() -> &'static ::unity::il2cpp::MethodInfo {
112 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
113 }
114
115 pub fn prepare_invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
116 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
117 }
118
119 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
120 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
121 }
122}
123
124#[cfg(feature = "unity_engine-events-invokablecalllist")]
125impl InvokableCallList {
126 #[doc = "`.ctor()` — no args"]
127 pub fn new() -> Self {
128 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
129 panic!(
130 "{}
131::{}
132 failed to instantiate",
133 ::core::stringify!(InvokableCallList),
134 ::core::stringify!(new),
135 )
136 });
137 <Self as IInvokableCallListMethods>::ctor(this);
138 this
139 }
140}
141
142#[cfg(feature = "unity_engine-events-invokablecalllist")]
143#[doc(hidden)]
144pub mod prelude {
145 pub use super::{IInvokableCallList, IInvokableCallListMethods, InvokableCallList};
146 pub use crate::system::object::IObject;
147 #[cfg(feature = "system-object")]
148 pub use crate::system::object::IObjectMethods;
149}