Skip to main content

engage/generated/unity_engine/rendering/
reloadattribute.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-reloadattribute-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        r#enum::{Enum, IEnum},
11        valuetype::{IValueType, ValueType},
12    };
13
14    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/reloadattribute/ReloadAttribute.md"))]
15    #[::unity::class(namespace = "UnityEngine.Rendering", name = "ReloadAttribute")]
16    pub struct ReloadAttribute {}
17
18    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/reloadattribute/ReloadAttribute_Package.md"))]
19    #[repr(C)]
20    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
21    pub struct ReloadAttribute_Package {
22        pub value: i32,
23    }
24    impl ::unity::ClassIdentity for ReloadAttribute_Package {
25        const NAME: &'static str = "ReloadAttribute.Package";
26        const NAMESPACE: &'static str = "UnityEngine.Rendering";
27
28        fn class() -> ::unity::Class {
29            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
30            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
31        }
32    }
33    impl ::unity::IlType for ReloadAttribute_Package {
34        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
35            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
36        }
37    }
38    impl ReloadAttribute_Package {
39        pub fn builtin() -> Self {
40            Self { value: 0 }
41        }
42
43        pub fn root() -> Self {
44            Self { value: 1 }
45        }
46    }
47}
48
49#[cfg(feature = "unity_engine-rendering-reloadattribute-types")]
50pub use __types::*;
51
52#[cfg(feature = "unity_engine-rendering-reloadattribute")]
53pub trait IReloadAttributeMethods: IReloadAttribute {
54    #[doc = "`.ctor(::unity::Array<::unity::Il2CppString>, crate::unity_engine::rendering::reloadattribute::ReloadAttribute_Package)` overload"]
55    fn ctor(
56        self,
57        paths: impl ::core::convert::Into<::unity::Array<::unity::Il2CppString>>,
58        package: impl ::core::convert::Into<crate::unity_engine::rendering::reloadattribute::ReloadAttribute_Package>,
59    ) -> () {
60        unsafe {
61            let __receiver = <ReloadAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
62            ::unity::il2cpp_call!((::unity::module_base()+0x30b0e60usize)as*mut u8,();
63(ReloadAttribute)__receiver,(::unity::Array< ::unity::Il2CppString>)::core::convert::Into::into(paths),(crate::unity_engine::rendering::reloadattribute::ReloadAttribute_Package)::core::convert::Into::into(package))
64        }
65    }
66    #[doc = "`.ctor(::unity::Il2CppString, crate::unity_engine::rendering::reloadattribute::ReloadAttribute_Package)` overload"]
67    fn ctor_2(
68        self,
69        path: impl ::core::convert::Into<::unity::Il2CppString>,
70        package: impl ::core::convert::Into<crate::unity_engine::rendering::reloadattribute::ReloadAttribute_Package>,
71    ) -> () {
72        unsafe {
73            let __receiver = <ReloadAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74            ::unity::il2cpp_call!((::unity::module_base()+0x30b0e70usize)as*mut u8,();
75(ReloadAttribute)__receiver,(::unity::Il2CppString)::core::convert::Into::into(path),(crate::unity_engine::rendering::reloadattribute::ReloadAttribute_Package)::core::convert::Into::into(package))
76        }
77    }
78    #[doc = "`.ctor(::unity::Il2CppString, i32, i32, crate::unity_engine::rendering::reloadattribute::ReloadAttribute_Package)` overload"]
79    fn ctor_3(
80        self,
81        path_format: impl ::core::convert::Into<::unity::Il2CppString>,
82        range_min: impl ::core::convert::Into<i32>,
83        range_max: impl ::core::convert::Into<i32>,
84        package: impl ::core::convert::Into<crate::unity_engine::rendering::reloadattribute::ReloadAttribute_Package>,
85    ) -> () {
86        unsafe {
87            let __receiver = <ReloadAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88            ::unity::il2cpp_call!((::unity::module_base()+0x30b0f20usize)as*mut u8,();
89(ReloadAttribute)__receiver,(::unity::Il2CppString)::core::convert::Into::into(path_format),(i32)::core::convert::Into::into(range_min),(i32)::core::convert::Into::into(range_max),(crate::unity_engine::rendering::reloadattribute::ReloadAttribute_Package)::core::convert::Into::into(package))
90        }
91    }
92}
93
94#[cfg(feature = "unity_engine-rendering-reloadattribute")]
95impl<__T: IReloadAttribute> IReloadAttributeMethods for __T {}
96
97#[cfg(feature = "unity_engine-rendering-reloadattribute")]
98impl ReloadAttribute {
99    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
100        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
101    }
102
103    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
104        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
105    }
106
107    pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
108        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
109    }
110}
111
112#[cfg(feature = "unity_engine-rendering-reloadattribute")]
113impl ReloadAttribute {
114    #[doc = "`.ctor(::unity::Array<::unity::Il2CppString>, crate::unity_engine::rendering::reloadattribute::ReloadAttribute_Package)` — overload selector"]
115    pub fn new(
116        paths: ::unity::Array<::unity::Il2CppString>,
117        package: crate::unity_engine::rendering::reloadattribute::ReloadAttribute_Package,
118    ) -> Self {
119        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
120            panic!(
121                "{}
122::{}
123 failed to instantiate",
124                ::core::stringify!(ReloadAttribute),
125                ::core::stringify!(new),
126            )
127        });
128        <Self as IReloadAttributeMethods>::ctor(this, paths, package);
129        this
130    }
131
132    #[doc = "`.ctor(::unity::Il2CppString, crate::unity_engine::rendering::reloadattribute::ReloadAttribute_Package)` — overload selector"]
133    pub fn new_2(path: ::unity::Il2CppString, package: crate::unity_engine::rendering::reloadattribute::ReloadAttribute_Package) -> Self {
134        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
135            panic!(
136                "{}
137::{}
138 failed to instantiate",
139                ::core::stringify!(ReloadAttribute),
140                ::core::stringify!(new_2),
141            )
142        });
143        <Self as IReloadAttributeMethods>::ctor_2(this, path, package);
144        this
145    }
146
147    #[doc = "`.ctor(::unity::Il2CppString, i32, i32, crate::unity_engine::rendering::reloadattribute::ReloadAttribute_Package)` — overload selector"]
148    pub fn new_3(
149        path_format: ::unity::Il2CppString,
150        range_min: i32,
151        range_max: i32,
152        package: crate::unity_engine::rendering::reloadattribute::ReloadAttribute_Package,
153    ) -> Self {
154        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
155            panic!(
156                "{}
157::{}
158 failed to instantiate",
159                ::core::stringify!(ReloadAttribute),
160                ::core::stringify!(new_3),
161            )
162        });
163        <Self as IReloadAttributeMethods>::ctor_3(this, path_format, range_min, range_max, package);
164        this
165    }
166}
167
168#[cfg(feature = "unity_engine-rendering-reloadattribute")]
169#[doc(hidden)]
170pub mod prelude {
171    pub use super::{IReloadAttribute, IReloadAttributeMethods, ReloadAttribute, ReloadAttribute_Package};
172    #[cfg(feature = "system-object")]
173    pub use crate::system::object::IObjectMethods;
174    #[cfg(feature = "system-enum")]
175    pub use crate::system::r#enum::IEnumMethods;
176    #[cfg(feature = "system-valuetype")]
177    pub use crate::system::valuetype::IValueTypeMethods;
178    pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
179}