Skip to main content

engage/generated/unity_engine/
propertynameutils.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-propertynameutils-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/propertynameutils/PropertyNameUtils.md"))]
11    #[::unity::class(namespace = "UnityEngine", name = "PropertyNameUtils")]
12    #[parent(crate::system::object::Object)]
13    pub struct PropertyNameUtils {}
14}
15
16#[cfg(feature = "unity_engine-propertynameutils-types")]
17pub use __types::*;
18
19#[cfg(feature = "unity_engine-propertynameutils")]
20impl PropertyNameUtils {
21    #[doc = "`PropertyNameFromString(::unity::Il2CppString)` overload"]
22    pub fn property_name_from_string(name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::propertyname::PropertyName {
23        unsafe {
24            ::unity::il2cpp_call!((::unity::module_base()+0x32f8d00usize)as*mut u8,crate::unity_engine::propertyname::PropertyName;
25(::unity::Il2CppString)::core::convert::Into::into(name))
26        }
27    }
28
29    #[doc = "`PropertyNameFromString_Injected(::unity::Il2CppString, *mutcrate::unity_engine::propertyname::PropertyName)` overload"]
30    pub fn property_name_from_string_injected(
31        name: impl ::core::convert::Into<::unity::Il2CppString>,
32    ) -> crate::unity_engine::propertyname::PropertyName {
33        unsafe {
34            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::propertyname::PropertyName>::uninit();
35            ::unity::il2cpp_call!((::unity::module_base()+0x32f8ec0usize)as*mut u8,();
36(::unity::Il2CppString)::core::convert::Into::into(name),(*mut crate::unity_engine::propertyname::PropertyName)__out_0.as_mut_ptr());
37            __out_0.assume_init()
38        }
39    }
40}
41
42#[cfg(feature = "unity_engine-propertynameutils")]
43impl PropertyNameUtils {
44    pub fn property_name_from_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
45        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
46    }
47
48    pub fn property_name_from_string_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
49        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
50    }
51}
52
53#[cfg(feature = "unity_engine-propertynameutils")]
54#[doc(hidden)]
55pub mod prelude {
56    pub use super::{IPropertyNameUtils, PropertyNameUtils};
57    pub use crate::system::object::IObject;
58    #[cfg(feature = "system-object")]
59    pub use crate::system::object::IObjectMethods;
60}