engage/generated/app/
debugtextwriter.rs1#[cfg(feature = "app-debugtextwriter-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/app/debugtextwriter/DebugTextWriter.md"))]
11 #[::unity::class(namespace = "App", name = "DebugTextWriter")]
12 #[parent(crate::system::object::Object)]
13 pub struct DebugTextWriter {}
14}
15
16#[cfg(feature = "app-debugtextwriter-types")]
17pub use __types::*;
18
19#[cfg(feature = "app-debugtextwriter")]
20pub trait IDebugTextWriterMethods: IDebugTextWriter {
21 #[doc = "`.ctor()` overload"]
22 fn ctor(self) -> () {
23 unsafe {
24 let __receiver = <DebugTextWriter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
25 ::unity::il2cpp_call!((::unity::module_base()+0x2a10420usize)as*mut u8,();
26(DebugTextWriter)__receiver)
27 }
28 }
29 #[doc = "`.ctor(::unity::Il2CppString)` overload"]
30 fn ctor_2(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
31 unsafe {
32 let __receiver = <DebugTextWriter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
33 ::unity::il2cpp_call!((::unity::module_base()+0x2a10430usize)as*mut u8,();
34(DebugTextWriter)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
35 }
36 }
37 #[doc = "`Dispose()` overload"]
38 fn dispose(self) -> () {
39 unsafe {
40 let __receiver = <DebugTextWriter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
41 {
42 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
43 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
44 panic!(
45 "unity: virtual slot {}
46 out of range (vtable len {}
47) on the runtime class behind {}
48 (method `{}
49`)",
50 4usize,
51 __vt.len(),
52 <DebugTextWriter as ::unity::ClassIdentity>::NAME,
53 "Dispose",
54 )
55 });
56 let __inner: extern "C" fn(DebugTextWriter, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
57 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
58 __inner(__receiver, __mi)
59 }
60 }
61 }
62 #[doc = "`Write(::unity::Il2CppString)` overload"]
63 fn write(self, text: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
64 unsafe {
65 let __receiver = <DebugTextWriter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66 ::unity::il2cpp_call!((::unity::module_base()+0x2a10450usize)as*mut u8,();
67(DebugTextWriter)__receiver,(::unity::Il2CppString)::core::convert::Into::into(text))
68 }
69 }
70 #[doc = "`WriteLine(::unity::Il2CppString)` overload"]
71 fn write_line(self, text: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
72 unsafe {
73 let __receiver = <DebugTextWriter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74 ::unity::il2cpp_call!((::unity::module_base()+0x2a10460usize)as*mut u8,();
75(DebugTextWriter)__receiver,(::unity::Il2CppString)::core::convert::Into::into(text))
76 }
77 }
78 #[doc = "`WriteFormat(::unity::Il2CppString, ::unity::Array<crate::system::object::Object>)` overload"]
79 fn write_format(
80 self,
81 text: impl ::core::convert::Into<::unity::Il2CppString>,
82 objects: impl ::core::convert::Into<::unity::Array<crate::system::object::Object>>,
83 ) -> () {
84 unsafe {
85 let __receiver = <DebugTextWriter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
86 ::unity::il2cpp_call!((::unity::module_base()+0x2a10470usize)as*mut u8,();
87(DebugTextWriter)__receiver,(::unity::Il2CppString)::core::convert::Into::into(text),(::unity::Array<crate::system::object::Object>)::core::convert::Into::into(objects))
88 }
89 }
90 #[doc = "`Save(::unity::Il2CppString)` overload"]
91 fn save(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
92 unsafe {
93 let __receiver = <DebugTextWriter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
94 ::unity::il2cpp_call!((::unity::module_base()+0x2a10480usize)as*mut u8,();
95(DebugTextWriter)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
96 }
97 }
98}
99
100#[cfg(feature = "app-debugtextwriter")]
101impl<__T: IDebugTextWriter> IDebugTextWriterMethods for __T {}
102
103#[cfg(feature = "app-debugtextwriter")]
104impl DebugTextWriter {
105 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
106 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
107 }
108
109 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
110 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
111 }
112
113 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
114 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
115 }
116
117 pub fn write_method_info() -> &'static ::unity::il2cpp::MethodInfo {
118 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
119 }
120
121 pub fn write_line_method_info() -> &'static ::unity::il2cpp::MethodInfo {
122 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
123 }
124
125 pub fn write_format_method_info() -> &'static ::unity::il2cpp::MethodInfo {
126 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
127 }
128
129 pub fn save_method_info() -> &'static ::unity::il2cpp::MethodInfo {
130 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
131 }
132}
133
134#[cfg(feature = "app-debugtextwriter")]
135impl DebugTextWriter {
136 #[doc = "Direct (non-virtual) call to `DebugTextWriter`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
137 pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
138 let __mi = Self::dispose_method_info();
139 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
140 __inner(this.into(), ::core::option::Option::None)
141 }
142}
143
144#[cfg(feature = "app-debugtextwriter")]
145impl DebugTextWriter {
146 #[doc = "`.ctor()` — no args"]
147 pub fn new() -> Self {
148 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
149 panic!(
150 "{}
151::{}
152 failed to instantiate",
153 ::core::stringify!(DebugTextWriter),
154 ::core::stringify!(new),
155 )
156 });
157 <Self as IDebugTextWriterMethods>::ctor(this);
158 this
159 }
160
161 #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
162 pub fn new_2(name: ::unity::Il2CppString) -> Self {
163 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
164 panic!(
165 "{}
166::{}
167 failed to instantiate",
168 ::core::stringify!(DebugTextWriter),
169 ::core::stringify!(new_2),
170 )
171 });
172 <Self as IDebugTextWriterMethods>::ctor_2(this, name);
173 this
174 }
175}
176
177#[cfg(feature = "app-debugtextwriter")]
178#[doc(hidden)]
179pub mod prelude {
180 pub use super::{DebugTextWriter, IDebugTextWriter, IDebugTextWriterMethods};
181 pub use crate::system::object::IObject;
182 #[cfg(feature = "system-object")]
183 pub use crate::system::object::IObjectMethods;
184}