engage/generated/root/
softnormalstovertexcolor.rs1#[cfg(feature = "root-softnormalstovertexcolor-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::{
10 object::{IObject, Object},
11 r#enum::{Enum, IEnum},
12 valuetype::{IValueType, ValueType},
13 },
14 unity_engine::{
15 behaviour::{Behaviour, IBehaviour},
16 component::{Component, IComponent},
17 monobehaviour::{IMonoBehaviour, MonoBehaviour},
18 object_2::{IObject_2, Object_2},
19 },
20 };
21
22 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/softnormalstovertexcolor/SoftNormalsToVertexColor_Method.md"))]
23 #[repr(C)]
24 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
25 pub struct SoftNormalsToVertexColor_Method {
26 pub value: i32,
27 }
28 impl ::unity::ClassIdentity for SoftNormalsToVertexColor_Method {
29 const NAME: &'static str = "SoftNormalsToVertexColor.Method";
30 const NAMESPACE: &'static str = "";
31
32 fn class() -> ::unity::Class {
33 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
34 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
35 }
36 }
37 impl ::unity::IlType for SoftNormalsToVertexColor_Method {
38 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
39 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
40 }
41 }
42 impl SoftNormalsToVertexColor_Method {
43 pub fn simple() -> Self {
44 Self { value: 0 }
45 }
46
47 pub fn angular_deviation() -> Self {
48 Self { value: 1 }
49 }
50 }
51
52 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/softnormalstovertexcolor/SoftNormalsToVertexColor.md"))]
53 #[::unity::class(namespace = "", name = "SoftNormalsToVertexColor")]
54 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
55 pub struct SoftNormalsToVertexColor {
56 #[offset(24)]
57 #[rename(name = "method")]
58 pub method: crate::root::softnormalstovertexcolor::SoftNormalsToVertexColor_Method,
59 #[offset(28)]
60 #[rename(name = "generateOnAwake")]
61 pub generate_on_awake: bool,
62 #[offset(29)]
63 #[rename(name = "generateNow")]
64 pub generate_now: bool,
65 }
66}
67
68#[cfg(feature = "root-softnormalstovertexcolor-types")]
69pub use __types::*;
70
71#[cfg(feature = "root-softnormalstovertexcolor")]
72pub trait ISoftNormalsToVertexColorMethods: ISoftNormalsToVertexColor {
73 #[doc = "`OnDrawGizmos()` overload"]
74 fn on_draw_gizmos(self) -> () {
75 unsafe {
76 let __receiver =
77 <SoftNormalsToVertexColor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78 ::unity::il2cpp_call!((::unity::module_base()+0x1fdd440usize)as*mut u8,();
79(SoftNormalsToVertexColor)__receiver)
80 }
81 }
82 #[doc = "`Awake()` overload"]
83 fn awake(self) -> () {
84 unsafe {
85 let __receiver =
86 <SoftNormalsToVertexColor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
87 ::unity::il2cpp_call!((::unity::module_base()+0x1fdd560usize)as*mut u8,();
88(SoftNormalsToVertexColor)__receiver)
89 }
90 }
91 #[doc = "`TryGenerate()` overload"]
92 fn try_generate(self) -> () {
93 unsafe {
94 let __receiver =
95 <SoftNormalsToVertexColor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
96 ::unity::il2cpp_call!((::unity::module_base()+0x1fdd460usize)as*mut u8,();
97(SoftNormalsToVertexColor)__receiver)
98 }
99 }
100 #[doc = "`Generate(crate::unity_engine::mesh::Mesh)` overload"]
101 fn generate(self, m: impl ::core::convert::Into<crate::unity_engine::mesh::Mesh>) -> () {
102 unsafe {
103 let __receiver =
104 <SoftNormalsToVertexColor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
105 ::unity::il2cpp_call!((::unity::module_base()+0x1fdd570usize)as*mut u8,();
106(SoftNormalsToVertexColor)__receiver,(crate::unity_engine::mesh::Mesh)::core::convert::Into::into(m))
107 }
108 }
109 #[doc = "`.ctor()` overload"]
110 fn ctor(self) -> () {
111 unsafe {
112 let __receiver =
113 <SoftNormalsToVertexColor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
114 ::unity::il2cpp_call!((::unity::module_base()+0x1fdde30usize)as*mut u8,();
115(SoftNormalsToVertexColor)__receiver)
116 }
117 }
118}
119
120#[cfg(feature = "root-softnormalstovertexcolor")]
121impl<__T: ISoftNormalsToVertexColor> ISoftNormalsToVertexColorMethods for __T {}
122
123#[cfg(feature = "root-softnormalstovertexcolor")]
124impl SoftNormalsToVertexColor {
125 pub fn on_draw_gizmos_method_info() -> &'static ::unity::il2cpp::MethodInfo {
126 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
127 }
128
129 pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
130 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
131 }
132
133 pub fn try_generate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
134 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
135 }
136
137 pub fn generate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
138 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
139 }
140
141 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
142 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
143 }
144}
145
146#[cfg(feature = "root-softnormalstovertexcolor")]
147impl SoftNormalsToVertexColor {
148 #[doc = "`.ctor()` — no args"]
149 pub fn new() -> Self {
150 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
151 panic!(
152 "{}
153::{}
154 failed to instantiate",
155 ::core::stringify!(SoftNormalsToVertexColor),
156 ::core::stringify!(new),
157 )
158 });
159 <Self as ISoftNormalsToVertexColorMethods>::ctor(this);
160 this
161 }
162}
163
164#[cfg(feature = "root-softnormalstovertexcolor")]
165#[doc(hidden)]
166pub mod prelude {
167 pub use super::{ISoftNormalsToVertexColor, ISoftNormalsToVertexColorMethods, SoftNormalsToVertexColor, SoftNormalsToVertexColor_Method};
168 #[cfg(feature = "system-object")]
169 pub use crate::system::object::IObjectMethods;
170 #[cfg(feature = "system-enum")]
171 pub use crate::system::r#enum::IEnumMethods;
172 #[cfg(feature = "system-valuetype")]
173 pub use crate::system::valuetype::IValueTypeMethods;
174 #[cfg(feature = "unity_engine-behaviour")]
175 pub use crate::unity_engine::behaviour::IBehaviourMethods;
176 #[cfg(feature = "unity_engine-component")]
177 pub use crate::unity_engine::component::IComponentMethods;
178 #[cfg(feature = "unity_engine-monobehaviour")]
179 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
180 #[cfg(feature = "unity_engine-object_2")]
181 pub use crate::unity_engine::object_2::IObject_2Methods;
182 pub use crate::{
183 system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
184 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
185 };
186}