Skip to main content

engage/generated/moon_sharp/interpreter/execution/
looptracker.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "moon_sharp-interpreter-execution-looptracker-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/moon_sharp/interpreter/execution/looptracker/LoopTracker.md"))]
11    #[::unity::class(namespace = "MoonSharp.Interpreter.Execution", name = "LoopTracker")]
12    #[parent(crate::system::object::Object)]
13    pub struct LoopTracker {
14        #[offset(16)]
15        #[rename(name = "Loops")]
16        pub loops: crate::moon_sharp::interpreter::data_structs::faststack_1::FastStack_1<crate::moon_sharp::interpreter::execution::iloop::ILoop>,
17    }
18}
19
20#[cfg(feature = "moon_sharp-interpreter-execution-looptracker-types")]
21pub use __types::*;
22
23#[cfg(feature = "moon_sharp-interpreter-execution-looptracker")]
24#[doc(hidden)]
25#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
26mod __LoopTracker_unity_raw {
27    use super::*;
28    #[doc(hidden)]
29    #[allow(non_snake_case)]
30    pub mod __lookup_ctor {
31        use super::*;
32        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
33            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
34            ::unity::lookup::method_info_on_class_with_signature(<LoopTracker as ::unity::ClassIdentity>::class(), ".ctor", 0, param_types, false)
35        });
36        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
37            match &*METHOD {
38                ::core::result::Result::Ok(mi) => *mi,
39                ::core::result::Result::Err(e) => {
40                    panic!(
41                        "method lookup failed: {}
42::{}
43: {}
44",
45                        <LoopTracker as ::unity::ClassIdentity>::NAME,
46                        ".ctor",
47                        e
48                    )
49                },
50            }
51        }
52    }
53}
54
55#[cfg(feature = "moon_sharp-interpreter-execution-looptracker")]
56pub trait ILoopTrackerMethods: ILoopTracker {
57    #[doc = "`.ctor()` overload"]
58    fn ctor(self) -> () {
59        unsafe {
60            let __receiver = <LoopTracker as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
61            ::unity::il2cpp_call!(__LoopTracker_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
62(LoopTracker)__receiver)
63        }
64    }
65}
66
67#[cfg(feature = "moon_sharp-interpreter-execution-looptracker")]
68impl<__T: ILoopTracker> ILoopTrackerMethods for __T {}
69
70#[cfg(feature = "moon_sharp-interpreter-execution-looptracker")]
71impl LoopTracker {
72    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
73        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
74    }
75}
76
77#[cfg(feature = "moon_sharp-interpreter-execution-looptracker")]
78impl LoopTracker {
79    #[doc = "`.ctor()` — no args"]
80    pub fn new() -> Self {
81        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
82            panic!(
83                "{}
84::{}
85 failed to instantiate",
86                ::core::stringify!(LoopTracker),
87                ::core::stringify!(new),
88            )
89        });
90        <Self as ILoopTrackerMethods>::ctor(this);
91        this
92    }
93}
94
95#[cfg(feature = "moon_sharp-interpreter-execution-looptracker")]
96#[doc(hidden)]
97pub mod prelude {
98    pub use super::{ILoopTracker, ILoopTrackerMethods, LoopTracker};
99    pub use crate::system::object::IObject;
100    #[cfg(feature = "system-object")]
101    pub use crate::system::object::IObjectMethods;
102}