| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: decentraland/sdk/components/material.proto |
| | 4 | | // </auto-generated> |
| | 5 | | #pragma warning disable 1591, 0612, 3021 |
| | 6 | | #region Designer generated code |
| | 7 | |
|
| | 8 | | using pb = global::Google.Protobuf; |
| | 9 | | using pbc = global::Google.Protobuf.Collections; |
| | 10 | | using pbr = global::Google.Protobuf.Reflection; |
| | 11 | | using scg = global::System.Collections.Generic; |
| | 12 | | namespace DCL.ECSComponents { |
| | 13 | |
|
| | 14 | | /// <summary>Holder for reflection information generated from decentraland/sdk/components/material.proto</summary> |
| | 15 | | public static partial class MaterialReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for decentraland/sdk/components/material.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static MaterialReflection() { |
| | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "CipkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvbWF0ZXJpYWwucHJvdG8S", |
| | 28 | | "G2RlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cxogZGVjZW50cmFsYW5kL2Nv", |
| | 29 | | "bW1vbi9jb2xvcnMucHJvdG8aIWRlY2VudHJhbGFuZC9jb21tb24vdGV4dHVy", |
| | 30 | | "ZS5wcm90byKGCwoKUEJNYXRlcmlhbBJGCgV1bmxpdBgBIAEoCzI1LmRlY2Vu", |
| | 31 | | "dHJhbGFuZC5zZGsuY29tcG9uZW50cy5QQk1hdGVyaWFsLlVubGl0TWF0ZXJp", |
| | 32 | | "YWxIABJCCgNwYnIYAiABKAsyMy5kZWNlbnRyYWxhbmQuc2RrLmNvbXBvbmVu", |
| | 33 | | "dHMuUEJNYXRlcmlhbC5QYnJNYXRlcmlhbEgAGvMBCg1VbmxpdE1hdGVyaWFs", |
| | 34 | | "EjcKB3RleHR1cmUYASABKAsyIS5kZWNlbnRyYWxhbmQuY29tbW9uLlRleHR1", |
| | 35 | | "cmVVbmlvbkgAiAEBEhcKCmFscGhhX3Rlc3QYAiABKAJIAYgBARIZCgxjYXN0", |
| | 36 | | "X3NoYWRvd3MYAyABKAhIAogBARI3Cg1kaWZmdXNlX2NvbG9yGAQgASgLMhsu", |
| | 37 | | "ZGVjZW50cmFsYW5kLmNvbW1vbi5Db2xvcjRIA4gBAUIKCghfdGV4dHVyZUIN", |
| | 38 | | "CgtfYWxwaGFfdGVzdEIPCg1fY2FzdF9zaGFkb3dzQhAKDl9kaWZmdXNlX2Nv", |
| | 39 | | "bG9yGukHCgtQYnJNYXRlcmlhbBI3Cgd0ZXh0dXJlGAEgASgLMiEuZGVjZW50", |
| | 40 | | "cmFsYW5kLmNvbW1vbi5UZXh0dXJlVW5pb25IAIgBARIXCgphbHBoYV90ZXN0", |
| | 41 | | "GAIgASgCSAGIAQESGQoMY2FzdF9zaGFkb3dzGAMgASgISAKIAQESPQoNYWxw", |
| | 42 | | "aGFfdGV4dHVyZRgEIAEoCzIhLmRlY2VudHJhbGFuZC5jb21tb24uVGV4dHVy", |
| | 43 | | "ZVVuaW9uSAOIAQESQAoQZW1pc3NpdmVfdGV4dHVyZRgFIAEoCzIhLmRlY2Vu", |
| | 44 | | "dHJhbGFuZC5jb21tb24uVGV4dHVyZVVuaW9uSASIAQESPAoMYnVtcF90ZXh0", |
| | 45 | | "dXJlGAYgASgLMiEuZGVjZW50cmFsYW5kLmNvbW1vbi5UZXh0dXJlVW5pb25I", |
| | 46 | | "BYgBARI2CgxhbGJlZG9fY29sb3IYByABKAsyGy5kZWNlbnRyYWxhbmQuY29t", |
| | 47 | | "bW9uLkNvbG9yNEgGiAEBEjgKDmVtaXNzaXZlX2NvbG9yGAggASgLMhsuZGVj", |
| | 48 | | "ZW50cmFsYW5kLmNvbW1vbi5Db2xvcjNIB4gBARI8ChJyZWZsZWN0aXZpdHlf", |
| | 49 | | "Y29sb3IYCSABKAsyGy5kZWNlbnRyYWxhbmQuY29tbW9uLkNvbG9yM0gIiAEB", |
| | 50 | | "ElUKEXRyYW5zcGFyZW5jeV9tb2RlGAogASgOMjUuZGVjZW50cmFsYW5kLnNk", |
| | 51 | | "ay5jb21wb25lbnRzLk1hdGVyaWFsVHJhbnNwYXJlbmN5TW9kZUgJiAEBEhUK", |
| | 52 | | "CG1ldGFsbGljGAsgASgCSAqIAQESFgoJcm91Z2huZXNzGAwgASgCSAuIAQES", |
| | 53 | | "HwoSc3BlY3VsYXJfaW50ZW5zaXR5GA4gASgCSAyIAQESHwoSZW1pc3NpdmVf", |
| | 54 | | "aW50ZW5zaXR5GA8gASgCSA2IAQESHQoQZGlyZWN0X2ludGVuc2l0eRgQIAEo", |
| | 55 | | "AkgOiAEBQgoKCF90ZXh0dXJlQg0KC19hbHBoYV90ZXN0Qg8KDV9jYXN0X3No", |
| | 56 | | "YWRvd3NCEAoOX2FscGhhX3RleHR1cmVCEwoRX2VtaXNzaXZlX3RleHR1cmVC", |
| | 57 | | "DwoNX2J1bXBfdGV4dHVyZUIPCg1fYWxiZWRvX2NvbG9yQhEKD19lbWlzc2l2", |
| | 58 | | "ZV9jb2xvckIVChNfcmVmbGVjdGl2aXR5X2NvbG9yQhQKEl90cmFuc3BhcmVu", |
| | 59 | | "Y3lfbW9kZUILCglfbWV0YWxsaWNCDAoKX3JvdWdobmVzc0IVChNfc3BlY3Vs", |
| | 60 | | "YXJfaW50ZW5zaXR5QhUKE19lbWlzc2l2ZV9pbnRlbnNpdHlCEwoRX2RpcmVj", |
| | 61 | | "dF9pbnRlbnNpdHlKBAgNEA5CCgoIbWF0ZXJpYWwqhQEKGE1hdGVyaWFsVHJh", |
| | 62 | | "bnNwYXJlbmN5TW9kZRIOCgpNVE1fT1BBUVVFEAASEgoOTVRNX0FMUEhBX1RF", |
| | 63 | | "U1QQARITCg9NVE1fQUxQSEFfQkxFTkQQAhIiCh5NVE1fQUxQSEFfVEVTVF9B", |
| | 64 | | "TkRfQUxQSEFfQkxFTkQQAxIMCghNVE1fQVVUTxAEQhSqAhFEQ0wuRUNTQ29t", |
| | 65 | | "cG9uZW50c2IGcHJvdG8z")); |
| | 66 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 67 | | new pbr::FileDescriptor[] { global::Decentraland.Common.ColorsReflection.Descriptor, global::Decentraland.Comm |
| | 68 | | new pbr::GeneratedClrTypeInfo(new[] {typeof(global::DCL.ECSComponents.MaterialTransparencyMode), }, null, new |
| | 69 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBMaterial), global::DCL.ECSComponents.PBMate |
| | 70 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBMaterial.Types.PbrMaterial), global::DCL.EC |
| | 71 | | })); |
| | 72 | | } |
| | 73 | | #endregion |
| | 74 | |
|
| | 75 | | } |
| | 76 | | #region Enums |
| | 77 | | public enum MaterialTransparencyMode { |
| | 78 | | [pbr::OriginalName("MTM_OPAQUE")] MtmOpaque = 0, |
| | 79 | | [pbr::OriginalName("MTM_ALPHA_TEST")] MtmAlphaTest = 1, |
| | 80 | | [pbr::OriginalName("MTM_ALPHA_BLEND")] MtmAlphaBlend = 2, |
| | 81 | | [pbr::OriginalName("MTM_ALPHA_TEST_AND_ALPHA_BLEND")] MtmAlphaTestAndAlphaBlend = 3, |
| | 82 | | [pbr::OriginalName("MTM_AUTO")] MtmAuto = 4, |
| | 83 | | } |
| | 84 | |
|
| | 85 | | #endregion |
| | 86 | |
|
| | 87 | | #region Messages |
| | 88 | | public sealed partial class PBMaterial : pb::IMessage<PBMaterial> |
| | 89 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 90 | | , pb::IBufferMessage |
| | 91 | | #endif |
| | 92 | | { |
| 1 | 93 | | private static readonly pb::MessageParser<PBMaterial> _parser = new pb::MessageParser<PBMaterial>(() => new PBMateri |
| | 94 | | private pb::UnknownFieldSet _unknownFields; |
| | 95 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 96 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 97 | | public static pb::MessageParser<PBMaterial> Parser { get { return _parser; } } |
| | 98 | |
|
| | 99 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 100 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 101 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 102 | | get { return global::DCL.ECSComponents.MaterialReflection.Descriptor.MessageTypes[0]; } |
| | 103 | | } |
| | 104 | |
|
| | 105 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 106 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 107 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 108 | | get { return Descriptor; } |
| | 109 | | } |
| | 110 | |
|
| | 111 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 112 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 22 | 113 | | public PBMaterial() { |
| | 114 | | OnConstruction(); |
| 22 | 115 | | } |
| | 116 | |
|
| | 117 | | partial void OnConstruction(); |
| | 118 | |
|
| | 119 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 120 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 5 | 121 | | public PBMaterial(PBMaterial other) : this() { |
| 5 | 122 | | switch (other.MaterialCase) { |
| | 123 | | case MaterialOneofCase.Unlit: |
| 0 | 124 | | Unlit = other.Unlit.Clone(); |
| 0 | 125 | | break; |
| | 126 | | case MaterialOneofCase.Pbr: |
| 5 | 127 | | Pbr = other.Pbr.Clone(); |
| | 128 | | break; |
| | 129 | | } |
| | 130 | |
|
| 5 | 131 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 5 | 132 | | } |
| | 133 | |
|
| | 134 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 135 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 136 | | public PBMaterial Clone() { |
| 0 | 137 | | return new PBMaterial(this); |
| | 138 | | } |
| | 139 | |
|
| | 140 | | /// <summary>Field number for the "unlit" field.</summary> |
| | 141 | | public const int UnlitFieldNumber = 1; |
| | 142 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 143 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 144 | | public global::DCL.ECSComponents.PBMaterial.Types.UnlitMaterial Unlit { |
| 47 | 145 | | get { return materialCase_ == MaterialOneofCase.Unlit ? (global::DCL.ECSComponents.PBMaterial.Types.UnlitMaterial) |
| | 146 | | set { |
| 1 | 147 | | material_ = value; |
| 1 | 148 | | materialCase_ = value == null ? MaterialOneofCase.None : MaterialOneofCase.Unlit; |
| 1 | 149 | | } |
| | 150 | | } |
| | 151 | |
|
| | 152 | | /// <summary>Field number for the "pbr" field.</summary> |
| | 153 | | public const int PbrFieldNumber = 2; |
| | 154 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 155 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 156 | | public global::DCL.ECSComponents.PBMaterial.Types.PbrMaterial Pbr { |
| 620 | 157 | | get { return materialCase_ == MaterialOneofCase.Pbr ? (global::DCL.ECSComponents.PBMaterial.Types.PbrMaterial) mat |
| | 158 | | set { |
| 23 | 159 | | material_ = value; |
| 23 | 160 | | materialCase_ = value == null ? MaterialOneofCase.None : MaterialOneofCase.Pbr; |
| 23 | 161 | | } |
| | 162 | | } |
| | 163 | |
|
| | 164 | | private object material_; |
| | 165 | | /// <summary>Enum of possible cases for the "material" oneof.</summary> |
| | 166 | | public enum MaterialOneofCase { |
| | 167 | | None = 0, |
| | 168 | | Unlit = 1, |
| | 169 | | Pbr = 2, |
| | 170 | | } |
| | 171 | | private MaterialOneofCase materialCase_ = MaterialOneofCase.None; |
| | 172 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 173 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 174 | | public MaterialOneofCase MaterialCase { |
| 9 | 175 | | get { return materialCase_; } |
| | 176 | | } |
| | 177 | |
|
| | 178 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 179 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 180 | | public void ClearMaterial() { |
| 0 | 181 | | materialCase_ = MaterialOneofCase.None; |
| 0 | 182 | | material_ = null; |
| 0 | 183 | | } |
| | 184 | |
|
| | 185 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 186 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 187 | | public override bool Equals(object other) { |
| 0 | 188 | | return Equals(other as PBMaterial); |
| | 189 | | } |
| | 190 | |
|
| | 191 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 192 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 193 | | public bool Equals(PBMaterial other) { |
| 11 | 194 | | if (ReferenceEquals(other, null)) { |
| 0 | 195 | | return false; |
| | 196 | | } |
| 11 | 197 | | if (ReferenceEquals(other, this)) { |
| 0 | 198 | | return true; |
| | 199 | | } |
| 11 | 200 | | if (!object.Equals(Unlit, other.Unlit)) return false; |
| 20 | 201 | | if (!object.Equals(Pbr, other.Pbr)) return false; |
| 2 | 202 | | if (MaterialCase != other.MaterialCase) return false; |
| 2 | 203 | | return Equals(_unknownFields, other._unknownFields); |
| | 204 | | } |
| | 205 | |
|
| | 206 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 207 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 208 | | public override int GetHashCode() { |
| 0 | 209 | | int hash = 1; |
| 0 | 210 | | if (materialCase_ == MaterialOneofCase.Unlit) hash ^= Unlit.GetHashCode(); |
| 0 | 211 | | if (materialCase_ == MaterialOneofCase.Pbr) hash ^= Pbr.GetHashCode(); |
| 0 | 212 | | hash ^= (int) materialCase_; |
| 0 | 213 | | if (_unknownFields != null) { |
| 0 | 214 | | hash ^= _unknownFields.GetHashCode(); |
| | 215 | | } |
| 0 | 216 | | return hash; |
| | 217 | | } |
| | 218 | |
|
| | 219 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 220 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 221 | | public override string ToString() { |
| 0 | 222 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 223 | | } |
| | 224 | |
|
| | 225 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 226 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 227 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 228 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 229 | | output.WriteRawMessage(this); |
| | 230 | | #else |
| 0 | 231 | | if (materialCase_ == MaterialOneofCase.Unlit) { |
| 0 | 232 | | output.WriteRawTag(10); |
| 0 | 233 | | output.WriteMessage(Unlit); |
| | 234 | | } |
| 0 | 235 | | if (materialCase_ == MaterialOneofCase.Pbr) { |
| 0 | 236 | | output.WriteRawTag(18); |
| 0 | 237 | | output.WriteMessage(Pbr); |
| | 238 | | } |
| 0 | 239 | | if (_unknownFields != null) { |
| 0 | 240 | | _unknownFields.WriteTo(output); |
| | 241 | | } |
| | 242 | | #endif |
| 0 | 243 | | } |
| | 244 | |
|
| | 245 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 246 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 247 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 248 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 249 | | if (materialCase_ == MaterialOneofCase.Unlit) { |
| | 250 | | output.WriteRawTag(10); |
| | 251 | | output.WriteMessage(Unlit); |
| | 252 | | } |
| | 253 | | if (materialCase_ == MaterialOneofCase.Pbr) { |
| | 254 | | output.WriteRawTag(18); |
| | 255 | | output.WriteMessage(Pbr); |
| | 256 | | } |
| | 257 | | if (_unknownFields != null) { |
| | 258 | | _unknownFields.WriteTo(ref output); |
| | 259 | | } |
| | 260 | | } |
| | 261 | | #endif |
| | 262 | |
|
| | 263 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 264 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 265 | | public int CalculateSize() { |
| 0 | 266 | | int size = 0; |
| 0 | 267 | | if (materialCase_ == MaterialOneofCase.Unlit) { |
| 0 | 268 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Unlit); |
| | 269 | | } |
| 0 | 270 | | if (materialCase_ == MaterialOneofCase.Pbr) { |
| 0 | 271 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Pbr); |
| | 272 | | } |
| 0 | 273 | | if (_unknownFields != null) { |
| 0 | 274 | | size += _unknownFields.CalculateSize(); |
| | 275 | | } |
| 0 | 276 | | return size; |
| | 277 | | } |
| | 278 | |
|
| | 279 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 280 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 281 | | public void MergeFrom(PBMaterial other) { |
| 0 | 282 | | if (other == null) { |
| 0 | 283 | | return; |
| | 284 | | } |
| 0 | 285 | | switch (other.MaterialCase) { |
| | 286 | | case MaterialOneofCase.Unlit: |
| 0 | 287 | | if (Unlit == null) { |
| 0 | 288 | | Unlit = new global::DCL.ECSComponents.PBMaterial.Types.UnlitMaterial(); |
| | 289 | | } |
| 0 | 290 | | Unlit.MergeFrom(other.Unlit); |
| 0 | 291 | | break; |
| | 292 | | case MaterialOneofCase.Pbr: |
| 0 | 293 | | if (Pbr == null) { |
| 0 | 294 | | Pbr = new global::DCL.ECSComponents.PBMaterial.Types.PbrMaterial(); |
| | 295 | | } |
| 0 | 296 | | Pbr.MergeFrom(other.Pbr); |
| | 297 | | break; |
| | 298 | | } |
| | 299 | |
|
| 0 | 300 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 301 | | } |
| | 302 | |
|
| | 303 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 304 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 305 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 306 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 307 | | input.ReadRawMessage(this); |
| | 308 | | #else |
| | 309 | | uint tag; |
| 0 | 310 | | while ((tag = input.ReadTag()) != 0) { |
| | 311 | | switch(tag) { |
| | 312 | | default: |
| 0 | 313 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 314 | | break; |
| | 315 | | case 10: { |
| 0 | 316 | | global::DCL.ECSComponents.PBMaterial.Types.UnlitMaterial subBuilder = new global::DCL.ECSComponents.PBMateri |
| 0 | 317 | | if (materialCase_ == MaterialOneofCase.Unlit) { |
| 0 | 318 | | subBuilder.MergeFrom(Unlit); |
| | 319 | | } |
| 0 | 320 | | input.ReadMessage(subBuilder); |
| 0 | 321 | | Unlit = subBuilder; |
| 0 | 322 | | break; |
| | 323 | | } |
| | 324 | | case 18: { |
| 0 | 325 | | global::DCL.ECSComponents.PBMaterial.Types.PbrMaterial subBuilder = new global::DCL.ECSComponents.PBMaterial |
| 0 | 326 | | if (materialCase_ == MaterialOneofCase.Pbr) { |
| 0 | 327 | | subBuilder.MergeFrom(Pbr); |
| | 328 | | } |
| 0 | 329 | | input.ReadMessage(subBuilder); |
| 0 | 330 | | Pbr = subBuilder; |
| | 331 | | break; |
| | 332 | | } |
| | 333 | | } |
| | 334 | | } |
| | 335 | | #endif |
| 0 | 336 | | } |
| | 337 | |
|
| | 338 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 339 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 340 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 341 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 342 | | uint tag; |
| | 343 | | while ((tag = input.ReadTag()) != 0) { |
| | 344 | | switch(tag) { |
| | 345 | | default: |
| | 346 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 347 | | break; |
| | 348 | | case 10: { |
| | 349 | | global::DCL.ECSComponents.PBMaterial.Types.UnlitMaterial subBuilder = new global::DCL.ECSComponents.PBMateri |
| | 350 | | if (materialCase_ == MaterialOneofCase.Unlit) { |
| | 351 | | subBuilder.MergeFrom(Unlit); |
| | 352 | | } |
| | 353 | | input.ReadMessage(subBuilder); |
| | 354 | | Unlit = subBuilder; |
| | 355 | | break; |
| | 356 | | } |
| | 357 | | case 18: { |
| | 358 | | global::DCL.ECSComponents.PBMaterial.Types.PbrMaterial subBuilder = new global::DCL.ECSComponents.PBMaterial |
| | 359 | | if (materialCase_ == MaterialOneofCase.Pbr) { |
| | 360 | | subBuilder.MergeFrom(Pbr); |
| | 361 | | } |
| | 362 | | input.ReadMessage(subBuilder); |
| | 363 | | Pbr = subBuilder; |
| | 364 | | break; |
| | 365 | | } |
| | 366 | | } |
| | 367 | | } |
| | 368 | | } |
| | 369 | | #endif |
| | 370 | |
|
| | 371 | | #region Nested types |
| | 372 | | /// <summary>Container for nested types declared in the PBMaterial message type.</summary> |
| | 373 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 374 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 375 | | public static partial class Types { |
| | 376 | | public sealed partial class UnlitMaterial : pb::IMessage<UnlitMaterial> |
| | 377 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 378 | | , pb::IBufferMessage |
| | 379 | | #endif |
| | 380 | | { |
| 1 | 381 | | private static readonly pb::MessageParser<UnlitMaterial> _parser = new pb::MessageParser<UnlitMaterial>(() => ne |
| | 382 | | private pb::UnknownFieldSet _unknownFields; |
| | 383 | | private int _hasBits0; |
| | 384 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 385 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 386 | | public static pb::MessageParser<UnlitMaterial> Parser { get { return _parser; } } |
| | 387 | |
|
| | 388 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 389 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 390 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 391 | | get { return global::DCL.ECSComponents.PBMaterial.Descriptor.NestedTypes[0]; } |
| | 392 | | } |
| | 393 | |
|
| | 394 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 395 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 396 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 397 | | get { return Descriptor; } |
| | 398 | | } |
| | 399 | |
|
| | 400 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 401 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 1 | 402 | | public UnlitMaterial() { |
| | 403 | | OnConstruction(); |
| 1 | 404 | | } |
| | 405 | |
|
| | 406 | | partial void OnConstruction(); |
| | 407 | |
|
| | 408 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 409 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 410 | | public UnlitMaterial(UnlitMaterial other) : this() { |
| 0 | 411 | | _hasBits0 = other._hasBits0; |
| 0 | 412 | | texture_ = other.texture_ != null ? other.texture_.Clone() : null; |
| 0 | 413 | | alphaTest_ = other.alphaTest_; |
| 0 | 414 | | castShadows_ = other.castShadows_; |
| 0 | 415 | | diffuseColor_ = other.diffuseColor_ != null ? other.diffuseColor_.Clone() : null; |
| 0 | 416 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 0 | 417 | | } |
| | 418 | |
|
| | 419 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 420 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 421 | | public UnlitMaterial Clone() { |
| 0 | 422 | | return new UnlitMaterial(this); |
| | 423 | | } |
| | 424 | |
|
| | 425 | | /// <summary>Field number for the "texture" field.</summary> |
| | 426 | | public const int TextureFieldNumber = 1; |
| | 427 | | private global::Decentraland.Common.TextureUnion texture_; |
| | 428 | | /// <summary> |
| | 429 | | /// default = null |
| | 430 | | /// </summary> |
| | 431 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 432 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 433 | | public global::Decentraland.Common.TextureUnion Texture { |
| 1 | 434 | | get { return texture_; } |
| | 435 | | set { |
| 1 | 436 | | texture_ = value; |
| 1 | 437 | | } |
| | 438 | | } |
| | 439 | |
|
| | 440 | | /// <summary>Field number for the "alpha_test" field.</summary> |
| | 441 | | public const int AlphaTestFieldNumber = 2; |
| | 442 | | private float alphaTest_; |
| | 443 | | /// <summary> |
| | 444 | | /// default = 0.5. range value: from 0 to 1 |
| | 445 | | /// </summary> |
| | 446 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 447 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 448 | | public float AlphaTest { |
| 0 | 449 | | get { if ((_hasBits0 & 1) != 0) { return alphaTest_; } else { return 0F; } } |
| | 450 | | set { |
| 0 | 451 | | _hasBits0 |= 1; |
| 0 | 452 | | alphaTest_ = value; |
| 0 | 453 | | } |
| | 454 | | } |
| | 455 | | /// <summary>Gets whether the "alpha_test" field is set</summary> |
| | 456 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 457 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 458 | | public bool HasAlphaTest { |
| 1 | 459 | | get { return (_hasBits0 & 1) != 0; } |
| | 460 | | } |
| | 461 | | /// <summary>Clears the value of the "alpha_test" field</summary> |
| | 462 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 463 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 464 | | public void ClearAlphaTest() { |
| 0 | 465 | | _hasBits0 &= ~1; |
| 0 | 466 | | } |
| | 467 | |
|
| | 468 | | /// <summary>Field number for the "cast_shadows" field.</summary> |
| | 469 | | public const int CastShadowsFieldNumber = 3; |
| | 470 | | private bool castShadows_; |
| | 471 | | /// <summary> |
| | 472 | | /// default = true |
| | 473 | | /// </summary> |
| | 474 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 475 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 476 | | public bool CastShadows { |
| 0 | 477 | | get { if ((_hasBits0 & 2) != 0) { return castShadows_; } else { return false; } } |
| | 478 | | set { |
| 0 | 479 | | _hasBits0 |= 2; |
| 0 | 480 | | castShadows_ = value; |
| 0 | 481 | | } |
| | 482 | | } |
| | 483 | | /// <summary>Gets whether the "cast_shadows" field is set</summary> |
| | 484 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 485 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 486 | | public bool HasCastShadows { |
| 0 | 487 | | get { return (_hasBits0 & 2) != 0; } |
| | 488 | | } |
| | 489 | | /// <summary>Clears the value of the "cast_shadows" field</summary> |
| | 490 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 491 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 492 | | public void ClearCastShadows() { |
| 0 | 493 | | _hasBits0 &= ~2; |
| 0 | 494 | | } |
| | 495 | |
|
| | 496 | | /// <summary>Field number for the "diffuse_color" field.</summary> |
| | 497 | | public const int DiffuseColorFieldNumber = 4; |
| | 498 | | private global::Decentraland.Common.Color4 diffuseColor_; |
| | 499 | | /// <summary> |
| | 500 | | /// default = white; |
| | 501 | | /// </summary> |
| | 502 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 503 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 504 | | public global::Decentraland.Common.Color4 DiffuseColor { |
| 1 | 505 | | get { return diffuseColor_; } |
| | 506 | | set { |
| 0 | 507 | | diffuseColor_ = value; |
| 0 | 508 | | } |
| | 509 | | } |
| | 510 | |
|
| | 511 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 512 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 513 | | public override bool Equals(object other) { |
| 0 | 514 | | return Equals(other as UnlitMaterial); |
| | 515 | | } |
| | 516 | |
|
| | 517 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 518 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 519 | | public bool Equals(UnlitMaterial other) { |
| 0 | 520 | | if (ReferenceEquals(other, null)) { |
| 0 | 521 | | return false; |
| | 522 | | } |
| 0 | 523 | | if (ReferenceEquals(other, this)) { |
| 0 | 524 | | return true; |
| | 525 | | } |
| 0 | 526 | | if (!object.Equals(Texture, other.Texture)) return false; |
| 0 | 527 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(AlphaTest, other.AlphaTest)) return f |
| 0 | 528 | | if (CastShadows != other.CastShadows) return false; |
| 0 | 529 | | if (!object.Equals(DiffuseColor, other.DiffuseColor)) return false; |
| 0 | 530 | | return Equals(_unknownFields, other._unknownFields); |
| | 531 | | } |
| | 532 | |
|
| | 533 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 534 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 535 | | public override int GetHashCode() { |
| 0 | 536 | | int hash = 1; |
| 0 | 537 | | if (texture_ != null) hash ^= Texture.GetHashCode(); |
| 0 | 538 | | if (HasAlphaTest) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(AlphaTest); |
| 0 | 539 | | if (HasCastShadows) hash ^= CastShadows.GetHashCode(); |
| 0 | 540 | | if (diffuseColor_ != null) hash ^= DiffuseColor.GetHashCode(); |
| 0 | 541 | | if (_unknownFields != null) { |
| 0 | 542 | | hash ^= _unknownFields.GetHashCode(); |
| | 543 | | } |
| 0 | 544 | | return hash; |
| | 545 | | } |
| | 546 | |
|
| | 547 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 548 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 549 | | public override string ToString() { |
| 0 | 550 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 551 | | } |
| | 552 | |
|
| | 553 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 554 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 555 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 556 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 557 | | output.WriteRawMessage(this); |
| | 558 | | #else |
| 0 | 559 | | if (texture_ != null) { |
| 0 | 560 | | output.WriteRawTag(10); |
| 0 | 561 | | output.WriteMessage(Texture); |
| | 562 | | } |
| 0 | 563 | | if (HasAlphaTest) { |
| 0 | 564 | | output.WriteRawTag(21); |
| 0 | 565 | | output.WriteFloat(AlphaTest); |
| | 566 | | } |
| 0 | 567 | | if (HasCastShadows) { |
| 0 | 568 | | output.WriteRawTag(24); |
| 0 | 569 | | output.WriteBool(CastShadows); |
| | 570 | | } |
| 0 | 571 | | if (diffuseColor_ != null) { |
| 0 | 572 | | output.WriteRawTag(34); |
| 0 | 573 | | output.WriteMessage(DiffuseColor); |
| | 574 | | } |
| 0 | 575 | | if (_unknownFields != null) { |
| 0 | 576 | | _unknownFields.WriteTo(output); |
| | 577 | | } |
| | 578 | | #endif |
| 0 | 579 | | } |
| | 580 | |
|
| | 581 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 582 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 583 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 584 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 585 | | if (texture_ != null) { |
| | 586 | | output.WriteRawTag(10); |
| | 587 | | output.WriteMessage(Texture); |
| | 588 | | } |
| | 589 | | if (HasAlphaTest) { |
| | 590 | | output.WriteRawTag(21); |
| | 591 | | output.WriteFloat(AlphaTest); |
| | 592 | | } |
| | 593 | | if (HasCastShadows) { |
| | 594 | | output.WriteRawTag(24); |
| | 595 | | output.WriteBool(CastShadows); |
| | 596 | | } |
| | 597 | | if (diffuseColor_ != null) { |
| | 598 | | output.WriteRawTag(34); |
| | 599 | | output.WriteMessage(DiffuseColor); |
| | 600 | | } |
| | 601 | | if (_unknownFields != null) { |
| | 602 | | _unknownFields.WriteTo(ref output); |
| | 603 | | } |
| | 604 | | } |
| | 605 | | #endif |
| | 606 | |
|
| | 607 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 608 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 609 | | public int CalculateSize() { |
| 0 | 610 | | int size = 0; |
| 0 | 611 | | if (texture_ != null) { |
| 0 | 612 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Texture); |
| | 613 | | } |
| 0 | 614 | | if (HasAlphaTest) { |
| 0 | 615 | | size += 1 + 4; |
| | 616 | | } |
| 0 | 617 | | if (HasCastShadows) { |
| 0 | 618 | | size += 1 + 1; |
| | 619 | | } |
| 0 | 620 | | if (diffuseColor_ != null) { |
| 0 | 621 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(DiffuseColor); |
| | 622 | | } |
| 0 | 623 | | if (_unknownFields != null) { |
| 0 | 624 | | size += _unknownFields.CalculateSize(); |
| | 625 | | } |
| 0 | 626 | | return size; |
| | 627 | | } |
| | 628 | |
|
| | 629 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 630 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 631 | | public void MergeFrom(UnlitMaterial other) { |
| 0 | 632 | | if (other == null) { |
| 0 | 633 | | return; |
| | 634 | | } |
| 0 | 635 | | if (other.texture_ != null) { |
| 0 | 636 | | if (texture_ == null) { |
| 0 | 637 | | Texture = new global::Decentraland.Common.TextureUnion(); |
| | 638 | | } |
| 0 | 639 | | Texture.MergeFrom(other.Texture); |
| | 640 | | } |
| 0 | 641 | | if (other.HasAlphaTest) { |
| 0 | 642 | | AlphaTest = other.AlphaTest; |
| | 643 | | } |
| 0 | 644 | | if (other.HasCastShadows) { |
| 0 | 645 | | CastShadows = other.CastShadows; |
| | 646 | | } |
| 0 | 647 | | if (other.diffuseColor_ != null) { |
| 0 | 648 | | if (diffuseColor_ == null) { |
| 0 | 649 | | DiffuseColor = new global::Decentraland.Common.Color4(); |
| | 650 | | } |
| 0 | 651 | | DiffuseColor.MergeFrom(other.DiffuseColor); |
| | 652 | | } |
| 0 | 653 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 654 | | } |
| | 655 | |
|
| | 656 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 657 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 658 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 659 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 660 | | input.ReadRawMessage(this); |
| | 661 | | #else |
| | 662 | | uint tag; |
| 0 | 663 | | while ((tag = input.ReadTag()) != 0) { |
| | 664 | | switch(tag) { |
| | 665 | | default: |
| 0 | 666 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 667 | | break; |
| | 668 | | case 10: { |
| 0 | 669 | | if (texture_ == null) { |
| 0 | 670 | | Texture = new global::Decentraland.Common.TextureUnion(); |
| | 671 | | } |
| 0 | 672 | | input.ReadMessage(Texture); |
| 0 | 673 | | break; |
| | 674 | | } |
| | 675 | | case 21: { |
| 0 | 676 | | AlphaTest = input.ReadFloat(); |
| 0 | 677 | | break; |
| | 678 | | } |
| | 679 | | case 24: { |
| 0 | 680 | | CastShadows = input.ReadBool(); |
| 0 | 681 | | break; |
| | 682 | | } |
| | 683 | | case 34: { |
| 0 | 684 | | if (diffuseColor_ == null) { |
| 0 | 685 | | DiffuseColor = new global::Decentraland.Common.Color4(); |
| | 686 | | } |
| 0 | 687 | | input.ReadMessage(DiffuseColor); |
| | 688 | | break; |
| | 689 | | } |
| | 690 | | } |
| | 691 | | } |
| | 692 | | #endif |
| 0 | 693 | | } |
| | 694 | |
|
| | 695 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 696 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 697 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 698 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 699 | | uint tag; |
| | 700 | | while ((tag = input.ReadTag()) != 0) { |
| | 701 | | switch(tag) { |
| | 702 | | default: |
| | 703 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 704 | | break; |
| | 705 | | case 10: { |
| | 706 | | if (texture_ == null) { |
| | 707 | | Texture = new global::Decentraland.Common.TextureUnion(); |
| | 708 | | } |
| | 709 | | input.ReadMessage(Texture); |
| | 710 | | break; |
| | 711 | | } |
| | 712 | | case 21: { |
| | 713 | | AlphaTest = input.ReadFloat(); |
| | 714 | | break; |
| | 715 | | } |
| | 716 | | case 24: { |
| | 717 | | CastShadows = input.ReadBool(); |
| | 718 | | break; |
| | 719 | | } |
| | 720 | | case 34: { |
| | 721 | | if (diffuseColor_ == null) { |
| | 722 | | DiffuseColor = new global::Decentraland.Common.Color4(); |
| | 723 | | } |
| | 724 | | input.ReadMessage(DiffuseColor); |
| | 725 | | break; |
| | 726 | | } |
| | 727 | | } |
| | 728 | | } |
| | 729 | | } |
| | 730 | | #endif |
| | 731 | |
|
| | 732 | | } |
| | 733 | |
|
| | 734 | | public sealed partial class PbrMaterial : pb::IMessage<PbrMaterial> |
| | 735 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 736 | | , pb::IBufferMessage |
| | 737 | | #endif |
| | 738 | | { |
| 1 | 739 | | private static readonly pb::MessageParser<PbrMaterial> _parser = new pb::MessageParser<PbrMaterial>(() => new Pb |
| | 740 | | private pb::UnknownFieldSet _unknownFields; |
| | 741 | | private int _hasBits0; |
| | 742 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 743 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 744 | | public static pb::MessageParser<PbrMaterial> Parser { get { return _parser; } } |
| | 745 | |
|
| | 746 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 747 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 748 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 749 | | get { return global::DCL.ECSComponents.PBMaterial.Descriptor.NestedTypes[1]; } |
| | 750 | | } |
| | 751 | |
|
| | 752 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 753 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 754 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 755 | | get { return Descriptor; } |
| | 756 | | } |
| | 757 | |
|
| | 758 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 759 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 23 | 760 | | public PbrMaterial() { |
| | 761 | | OnConstruction(); |
| 23 | 762 | | } |
| | 763 | |
|
| | 764 | | partial void OnConstruction(); |
| | 765 | |
|
| | 766 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 767 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 5 | 768 | | public PbrMaterial(PbrMaterial other) : this() { |
| 5 | 769 | | _hasBits0 = other._hasBits0; |
| 5 | 770 | | texture_ = other.texture_ != null ? other.texture_.Clone() : null; |
| 5 | 771 | | alphaTest_ = other.alphaTest_; |
| 5 | 772 | | castShadows_ = other.castShadows_; |
| 5 | 773 | | alphaTexture_ = other.alphaTexture_ != null ? other.alphaTexture_.Clone() : null; |
| 5 | 774 | | emissiveTexture_ = other.emissiveTexture_ != null ? other.emissiveTexture_.Clone() : null; |
| 5 | 775 | | bumpTexture_ = other.bumpTexture_ != null ? other.bumpTexture_.Clone() : null; |
| 5 | 776 | | albedoColor_ = other.albedoColor_ != null ? other.albedoColor_.Clone() : null; |
| 5 | 777 | | emissiveColor_ = other.emissiveColor_ != null ? other.emissiveColor_.Clone() : null; |
| 5 | 778 | | reflectivityColor_ = other.reflectivityColor_ != null ? other.reflectivityColor_.Clone() : null; |
| 5 | 779 | | transparencyMode_ = other.transparencyMode_; |
| 5 | 780 | | metallic_ = other.metallic_; |
| 5 | 781 | | roughness_ = other.roughness_; |
| 5 | 782 | | specularIntensity_ = other.specularIntensity_; |
| 5 | 783 | | emissiveIntensity_ = other.emissiveIntensity_; |
| 5 | 784 | | directIntensity_ = other.directIntensity_; |
| 5 | 785 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 5 | 786 | | } |
| | 787 | |
|
| | 788 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 789 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 790 | | public PbrMaterial Clone() { |
| 5 | 791 | | return new PbrMaterial(this); |
| | 792 | | } |
| | 793 | |
|
| | 794 | | /// <summary>Field number for the "texture" field.</summary> |
| | 795 | | public const int TextureFieldNumber = 1; |
| | 796 | | private global::Decentraland.Common.TextureUnion texture_; |
| | 797 | | /// <summary> |
| | 798 | | /// default = null |
| | 799 | | /// </summary> |
| | 800 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 801 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 802 | | public global::Decentraland.Common.TextureUnion Texture { |
| 42 | 803 | | get { return texture_; } |
| | 804 | | set { |
| 9 | 805 | | texture_ = value; |
| 9 | 806 | | } |
| | 807 | | } |
| | 808 | |
|
| | 809 | | /// <summary>Field number for the "alpha_test" field.</summary> |
| | 810 | | public const int AlphaTestFieldNumber = 2; |
| | 811 | | private float alphaTest_; |
| | 812 | | /// <summary> |
| | 813 | | /// default = 0.5. range value: from 0 to 1 |
| | 814 | | /// </summary> |
| | 815 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 816 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 817 | | public float AlphaTest { |
| 32 | 818 | | get { if ((_hasBits0 & 1) != 0) { return alphaTest_; } else { return 0F; } } |
| | 819 | | set { |
| 0 | 820 | | _hasBits0 |= 1; |
| 0 | 821 | | alphaTest_ = value; |
| 0 | 822 | | } |
| | 823 | | } |
| | 824 | | /// <summary>Gets whether the "alpha_test" field is set</summary> |
| | 825 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 826 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 827 | | public bool HasAlphaTest { |
| 19 | 828 | | get { return (_hasBits0 & 1) != 0; } |
| | 829 | | } |
| | 830 | | /// <summary>Clears the value of the "alpha_test" field</summary> |
| | 831 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 832 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 833 | | public void ClearAlphaTest() { |
| 0 | 834 | | _hasBits0 &= ~1; |
| 0 | 835 | | } |
| | 836 | |
|
| | 837 | | /// <summary>Field number for the "cast_shadows" field.</summary> |
| | 838 | | public const int CastShadowsFieldNumber = 3; |
| | 839 | | private bool castShadows_; |
| | 840 | | /// <summary> |
| | 841 | | /// default = true |
| | 842 | | /// </summary> |
| | 843 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 844 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 845 | | public bool CastShadows { |
| 32 | 846 | | get { if ((_hasBits0 & 2) != 0) { return castShadows_; } else { return false; } } |
| | 847 | | set { |
| 0 | 848 | | _hasBits0 |= 2; |
| 0 | 849 | | castShadows_ = value; |
| 0 | 850 | | } |
| | 851 | | } |
| | 852 | | /// <summary>Gets whether the "cast_shadows" field is set</summary> |
| | 853 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 854 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 855 | | public bool HasCastShadows { |
| 19 | 856 | | get { return (_hasBits0 & 2) != 0; } |
| | 857 | | } |
| | 858 | | /// <summary>Clears the value of the "cast_shadows" field</summary> |
| | 859 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 860 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 861 | | public void ClearCastShadows() { |
| 0 | 862 | | _hasBits0 &= ~2; |
| 0 | 863 | | } |
| | 864 | |
|
| | 865 | | /// <summary>Field number for the "alpha_texture" field.</summary> |
| | 866 | | public const int AlphaTextureFieldNumber = 4; |
| | 867 | | private global::Decentraland.Common.TextureUnion alphaTexture_; |
| | 868 | | /// <summary> |
| | 869 | | /// default = null |
| | 870 | | /// </summary> |
| | 871 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 872 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 873 | | public global::Decentraland.Common.TextureUnion AlphaTexture { |
| 54 | 874 | | get { return alphaTexture_; } |
| | 875 | | set { |
| 0 | 876 | | alphaTexture_ = value; |
| 0 | 877 | | } |
| | 878 | | } |
| | 879 | |
|
| | 880 | | /// <summary>Field number for the "emissive_texture" field.</summary> |
| | 881 | | public const int EmissiveTextureFieldNumber = 5; |
| | 882 | | private global::Decentraland.Common.TextureUnion emissiveTexture_; |
| | 883 | | /// <summary> |
| | 884 | | /// default = null |
| | 885 | | /// </summary> |
| | 886 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 887 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 888 | | public global::Decentraland.Common.TextureUnion EmissiveTexture { |
| 54 | 889 | | get { return emissiveTexture_; } |
| | 890 | | set { |
| 0 | 891 | | emissiveTexture_ = value; |
| 0 | 892 | | } |
| | 893 | | } |
| | 894 | |
|
| | 895 | | /// <summary>Field number for the "bump_texture" field.</summary> |
| | 896 | | public const int BumpTextureFieldNumber = 6; |
| | 897 | | private global::Decentraland.Common.TextureUnion bumpTexture_; |
| | 898 | | /// <summary> |
| | 899 | | /// default = null |
| | 900 | | /// </summary> |
| | 901 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 902 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 903 | | public global::Decentraland.Common.TextureUnion BumpTexture { |
| 54 | 904 | | get { return bumpTexture_; } |
| | 905 | | set { |
| 0 | 906 | | bumpTexture_ = value; |
| 0 | 907 | | } |
| | 908 | | } |
| | 909 | |
|
| | 910 | | /// <summary>Field number for the "albedo_color" field.</summary> |
| | 911 | | public const int AlbedoColorFieldNumber = 7; |
| | 912 | | private global::Decentraland.Common.Color4 albedoColor_; |
| | 913 | | /// <summary> |
| | 914 | | /// default = white; |
| | 915 | | /// </summary> |
| | 916 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 917 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 918 | | public global::Decentraland.Common.Color4 AlbedoColor { |
| 35 | 919 | | get { return albedoColor_; } |
| | 920 | | set { |
| 9 | 921 | | albedoColor_ = value; |
| 9 | 922 | | } |
| | 923 | | } |
| | 924 | |
|
| | 925 | | /// <summary>Field number for the "emissive_color" field.</summary> |
| | 926 | | public const int EmissiveColorFieldNumber = 8; |
| | 927 | | private global::Decentraland.Common.Color3 emissiveColor_; |
| | 928 | | /// <summary> |
| | 929 | | /// default = black; |
| | 930 | | /// </summary> |
| | 931 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 932 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 933 | | public global::Decentraland.Common.Color3 EmissiveColor { |
| 23 | 934 | | get { return emissiveColor_; } |
| | 935 | | set { |
| 0 | 936 | | emissiveColor_ = value; |
| 0 | 937 | | } |
| | 938 | | } |
| | 939 | |
|
| | 940 | | /// <summary>Field number for the "reflectivity_color" field.</summary> |
| | 941 | | public const int ReflectivityColorFieldNumber = 9; |
| | 942 | | private global::Decentraland.Common.Color3 reflectivityColor_; |
| | 943 | | /// <summary> |
| | 944 | | /// default = white; |
| | 945 | | /// </summary> |
| | 946 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 947 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 948 | | public global::Decentraland.Common.Color3 ReflectivityColor { |
| 23 | 949 | | get { return reflectivityColor_; } |
| | 950 | | set { |
| 0 | 951 | | reflectivityColor_ = value; |
| 0 | 952 | | } |
| | 953 | | } |
| | 954 | |
|
| | 955 | | /// <summary>Field number for the "transparency_mode" field.</summary> |
| | 956 | | public const int TransparencyModeFieldNumber = 10; |
| | 957 | | private global::DCL.ECSComponents.MaterialTransparencyMode transparencyMode_; |
| | 958 | | /// <summary> |
| | 959 | | /// default = TransparencyMode.Auto |
| | 960 | | /// </summary> |
| | 961 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 962 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 963 | | public global::DCL.ECSComponents.MaterialTransparencyMode TransparencyMode { |
| 8 | 964 | | get { if ((_hasBits0 & 4) != 0) { return transparencyMode_; } else { return global::DCL.ECSComponents.Material |
| | 965 | | set { |
| 0 | 966 | | _hasBits0 |= 4; |
| 0 | 967 | | transparencyMode_ = value; |
| 0 | 968 | | } |
| | 969 | | } |
| | 970 | | /// <summary>Gets whether the "transparency_mode" field is set</summary> |
| | 971 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 972 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 973 | | public bool HasTransparencyMode { |
| 19 | 974 | | get { return (_hasBits0 & 4) != 0; } |
| | 975 | | } |
| | 976 | | /// <summary>Clears the value of the "transparency_mode" field</summary> |
| | 977 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 978 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 979 | | public void ClearTransparencyMode() { |
| 0 | 980 | | _hasBits0 &= ~4; |
| 0 | 981 | | } |
| | 982 | |
|
| | 983 | | /// <summary>Field number for the "metallic" field.</summary> |
| | 984 | | public const int MetallicFieldNumber = 11; |
| | 985 | | private float metallic_; |
| | 986 | | /// <summary> |
| | 987 | | /// default = 0.5 |
| | 988 | | /// </summary> |
| | 989 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 990 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 991 | | public float Metallic { |
| 8 | 992 | | get { if ((_hasBits0 & 8) != 0) { return metallic_; } else { return 0F; } } |
| | 993 | | set { |
| 0 | 994 | | _hasBits0 |= 8; |
| 0 | 995 | | metallic_ = value; |
| 0 | 996 | | } |
| | 997 | | } |
| | 998 | | /// <summary>Gets whether the "metallic" field is set</summary> |
| | 999 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1000 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1001 | | public bool HasMetallic { |
| 19 | 1002 | | get { return (_hasBits0 & 8) != 0; } |
| | 1003 | | } |
| | 1004 | | /// <summary>Clears the value of the "metallic" field</summary> |
| | 1005 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1006 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1007 | | public void ClearMetallic() { |
| 0 | 1008 | | _hasBits0 &= ~8; |
| 0 | 1009 | | } |
| | 1010 | |
|
| | 1011 | | /// <summary>Field number for the "roughness" field.</summary> |
| | 1012 | | public const int RoughnessFieldNumber = 12; |
| | 1013 | | private float roughness_; |
| | 1014 | | /// <summary> |
| | 1015 | | /// default = 0.5 |
| | 1016 | | /// </summary> |
| | 1017 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1018 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1019 | | public float Roughness { |
| 8 | 1020 | | get { if ((_hasBits0 & 16) != 0) { return roughness_; } else { return 0F; } } |
| | 1021 | | set { |
| 0 | 1022 | | _hasBits0 |= 16; |
| 0 | 1023 | | roughness_ = value; |
| 0 | 1024 | | } |
| | 1025 | | } |
| | 1026 | | /// <summary>Gets whether the "roughness" field is set</summary> |
| | 1027 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1028 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1029 | | public bool HasRoughness { |
| 19 | 1030 | | get { return (_hasBits0 & 16) != 0; } |
| | 1031 | | } |
| | 1032 | | /// <summary>Clears the value of the "roughness" field</summary> |
| | 1033 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1034 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1035 | | public void ClearRoughness() { |
| 0 | 1036 | | _hasBits0 &= ~16; |
| 0 | 1037 | | } |
| | 1038 | |
|
| | 1039 | | /// <summary>Field number for the "specular_intensity" field.</summary> |
| | 1040 | | public const int SpecularIntensityFieldNumber = 14; |
| | 1041 | | private float specularIntensity_; |
| | 1042 | | /// <summary> |
| | 1043 | | /// default = 1 |
| | 1044 | | /// </summary> |
| | 1045 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1046 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1047 | | public float SpecularIntensity { |
| 8 | 1048 | | get { if ((_hasBits0 & 32) != 0) { return specularIntensity_; } else { return 0F; } } |
| | 1049 | | set { |
| 0 | 1050 | | _hasBits0 |= 32; |
| 0 | 1051 | | specularIntensity_ = value; |
| 0 | 1052 | | } |
| | 1053 | | } |
| | 1054 | | /// <summary>Gets whether the "specular_intensity" field is set</summary> |
| | 1055 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1056 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1057 | | public bool HasSpecularIntensity { |
| 19 | 1058 | | get { return (_hasBits0 & 32) != 0; } |
| | 1059 | | } |
| | 1060 | | /// <summary>Clears the value of the "specular_intensity" field</summary> |
| | 1061 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1062 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1063 | | public void ClearSpecularIntensity() { |
| 0 | 1064 | | _hasBits0 &= ~32; |
| 0 | 1065 | | } |
| | 1066 | |
|
| | 1067 | | /// <summary>Field number for the "emissive_intensity" field.</summary> |
| | 1068 | | public const int EmissiveIntensityFieldNumber = 15; |
| | 1069 | | private float emissiveIntensity_; |
| | 1070 | | /// <summary> |
| | 1071 | | /// default = 2 |
| | 1072 | | /// </summary> |
| | 1073 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1074 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1075 | | public float EmissiveIntensity { |
| 8 | 1076 | | get { if ((_hasBits0 & 64) != 0) { return emissiveIntensity_; } else { return 0F; } } |
| | 1077 | | set { |
| 0 | 1078 | | _hasBits0 |= 64; |
| 0 | 1079 | | emissiveIntensity_ = value; |
| 0 | 1080 | | } |
| | 1081 | | } |
| | 1082 | | /// <summary>Gets whether the "emissive_intensity" field is set</summary> |
| | 1083 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1084 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1085 | | public bool HasEmissiveIntensity { |
| 19 | 1086 | | get { return (_hasBits0 & 64) != 0; } |
| | 1087 | | } |
| | 1088 | | /// <summary>Clears the value of the "emissive_intensity" field</summary> |
| | 1089 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1090 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1091 | | public void ClearEmissiveIntensity() { |
| 0 | 1092 | | _hasBits0 &= ~64; |
| 0 | 1093 | | } |
| | 1094 | |
|
| | 1095 | | /// <summary>Field number for the "direct_intensity" field.</summary> |
| | 1096 | | public const int DirectIntensityFieldNumber = 16; |
| | 1097 | | private float directIntensity_; |
| | 1098 | | /// <summary> |
| | 1099 | | /// default = 1 |
| | 1100 | | /// </summary> |
| | 1101 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1102 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1103 | | public float DirectIntensity { |
| 8 | 1104 | | get { if ((_hasBits0 & 128) != 0) { return directIntensity_; } else { return 0F; } } |
| | 1105 | | set { |
| 0 | 1106 | | _hasBits0 |= 128; |
| 0 | 1107 | | directIntensity_ = value; |
| 0 | 1108 | | } |
| | 1109 | | } |
| | 1110 | | /// <summary>Gets whether the "direct_intensity" field is set</summary> |
| | 1111 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1112 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1113 | | public bool HasDirectIntensity { |
| 19 | 1114 | | get { return (_hasBits0 & 128) != 0; } |
| | 1115 | | } |
| | 1116 | | /// <summary>Clears the value of the "direct_intensity" field</summary> |
| | 1117 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1118 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1119 | | public void ClearDirectIntensity() { |
| 0 | 1120 | | _hasBits0 &= ~128; |
| 0 | 1121 | | } |
| | 1122 | |
|
| | 1123 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1124 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1125 | | public override bool Equals(object other) { |
| 11 | 1126 | | return Equals(other as PbrMaterial); |
| | 1127 | | } |
| | 1128 | |
|
| | 1129 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1130 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1131 | | public bool Equals(PbrMaterial other) { |
| 11 | 1132 | | if (ReferenceEquals(other, null)) { |
| 0 | 1133 | | return false; |
| | 1134 | | } |
| 11 | 1135 | | if (ReferenceEquals(other, this)) { |
| 0 | 1136 | | return true; |
| | 1137 | | } |
| 14 | 1138 | | if (!object.Equals(Texture, other.Texture)) return false; |
| 8 | 1139 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(AlphaTest, other.AlphaTest)) return f |
| 8 | 1140 | | if (CastShadows != other.CastShadows) return false; |
| 8 | 1141 | | if (!object.Equals(AlphaTexture, other.AlphaTexture)) return false; |
| 8 | 1142 | | if (!object.Equals(EmissiveTexture, other.EmissiveTexture)) return false; |
| 8 | 1143 | | if (!object.Equals(BumpTexture, other.BumpTexture)) return false; |
| 14 | 1144 | | if (!object.Equals(AlbedoColor, other.AlbedoColor)) return false; |
| 2 | 1145 | | if (!object.Equals(EmissiveColor, other.EmissiveColor)) return false; |
| 2 | 1146 | | if (!object.Equals(ReflectivityColor, other.ReflectivityColor)) return false; |
| 2 | 1147 | | if (TransparencyMode != other.TransparencyMode) return false; |
| 2 | 1148 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Metallic, other.Metallic)) return fal |
| 2 | 1149 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Roughness, other.Roughness)) return f |
| 2 | 1150 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(SpecularIntensity, other.SpecularInte |
| 2 | 1151 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(EmissiveIntensity, other.EmissiveInte |
| 2 | 1152 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DirectIntensity, other.DirectIntensit |
| 2 | 1153 | | return Equals(_unknownFields, other._unknownFields); |
| | 1154 | | } |
| | 1155 | |
|
| | 1156 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1157 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1158 | | public override int GetHashCode() { |
| 0 | 1159 | | int hash = 1; |
| 0 | 1160 | | if (texture_ != null) hash ^= Texture.GetHashCode(); |
| 0 | 1161 | | if (HasAlphaTest) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(AlphaTest); |
| 0 | 1162 | | if (HasCastShadows) hash ^= CastShadows.GetHashCode(); |
| 0 | 1163 | | if (alphaTexture_ != null) hash ^= AlphaTexture.GetHashCode(); |
| 0 | 1164 | | if (emissiveTexture_ != null) hash ^= EmissiveTexture.GetHashCode(); |
| 0 | 1165 | | if (bumpTexture_ != null) hash ^= BumpTexture.GetHashCode(); |
| 0 | 1166 | | if (albedoColor_ != null) hash ^= AlbedoColor.GetHashCode(); |
| 0 | 1167 | | if (emissiveColor_ != null) hash ^= EmissiveColor.GetHashCode(); |
| 0 | 1168 | | if (reflectivityColor_ != null) hash ^= ReflectivityColor.GetHashCode(); |
| 0 | 1169 | | if (HasTransparencyMode) hash ^= TransparencyMode.GetHashCode(); |
| 0 | 1170 | | if (HasMetallic) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Metallic); |
| 0 | 1171 | | if (HasRoughness) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Roughness); |
| 0 | 1172 | | if (HasSpecularIntensity) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Spe |
| 0 | 1173 | | if (HasEmissiveIntensity) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Emi |
| 0 | 1174 | | if (HasDirectIntensity) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Direc |
| 0 | 1175 | | if (_unknownFields != null) { |
| 0 | 1176 | | hash ^= _unknownFields.GetHashCode(); |
| | 1177 | | } |
| 0 | 1178 | | return hash; |
| | 1179 | | } |
| | 1180 | |
|
| | 1181 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1182 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1183 | | public override string ToString() { |
| 0 | 1184 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 1185 | | } |
| | 1186 | |
|
| | 1187 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1188 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1189 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 1190 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 1191 | | output.WriteRawMessage(this); |
| | 1192 | | #else |
| 0 | 1193 | | if (texture_ != null) { |
| 0 | 1194 | | output.WriteRawTag(10); |
| 0 | 1195 | | output.WriteMessage(Texture); |
| | 1196 | | } |
| 0 | 1197 | | if (HasAlphaTest) { |
| 0 | 1198 | | output.WriteRawTag(21); |
| 0 | 1199 | | output.WriteFloat(AlphaTest); |
| | 1200 | | } |
| 0 | 1201 | | if (HasCastShadows) { |
| 0 | 1202 | | output.WriteRawTag(24); |
| 0 | 1203 | | output.WriteBool(CastShadows); |
| | 1204 | | } |
| 0 | 1205 | | if (alphaTexture_ != null) { |
| 0 | 1206 | | output.WriteRawTag(34); |
| 0 | 1207 | | output.WriteMessage(AlphaTexture); |
| | 1208 | | } |
| 0 | 1209 | | if (emissiveTexture_ != null) { |
| 0 | 1210 | | output.WriteRawTag(42); |
| 0 | 1211 | | output.WriteMessage(EmissiveTexture); |
| | 1212 | | } |
| 0 | 1213 | | if (bumpTexture_ != null) { |
| 0 | 1214 | | output.WriteRawTag(50); |
| 0 | 1215 | | output.WriteMessage(BumpTexture); |
| | 1216 | | } |
| 0 | 1217 | | if (albedoColor_ != null) { |
| 0 | 1218 | | output.WriteRawTag(58); |
| 0 | 1219 | | output.WriteMessage(AlbedoColor); |
| | 1220 | | } |
| 0 | 1221 | | if (emissiveColor_ != null) { |
| 0 | 1222 | | output.WriteRawTag(66); |
| 0 | 1223 | | output.WriteMessage(EmissiveColor); |
| | 1224 | | } |
| 0 | 1225 | | if (reflectivityColor_ != null) { |
| 0 | 1226 | | output.WriteRawTag(74); |
| 0 | 1227 | | output.WriteMessage(ReflectivityColor); |
| | 1228 | | } |
| 0 | 1229 | | if (HasTransparencyMode) { |
| 0 | 1230 | | output.WriteRawTag(80); |
| 0 | 1231 | | output.WriteEnum((int) TransparencyMode); |
| | 1232 | | } |
| 0 | 1233 | | if (HasMetallic) { |
| 0 | 1234 | | output.WriteRawTag(93); |
| 0 | 1235 | | output.WriteFloat(Metallic); |
| | 1236 | | } |
| 0 | 1237 | | if (HasRoughness) { |
| 0 | 1238 | | output.WriteRawTag(101); |
| 0 | 1239 | | output.WriteFloat(Roughness); |
| | 1240 | | } |
| 0 | 1241 | | if (HasSpecularIntensity) { |
| 0 | 1242 | | output.WriteRawTag(117); |
| 0 | 1243 | | output.WriteFloat(SpecularIntensity); |
| | 1244 | | } |
| 0 | 1245 | | if (HasEmissiveIntensity) { |
| 0 | 1246 | | output.WriteRawTag(125); |
| 0 | 1247 | | output.WriteFloat(EmissiveIntensity); |
| | 1248 | | } |
| 0 | 1249 | | if (HasDirectIntensity) { |
| 0 | 1250 | | output.WriteRawTag(133, 1); |
| 0 | 1251 | | output.WriteFloat(DirectIntensity); |
| | 1252 | | } |
| 0 | 1253 | | if (_unknownFields != null) { |
| 0 | 1254 | | _unknownFields.WriteTo(output); |
| | 1255 | | } |
| | 1256 | | #endif |
| 0 | 1257 | | } |
| | 1258 | |
|
| | 1259 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 1260 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1261 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1262 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 1263 | | if (texture_ != null) { |
| | 1264 | | output.WriteRawTag(10); |
| | 1265 | | output.WriteMessage(Texture); |
| | 1266 | | } |
| | 1267 | | if (HasAlphaTest) { |
| | 1268 | | output.WriteRawTag(21); |
| | 1269 | | output.WriteFloat(AlphaTest); |
| | 1270 | | } |
| | 1271 | | if (HasCastShadows) { |
| | 1272 | | output.WriteRawTag(24); |
| | 1273 | | output.WriteBool(CastShadows); |
| | 1274 | | } |
| | 1275 | | if (alphaTexture_ != null) { |
| | 1276 | | output.WriteRawTag(34); |
| | 1277 | | output.WriteMessage(AlphaTexture); |
| | 1278 | | } |
| | 1279 | | if (emissiveTexture_ != null) { |
| | 1280 | | output.WriteRawTag(42); |
| | 1281 | | output.WriteMessage(EmissiveTexture); |
| | 1282 | | } |
| | 1283 | | if (bumpTexture_ != null) { |
| | 1284 | | output.WriteRawTag(50); |
| | 1285 | | output.WriteMessage(BumpTexture); |
| | 1286 | | } |
| | 1287 | | if (albedoColor_ != null) { |
| | 1288 | | output.WriteRawTag(58); |
| | 1289 | | output.WriteMessage(AlbedoColor); |
| | 1290 | | } |
| | 1291 | | if (emissiveColor_ != null) { |
| | 1292 | | output.WriteRawTag(66); |
| | 1293 | | output.WriteMessage(EmissiveColor); |
| | 1294 | | } |
| | 1295 | | if (reflectivityColor_ != null) { |
| | 1296 | | output.WriteRawTag(74); |
| | 1297 | | output.WriteMessage(ReflectivityColor); |
| | 1298 | | } |
| | 1299 | | if (HasTransparencyMode) { |
| | 1300 | | output.WriteRawTag(80); |
| | 1301 | | output.WriteEnum((int) TransparencyMode); |
| | 1302 | | } |
| | 1303 | | if (HasMetallic) { |
| | 1304 | | output.WriteRawTag(93); |
| | 1305 | | output.WriteFloat(Metallic); |
| | 1306 | | } |
| | 1307 | | if (HasRoughness) { |
| | 1308 | | output.WriteRawTag(101); |
| | 1309 | | output.WriteFloat(Roughness); |
| | 1310 | | } |
| | 1311 | | if (HasSpecularIntensity) { |
| | 1312 | | output.WriteRawTag(117); |
| | 1313 | | output.WriteFloat(SpecularIntensity); |
| | 1314 | | } |
| | 1315 | | if (HasEmissiveIntensity) { |
| | 1316 | | output.WriteRawTag(125); |
| | 1317 | | output.WriteFloat(EmissiveIntensity); |
| | 1318 | | } |
| | 1319 | | if (HasDirectIntensity) { |
| | 1320 | | output.WriteRawTag(133, 1); |
| | 1321 | | output.WriteFloat(DirectIntensity); |
| | 1322 | | } |
| | 1323 | | if (_unknownFields != null) { |
| | 1324 | | _unknownFields.WriteTo(ref output); |
| | 1325 | | } |
| | 1326 | | } |
| | 1327 | | #endif |
| | 1328 | |
|
| | 1329 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1330 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1331 | | public int CalculateSize() { |
| 0 | 1332 | | int size = 0; |
| 0 | 1333 | | if (texture_ != null) { |
| 0 | 1334 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Texture); |
| | 1335 | | } |
| 0 | 1336 | | if (HasAlphaTest) { |
| 0 | 1337 | | size += 1 + 4; |
| | 1338 | | } |
| 0 | 1339 | | if (HasCastShadows) { |
| 0 | 1340 | | size += 1 + 1; |
| | 1341 | | } |
| 0 | 1342 | | if (alphaTexture_ != null) { |
| 0 | 1343 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(AlphaTexture); |
| | 1344 | | } |
| 0 | 1345 | | if (emissiveTexture_ != null) { |
| 0 | 1346 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(EmissiveTexture); |
| | 1347 | | } |
| 0 | 1348 | | if (bumpTexture_ != null) { |
| 0 | 1349 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(BumpTexture); |
| | 1350 | | } |
| 0 | 1351 | | if (albedoColor_ != null) { |
| 0 | 1352 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(AlbedoColor); |
| | 1353 | | } |
| 0 | 1354 | | if (emissiveColor_ != null) { |
| 0 | 1355 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(EmissiveColor); |
| | 1356 | | } |
| 0 | 1357 | | if (reflectivityColor_ != null) { |
| 0 | 1358 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReflectivityColor); |
| | 1359 | | } |
| 0 | 1360 | | if (HasTransparencyMode) { |
| 0 | 1361 | | size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TransparencyMode); |
| | 1362 | | } |
| 0 | 1363 | | if (HasMetallic) { |
| 0 | 1364 | | size += 1 + 4; |
| | 1365 | | } |
| 0 | 1366 | | if (HasRoughness) { |
| 0 | 1367 | | size += 1 + 4; |
| | 1368 | | } |
| 0 | 1369 | | if (HasSpecularIntensity) { |
| 0 | 1370 | | size += 1 + 4; |
| | 1371 | | } |
| 0 | 1372 | | if (HasEmissiveIntensity) { |
| 0 | 1373 | | size += 1 + 4; |
| | 1374 | | } |
| 0 | 1375 | | if (HasDirectIntensity) { |
| 0 | 1376 | | size += 2 + 4; |
| | 1377 | | } |
| 0 | 1378 | | if (_unknownFields != null) { |
| 0 | 1379 | | size += _unknownFields.CalculateSize(); |
| | 1380 | | } |
| 0 | 1381 | | return size; |
| | 1382 | | } |
| | 1383 | |
|
| | 1384 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1385 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1386 | | public void MergeFrom(PbrMaterial other) { |
| 0 | 1387 | | if (other == null) { |
| 0 | 1388 | | return; |
| | 1389 | | } |
| 0 | 1390 | | if (other.texture_ != null) { |
| 0 | 1391 | | if (texture_ == null) { |
| 0 | 1392 | | Texture = new global::Decentraland.Common.TextureUnion(); |
| | 1393 | | } |
| 0 | 1394 | | Texture.MergeFrom(other.Texture); |
| | 1395 | | } |
| 0 | 1396 | | if (other.HasAlphaTest) { |
| 0 | 1397 | | AlphaTest = other.AlphaTest; |
| | 1398 | | } |
| 0 | 1399 | | if (other.HasCastShadows) { |
| 0 | 1400 | | CastShadows = other.CastShadows; |
| | 1401 | | } |
| 0 | 1402 | | if (other.alphaTexture_ != null) { |
| 0 | 1403 | | if (alphaTexture_ == null) { |
| 0 | 1404 | | AlphaTexture = new global::Decentraland.Common.TextureUnion(); |
| | 1405 | | } |
| 0 | 1406 | | AlphaTexture.MergeFrom(other.AlphaTexture); |
| | 1407 | | } |
| 0 | 1408 | | if (other.emissiveTexture_ != null) { |
| 0 | 1409 | | if (emissiveTexture_ == null) { |
| 0 | 1410 | | EmissiveTexture = new global::Decentraland.Common.TextureUnion(); |
| | 1411 | | } |
| 0 | 1412 | | EmissiveTexture.MergeFrom(other.EmissiveTexture); |
| | 1413 | | } |
| 0 | 1414 | | if (other.bumpTexture_ != null) { |
| 0 | 1415 | | if (bumpTexture_ == null) { |
| 0 | 1416 | | BumpTexture = new global::Decentraland.Common.TextureUnion(); |
| | 1417 | | } |
| 0 | 1418 | | BumpTexture.MergeFrom(other.BumpTexture); |
| | 1419 | | } |
| 0 | 1420 | | if (other.albedoColor_ != null) { |
| 0 | 1421 | | if (albedoColor_ == null) { |
| 0 | 1422 | | AlbedoColor = new global::Decentraland.Common.Color4(); |
| | 1423 | | } |
| 0 | 1424 | | AlbedoColor.MergeFrom(other.AlbedoColor); |
| | 1425 | | } |
| 0 | 1426 | | if (other.emissiveColor_ != null) { |
| 0 | 1427 | | if (emissiveColor_ == null) { |
| 0 | 1428 | | EmissiveColor = new global::Decentraland.Common.Color3(); |
| | 1429 | | } |
| 0 | 1430 | | EmissiveColor.MergeFrom(other.EmissiveColor); |
| | 1431 | | } |
| 0 | 1432 | | if (other.reflectivityColor_ != null) { |
| 0 | 1433 | | if (reflectivityColor_ == null) { |
| 0 | 1434 | | ReflectivityColor = new global::Decentraland.Common.Color3(); |
| | 1435 | | } |
| 0 | 1436 | | ReflectivityColor.MergeFrom(other.ReflectivityColor); |
| | 1437 | | } |
| 0 | 1438 | | if (other.HasTransparencyMode) { |
| 0 | 1439 | | TransparencyMode = other.TransparencyMode; |
| | 1440 | | } |
| 0 | 1441 | | if (other.HasMetallic) { |
| 0 | 1442 | | Metallic = other.Metallic; |
| | 1443 | | } |
| 0 | 1444 | | if (other.HasRoughness) { |
| 0 | 1445 | | Roughness = other.Roughness; |
| | 1446 | | } |
| 0 | 1447 | | if (other.HasSpecularIntensity) { |
| 0 | 1448 | | SpecularIntensity = other.SpecularIntensity; |
| | 1449 | | } |
| 0 | 1450 | | if (other.HasEmissiveIntensity) { |
| 0 | 1451 | | EmissiveIntensity = other.EmissiveIntensity; |
| | 1452 | | } |
| 0 | 1453 | | if (other.HasDirectIntensity) { |
| 0 | 1454 | | DirectIntensity = other.DirectIntensity; |
| | 1455 | | } |
| 0 | 1456 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 1457 | | } |
| | 1458 | |
|
| | 1459 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1460 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1461 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 1462 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 1463 | | input.ReadRawMessage(this); |
| | 1464 | | #else |
| | 1465 | | uint tag; |
| 0 | 1466 | | while ((tag = input.ReadTag()) != 0) { |
| | 1467 | | switch(tag) { |
| | 1468 | | default: |
| 0 | 1469 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 1470 | | break; |
| | 1471 | | case 10: { |
| 0 | 1472 | | if (texture_ == null) { |
| 0 | 1473 | | Texture = new global::Decentraland.Common.TextureUnion(); |
| | 1474 | | } |
| 0 | 1475 | | input.ReadMessage(Texture); |
| 0 | 1476 | | break; |
| | 1477 | | } |
| | 1478 | | case 21: { |
| 0 | 1479 | | AlphaTest = input.ReadFloat(); |
| 0 | 1480 | | break; |
| | 1481 | | } |
| | 1482 | | case 24: { |
| 0 | 1483 | | CastShadows = input.ReadBool(); |
| 0 | 1484 | | break; |
| | 1485 | | } |
| | 1486 | | case 34: { |
| 0 | 1487 | | if (alphaTexture_ == null) { |
| 0 | 1488 | | AlphaTexture = new global::Decentraland.Common.TextureUnion(); |
| | 1489 | | } |
| 0 | 1490 | | input.ReadMessage(AlphaTexture); |
| 0 | 1491 | | break; |
| | 1492 | | } |
| | 1493 | | case 42: { |
| 0 | 1494 | | if (emissiveTexture_ == null) { |
| 0 | 1495 | | EmissiveTexture = new global::Decentraland.Common.TextureUnion(); |
| | 1496 | | } |
| 0 | 1497 | | input.ReadMessage(EmissiveTexture); |
| 0 | 1498 | | break; |
| | 1499 | | } |
| | 1500 | | case 50: { |
| 0 | 1501 | | if (bumpTexture_ == null) { |
| 0 | 1502 | | BumpTexture = new global::Decentraland.Common.TextureUnion(); |
| | 1503 | | } |
| 0 | 1504 | | input.ReadMessage(BumpTexture); |
| 0 | 1505 | | break; |
| | 1506 | | } |
| | 1507 | | case 58: { |
| 0 | 1508 | | if (albedoColor_ == null) { |
| 0 | 1509 | | AlbedoColor = new global::Decentraland.Common.Color4(); |
| | 1510 | | } |
| 0 | 1511 | | input.ReadMessage(AlbedoColor); |
| 0 | 1512 | | break; |
| | 1513 | | } |
| | 1514 | | case 66: { |
| 0 | 1515 | | if (emissiveColor_ == null) { |
| 0 | 1516 | | EmissiveColor = new global::Decentraland.Common.Color3(); |
| | 1517 | | } |
| 0 | 1518 | | input.ReadMessage(EmissiveColor); |
| 0 | 1519 | | break; |
| | 1520 | | } |
| | 1521 | | case 74: { |
| 0 | 1522 | | if (reflectivityColor_ == null) { |
| 0 | 1523 | | ReflectivityColor = new global::Decentraland.Common.Color3(); |
| | 1524 | | } |
| 0 | 1525 | | input.ReadMessage(ReflectivityColor); |
| 0 | 1526 | | break; |
| | 1527 | | } |
| | 1528 | | case 80: { |
| 0 | 1529 | | TransparencyMode = (global::DCL.ECSComponents.MaterialTransparencyMode) input.ReadEnum(); |
| 0 | 1530 | | break; |
| | 1531 | | } |
| | 1532 | | case 93: { |
| 0 | 1533 | | Metallic = input.ReadFloat(); |
| 0 | 1534 | | break; |
| | 1535 | | } |
| | 1536 | | case 101: { |
| 0 | 1537 | | Roughness = input.ReadFloat(); |
| 0 | 1538 | | break; |
| | 1539 | | } |
| | 1540 | | case 117: { |
| 0 | 1541 | | SpecularIntensity = input.ReadFloat(); |
| 0 | 1542 | | break; |
| | 1543 | | } |
| | 1544 | | case 125: { |
| 0 | 1545 | | EmissiveIntensity = input.ReadFloat(); |
| 0 | 1546 | | break; |
| | 1547 | | } |
| | 1548 | | case 133: { |
| 0 | 1549 | | DirectIntensity = input.ReadFloat(); |
| | 1550 | | break; |
| | 1551 | | } |
| | 1552 | | } |
| | 1553 | | } |
| | 1554 | | #endif |
| 0 | 1555 | | } |
| | 1556 | |
|
| | 1557 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 1558 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1559 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1560 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 1561 | | uint tag; |
| | 1562 | | while ((tag = input.ReadTag()) != 0) { |
| | 1563 | | switch(tag) { |
| | 1564 | | default: |
| | 1565 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 1566 | | break; |
| | 1567 | | case 10: { |
| | 1568 | | if (texture_ == null) { |
| | 1569 | | Texture = new global::Decentraland.Common.TextureUnion(); |
| | 1570 | | } |
| | 1571 | | input.ReadMessage(Texture); |
| | 1572 | | break; |
| | 1573 | | } |
| | 1574 | | case 21: { |
| | 1575 | | AlphaTest = input.ReadFloat(); |
| | 1576 | | break; |
| | 1577 | | } |
| | 1578 | | case 24: { |
| | 1579 | | CastShadows = input.ReadBool(); |
| | 1580 | | break; |
| | 1581 | | } |
| | 1582 | | case 34: { |
| | 1583 | | if (alphaTexture_ == null) { |
| | 1584 | | AlphaTexture = new global::Decentraland.Common.TextureUnion(); |
| | 1585 | | } |
| | 1586 | | input.ReadMessage(AlphaTexture); |
| | 1587 | | break; |
| | 1588 | | } |
| | 1589 | | case 42: { |
| | 1590 | | if (emissiveTexture_ == null) { |
| | 1591 | | EmissiveTexture = new global::Decentraland.Common.TextureUnion(); |
| | 1592 | | } |
| | 1593 | | input.ReadMessage(EmissiveTexture); |
| | 1594 | | break; |
| | 1595 | | } |
| | 1596 | | case 50: { |
| | 1597 | | if (bumpTexture_ == null) { |
| | 1598 | | BumpTexture = new global::Decentraland.Common.TextureUnion(); |
| | 1599 | | } |
| | 1600 | | input.ReadMessage(BumpTexture); |
| | 1601 | | break; |
| | 1602 | | } |
| | 1603 | | case 58: { |
| | 1604 | | if (albedoColor_ == null) { |
| | 1605 | | AlbedoColor = new global::Decentraland.Common.Color4(); |
| | 1606 | | } |
| | 1607 | | input.ReadMessage(AlbedoColor); |
| | 1608 | | break; |
| | 1609 | | } |
| | 1610 | | case 66: { |
| | 1611 | | if (emissiveColor_ == null) { |
| | 1612 | | EmissiveColor = new global::Decentraland.Common.Color3(); |
| | 1613 | | } |
| | 1614 | | input.ReadMessage(EmissiveColor); |
| | 1615 | | break; |
| | 1616 | | } |
| | 1617 | | case 74: { |
| | 1618 | | if (reflectivityColor_ == null) { |
| | 1619 | | ReflectivityColor = new global::Decentraland.Common.Color3(); |
| | 1620 | | } |
| | 1621 | | input.ReadMessage(ReflectivityColor); |
| | 1622 | | break; |
| | 1623 | | } |
| | 1624 | | case 80: { |
| | 1625 | | TransparencyMode = (global::DCL.ECSComponents.MaterialTransparencyMode) input.ReadEnum(); |
| | 1626 | | break; |
| | 1627 | | } |
| | 1628 | | case 93: { |
| | 1629 | | Metallic = input.ReadFloat(); |
| | 1630 | | break; |
| | 1631 | | } |
| | 1632 | | case 101: { |
| | 1633 | | Roughness = input.ReadFloat(); |
| | 1634 | | break; |
| | 1635 | | } |
| | 1636 | | case 117: { |
| | 1637 | | SpecularIntensity = input.ReadFloat(); |
| | 1638 | | break; |
| | 1639 | | } |
| | 1640 | | case 125: { |
| | 1641 | | EmissiveIntensity = input.ReadFloat(); |
| | 1642 | | break; |
| | 1643 | | } |
| | 1644 | | case 133: { |
| | 1645 | | DirectIntensity = input.ReadFloat(); |
| | 1646 | | break; |
| | 1647 | | } |
| | 1648 | | } |
| | 1649 | | } |
| | 1650 | | } |
| | 1651 | | #endif |
| | 1652 | |
|
| | 1653 | | } |
| | 1654 | |
|
| | 1655 | | } |
| | 1656 | | #endregion |
| | 1657 | |
|
| | 1658 | | } |
| | 1659 | |
|
| | 1660 | | #endregion |
| | 1661 | |
|
| | 1662 | | } |
| | 1663 | |
|
| | 1664 | | #endregion Designer generated code |