Skip to main content

engage/generated/root/
structscriptableobject_1.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-structscriptableobject_1-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::object::{IObject, Object},
10        unity_engine::{
11            object_2::{IObject_2, Object_2},
12            scriptableobject::{IScriptableObject, ScriptableObject},
13        },
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/structscriptableobject_1/StructScriptableObject_1.md"))]
17    #[::unity::class(namespace = "", name = "StructScriptableObject`1")]
18    #[parent(crate::unity_engine::scriptableobject::ScriptableObject)]
19    #[parent(crate::unity_engine::object_2::Object_2)]
20    #[parent(crate::system::object::Object)]
21    pub struct StructScriptableObject_1<T0: ::unity::ClassIdentity> {
22        #[rename(name = "m_List")]
23        pub m_list: crate::system::collections::generic::list_1::List_1<T0>,
24    }
25}
26
27#[cfg(feature = "root-structscriptableobject_1-types")]
28pub use __types::*;
29
30#[cfg(feature = "root-structscriptableobject_1")]
31#[::unity::methods]
32impl<T0: ::unity::ClassIdentity> StructScriptableObject_1<T0> {
33    #[doc = "`.ctor()` overload"]
34    #[method(name = ".ctor", args = 0)]
35    pub fn ctor(self) -> ();
36}
37
38#[cfg(feature = "root-structscriptableobject_1")]
39impl<T0: ::unity::ClassIdentity> StructScriptableObject_1<T0> {
40    #[doc = "`.ctor()` — no args"]
41    pub fn new() -> Self {
42        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
43            panic!(
44                "{}
45::{}
46 failed to instantiate",
47                ::core::stringify!(StructScriptableObject_1),
48                ::core::stringify!(new),
49            )
50        });
51        <Self as IStructScriptableObject_1Methods<T0>>::ctor(this);
52        this
53    }
54}
55
56#[cfg(feature = "root-structscriptableobject_1")]
57#[doc(hidden)]
58pub mod prelude {
59    pub use super::{IStructScriptableObject_1, IStructScriptableObject_1Methods, StructScriptableObject_1};
60    #[cfg(feature = "system-object")]
61    pub use crate::system::object::IObjectMethods;
62    #[cfg(feature = "unity_engine-object_2")]
63    pub use crate::unity_engine::object_2::IObject_2Methods;
64    #[cfg(feature = "unity_engine-scriptableobject")]
65    pub use crate::unity_engine::scriptableobject::IScriptableObjectMethods;
66    pub use crate::{
67        system::object::IObject,
68        unity_engine::{object_2::IObject_2, scriptableobject::IScriptableObject},
69    };
70}