engage/generated/app/
componentsinchildrenenumerator_1.rs1#[cfg(feature = "app-componentsinchildrenenumerator_1-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 delegate::{Delegate, IDelegate},
10 multicastdelegate::{IMulticastDelegate, MulticastDelegate},
11 object::{IObject, Object},
12 };
13
14 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/componentsinchildrenenumerator_1/ComponentsInChildrenEnumerator_1_Func.md"))]
15 #[::unity::class(namespace = "App", name = "ComponentsInChildrenEnumerator`1.Func")]
16 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
17 #[parent(crate::system::delegate::Delegate)]
18 #[parent(crate::system::object::Object)]
19 pub struct ComponentsInChildrenEnumerator_1_Func<T0: ::unity::ClassIdentity> {}
20
21 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/componentsinchildrenenumerator_1/ComponentsInChildrenEnumerator_1.md"))]
22 #[::unity::class(namespace = "App", name = "ComponentsInChildrenEnumerator`1")]
23 #[parent(crate::system::object::Object)]
24 pub struct ComponentsInChildrenEnumerator_1<T0: ::unity::ClassIdentity> {}
25}
26
27#[cfg(feature = "app-componentsinchildrenenumerator_1-types")]
28pub use __types::*;
29
30#[cfg(feature = "app-componentsinchildrenenumerator_1")]
31#[::unity::methods]
32impl<T0: ::unity::ClassIdentity> ComponentsInChildrenEnumerator_1_Func<T0> {
33 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
34 #[method(name = ".ctor", args = 2)]
35 pub fn ctor(self, object: crate::system::object::Object, method: ::unity::IntPtr) -> ();
36
37 #[doc = "`Invoke(T0)` overload"]
38 #[method(name = "Invoke", args = 1)]
39 pub fn invoke(self, component: T0) -> ();
40}
41
42#[cfg(feature = "app-componentsinchildrenenumerator_1")]
43impl<T0: ::unity::ClassIdentity> ComponentsInChildrenEnumerator_1_Func<T0> {
44 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
45 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
46 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
47 panic!(
48 "{}
49::{}
50 failed to instantiate",
51 ::core::stringify!(ComponentsInChildrenEnumerator_1_Func),
52 ::core::stringify!(new),
53 )
54 });
55 <Self as IComponentsInChildrenEnumerator_1_FuncMethods<T0>>::ctor(this, object, method);
56 this
57 }
58}
59
60#[cfg(feature = "app-componentsinchildrenenumerator_1")]
61#[::unity::methods]
62impl<T0: ::unity::ClassIdentity> ComponentsInChildrenEnumerator_1<T0> {
63 #[doc = "`ForEach(crate::unity_engine::gameobject::GameObject, crate::app::componentsinchildrenenumerator_1::ComponentsInChildrenEnumerator_1_Func<T0>)` overload"]
64 #[method(name = "ForEach", args = 2)]
65 pub fn for_each(
66 go: crate::unity_engine::gameobject::GameObject,
67 func: crate::app::componentsinchildrenenumerator_1::ComponentsInChildrenEnumerator_1_Func<T0>,
68 ) -> ();
69
70 #[doc = "`.ctor()` overload"]
71 #[method(name = ".ctor", args = 0)]
72 pub fn ctor(self) -> ();
73}
74
75#[cfg(feature = "app-componentsinchildrenenumerator_1")]
76impl<T0: ::unity::ClassIdentity> ComponentsInChildrenEnumerator_1<T0> {
77 #[doc = "`.ctor()` — no args"]
78 pub fn new() -> Self {
79 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
80 panic!(
81 "{}
82::{}
83 failed to instantiate",
84 ::core::stringify!(ComponentsInChildrenEnumerator_1),
85 ::core::stringify!(new),
86 )
87 });
88 <Self as IComponentsInChildrenEnumerator_1Methods<T0>>::ctor(this);
89 this
90 }
91}
92
93#[cfg(feature = "app-componentsinchildrenenumerator_1")]
94#[doc(hidden)]
95pub mod prelude {
96 pub use super::{
97 ComponentsInChildrenEnumerator_1, ComponentsInChildrenEnumerator_1_Func, IComponentsInChildrenEnumerator_1,
98 IComponentsInChildrenEnumerator_1Methods, IComponentsInChildrenEnumerator_1_Func, IComponentsInChildrenEnumerator_1_FuncMethods,
99 };
100 #[cfg(feature = "system-delegate")]
101 pub use crate::system::delegate::IDelegateMethods;
102 #[cfg(feature = "system-multicastdelegate")]
103 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
104 #[cfg(feature = "system-object")]
105 pub use crate::system::object::IObjectMethods;
106 pub use crate::system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject};
107}