Skip to main content

engage/generated/app/
structcalculatordata_1.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-structcalculatordata_1-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            structbase::{IStructBase, StructBase},
11            structdata_1::{IStructData_1, StructData_1},
12            structtemplate_1::{IStructTemplate_1, StructTemplate_1},
13        },
14        system::object::{IObject, Object},
15    };
16
17    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/structcalculatordata_1/StructCalculatorData_1.md"))]
18    #[::unity::class(namespace = "App", name = "StructCalculatorData`1")]
19    #[parent(crate::app::structdata_1::StructData_1<T0>)]
20    #[parent(crate::app::structtemplate_1::StructTemplate_1<T0>)]
21    #[parent(crate::app::structbase::StructBase)]
22    #[parent(crate::system::object::Object)]
23    pub struct StructCalculatorData_1<T0: ::unity::ClassIdentity> {
24        #[rename(name = "m_Commands")]
25        pub m_commands: crate::system::collections::generic::list_1::List_1<crate::app::calculatorcommand::CalculatorCommand>,
26    }
27}
28
29#[cfg(feature = "app-structcalculatordata_1-types")]
30pub use __types::*;
31
32#[cfg(feature = "app-structcalculatordata_1")]
33#[::unity::methods]
34impl<T0: ::unity::ClassIdentity> StructCalculatorData_1<T0> {
35    #[doc = "`get_Calculator()` overload"]
36    #[method(name = "get_Calculator", args = 0)]
37    pub fn get_calculator(self) -> crate::app::calculatormanager::CalculatorManager;
38
39    #[doc = "`AddCommand(::unity::Il2CppString, ::unity::Il2CppString)` overload"]
40    #[method(name = "AddCommand", args = 2)]
41    pub fn add_command(self, name: ::unity::Il2CppString, func: ::unity::Il2CppString) -> crate::app::calculatorcommand::CalculatorCommand;
42
43    #[doc = "`AddConditionGetterCommand(::unity::Il2CppString)` overload"]
44    #[method(name = "AddConditionGetterCommand", args = 1)]
45    pub fn add_condition_getter_command(self, name: ::unity::Il2CppString) -> crate::app::conditiongettercommand::ConditionGetterCommand;
46
47    #[doc = "`ReleaseCommand()` overload"]
48    #[method(name = "ReleaseCommand", args = 0)]
49    pub fn release_command(self) -> ();
50
51    #[doc = "`.ctor()` overload"]
52    #[method(name = ".ctor", args = 0)]
53    pub fn ctor(self) -> ();
54}
55
56#[cfg(feature = "app-structcalculatordata_1")]
57impl<T0: ::unity::ClassIdentity> StructCalculatorData_1<T0> {
58    #[doc = "`.ctor()` — no args"]
59    pub fn new() -> Self {
60        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
61            panic!(
62                "{}
63::{}
64 failed to instantiate",
65                ::core::stringify!(StructCalculatorData_1),
66                ::core::stringify!(new),
67            )
68        });
69        <Self as IStructCalculatorData_1Methods<T0>>::ctor(this);
70        this
71    }
72}
73
74#[cfg(feature = "app-structcalculatordata_1")]
75#[doc(hidden)]
76pub mod prelude {
77    pub use super::{IStructCalculatorData_1, IStructCalculatorData_1Methods, StructCalculatorData_1};
78    #[cfg(feature = "app-structbase")]
79    pub use crate::app::structbase::IStructBaseMethods;
80    #[cfg(feature = "app-structdata_1")]
81    pub use crate::app::structdata_1::IStructData_1Methods;
82    #[cfg(feature = "app-structtemplate_1")]
83    pub use crate::app::structtemplate_1::IStructTemplate_1Methods;
84    #[cfg(feature = "system-object")]
85    pub use crate::system::object::IObjectMethods;
86    pub use crate::{
87        app::{structbase::IStructBase, structdata_1::IStructData_1, structtemplate_1::IStructTemplate_1},
88        system::object::IObject,
89    };
90}