< Summary

Class:DCL.ECSComponents.PBMaterial
Assembly:DCL.ECSComponents.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/Material.gen.cs
Covered lines:76
Uncovered lines:354
Coverable lines:430
Total lines:1378
Line coverage:17.6% (76 of 430)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBMaterial()0%110100%
get_Descriptor()0%2100%
PBMaterial()0%110100%
PBMaterial(...)0%15150100%
Clone()0%2100%
ClearAlphaTest()0%2100%
ClearCastShadows()0%2100%
ClearTransparencyMode()0%2100%
ClearMetallic()0%2100%
ClearRoughness()0%2100%
ClearGlossiness()0%2100%
ClearSpecularIntensity()0%2100%
ClearEmissiveIntensity()0%2100%
ClearDirectIntensity()0%2100%
Equals(...)0%2100%
Equals(...)0%54.0219054.05%
GetHashCode()0%3421800%
ToString()0%2100%
WriteTo(...)0%3421800%
CalculateSize()0%3421800%
MergeFrom(...)0%6502500%
MergeFrom(...)0%10563200%
Texture()0%110100%
get_Descriptor()0%2100%
Texture(...)0%110100%
Clone()0%110100%
Texture()0%110100%
ClearWrapMode()0%2100%
ClearFilterMode()0%2100%
Equals(...)0%110100%
Equals(...)0%7.736063.64%
GetHashCode()0%30500%
ToString()0%2100%
WriteTo(...)0%30500%
CalculateSize()0%30500%
MergeFrom(...)0%30500%
MergeFrom(...)0%30500%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/Material.gen.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: ecs/components/Material.proto
 4// </auto-generated>
 5#pragma warning disable 1591, 0612, 3021
 6#region Designer generated code
 7
 8using pb = global::Google.Protobuf;
 9using pbc = global::Google.Protobuf.Collections;
 10using pbr = global::Google.Protobuf.Reflection;
 11using scg = global::System.Collections.Generic;
 12namespace DCL.ECSComponents {
 13
 14  /// <summary>Holder for reflection information generated from ecs/components/Material.proto</summary>
 15  public static partial class MaterialReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for ecs/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            "Ch1lY3MvY29tcG9uZW50cy9NYXRlcmlhbC5wcm90bxIQZGVjZW50cmFsYW5k",
 28            "LmVjcxoiZWNzL2NvbXBvbmVudHMvY29tbW9uL0NvbG9yMy5wcm90byKICQoK",
 29            "UEJNYXRlcmlhbBI6Cgd0ZXh0dXJlGAEgASgLMiQuZGVjZW50cmFsYW5kLmVj",
 30            "cy5QQk1hdGVyaWFsLlRleHR1cmVIAIgBARIWCglhbHBoYVRlc3QYAiABKAJI",
 31            "AYgBARIYCgtjYXN0U2hhZG93cxgDIAEoCEgCiAEBEj8KDGFscGhhVGV4dHVy",
 32            "ZRgEIAEoCzIkLmRlY2VudHJhbGFuZC5lY3MuUEJNYXRlcmlhbC5UZXh0dXJl",
 33            "SAOIAQESQgoPZW1pc3NpdmVUZXh0dXJlGAUgASgLMiQuZGVjZW50cmFsYW5k",
 34            "LmVjcy5QQk1hdGVyaWFsLlRleHR1cmVIBIgBARI+CgtidW1wVGV4dHVyZRgG",
 35            "IAEoCzIkLmRlY2VudHJhbGFuZC5lY3MuUEJNYXRlcmlhbC5UZXh0dXJlSAWI",
 36            "AQESMgoLYWxiZWRvQ29sb3IYByABKAsyGC5kZWNlbnRyYWxhbmQuZWNzLkNv",
 37            "bG9yM0gGiAEBEjQKDWVtaXNzaXZlQ29sb3IYCCABKAsyGC5kZWNlbnRyYWxh",
 38            "bmQuZWNzLkNvbG9yM0gHiAEBEjgKEXJlZmxlY3Rpdml0eUNvbG9yGAkgASgL",
 39            "MhguZGVjZW50cmFsYW5kLmVjcy5Db2xvcjNICIgBARJBChB0cmFuc3BhcmVu",
 40            "Y3lNb2RlGAogASgOMiIuZGVjZW50cmFsYW5kLmVjcy5UcmFuc3BhcmVuY3lN",
 41            "b2RlSAmIAQESFQoIbWV0YWxsaWMYCyABKAJICogBARIWCglyb3VnaG5lc3MY",
 42            "DCABKAJIC4gBARIXCgpnbG9zc2luZXNzGA0gASgCSAyIAQESHgoRc3BlY3Vs",
 43            "YXJJbnRlbnNpdHkYDiABKAJIDYgBARIeChFlbWlzc2l2ZUludGVuc2l0eRgP",
 44            "IAEoAkgOiAEBEhwKD2RpcmVjdEludGVuc2l0eRgQIAEoAkgPiAEBGqMBCgdU",
 45            "ZXh0dXJlEgsKA3NyYxgBIAEoCRI4Cgh3cmFwTW9kZRgCIAEoDjIhLmRlY2Vu",
 46            "dHJhbGFuZC5lY3MuVGV4dHVyZVdyYXBNb2RlSACIAQESNQoKZmlsdGVyTW9k",
 47            "ZRgDIAEoDjIcLmRlY2VudHJhbGFuZC5lY3MuRmlsdGVyTW9kZUgBiAEBQgsK",
 48            "CV93cmFwTW9kZUINCgtfZmlsdGVyTW9kZUIKCghfdGV4dHVyZUIMCgpfYWxw",
 49            "aGFUZXN0Qg4KDF9jYXN0U2hhZG93c0IPCg1fYWxwaGFUZXh0dXJlQhIKEF9l",
 50            "bWlzc2l2ZVRleHR1cmVCDgoMX2J1bXBUZXh0dXJlQg4KDF9hbGJlZG9Db2xv",
 51            "ckIQCg5fZW1pc3NpdmVDb2xvckIUChJfcmVmbGVjdGl2aXR5Q29sb3JCEwoR",
 52            "X3RyYW5zcGFyZW5jeU1vZGVCCwoJX21ldGFsbGljQgwKCl9yb3VnaG5lc3NC",
 53            "DQoLX2dsb3NzaW5lc3NCFAoSX3NwZWN1bGFySW50ZW5zaXR5QhQKEl9lbWlz",
 54            "c2l2ZUludGVuc2l0eUISChBfZGlyZWN0SW50ZW5zaXR5KkQKD1RleHR1cmVX",
 55            "cmFwTW9kZRIKCgZSZXBlYXQQABIJCgVDbGFtcBABEgoKBk1pcnJvchACEg4K",
 56            "Ck1pcnJvck9uY2UQAyo0CgpGaWx0ZXJNb2RlEgkKBVBvaW50EAASDAoIQmls",
 57            "aW5lYXIQARINCglUcmlsaW5lYXIQAipjChBUcmFuc3BhcmVuY3lNb2RlEgoK",
 58            "Bk9wYXF1ZRAAEg0KCUFscGhhVGVzdBABEg4KCkFscGhhQmxlbmQQAhIaChZB",
 59            "bHBoYVRlc3RBbmRBbHBoYUJsZW5kEAMSCAoEQXV0bxAEQhSqAhFEQ0wuRUNT",
 60            "Q29tcG9uZW50c2IGcHJvdG8z"));
 61      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 62          new pbr::FileDescriptor[] { global::DCL.ECSComponents.Color3Reflection.Descriptor, },
 63          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::DCL.ECSComponents.TextureWrapMode), typeof(global::DCL.ECS
 64            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBMaterial), global::DCL.ECSComponents.PBMate
 65          }));
 66    }
 67    #endregion
 68
 69  }
 70  #region Enums
 71  public enum TextureWrapMode {
 72    [pbr::OriginalName("Repeat")] Repeat = 0,
 73    [pbr::OriginalName("Clamp")] Clamp = 1,
 74    [pbr::OriginalName("Mirror")] Mirror = 2,
 75    [pbr::OriginalName("MirrorOnce")] MirrorOnce = 3,
 76  }
 77
 78  public enum FilterMode {
 79    [pbr::OriginalName("Point")] Point = 0,
 80    [pbr::OriginalName("Bilinear")] Bilinear = 1,
 81    [pbr::OriginalName("Trilinear")] Trilinear = 2,
 82  }
 83
 84  public enum TransparencyMode {
 85    [pbr::OriginalName("Opaque")] Opaque = 0,
 86    [pbr::OriginalName("AlphaTest")] AlphaTest = 1,
 87    [pbr::OriginalName("AlphaBlend")] AlphaBlend = 2,
 88    [pbr::OriginalName("AlphaTestAndAlphaBlend")] AlphaTestAndAlphaBlend = 3,
 89    [pbr::OriginalName("Auto")] Auto = 4,
 90  }
 91
 92  #endregion
 93
 94  #region Messages
 95  public sealed partial class PBMaterial : pb::IMessage<PBMaterial>
 96  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 97      , pb::IBufferMessage
 98  #endif
 99  {
 1100    private static readonly pb::MessageParser<PBMaterial> _parser = new pb::MessageParser<PBMaterial>(() => new PBMateri
 101    private pb::UnknownFieldSet _unknownFields;
 102    private int _hasBits0;
 103    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 104    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0105    public static pb::MessageParser<PBMaterial> Parser { get { return _parser; } }
 106
 107    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 108    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 109    public static pbr::MessageDescriptor Descriptor {
 0110      get { return global::DCL.ECSComponents.MaterialReflection.Descriptor.MessageTypes[0]; }
 111    }
 112
 113    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 114    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 115    pbr::MessageDescriptor pb::IMessage.Descriptor {
 0116      get { return Descriptor; }
 117    }
 118
 119    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 120    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1121    public PBMaterial() {
 122      OnConstruction();
 1123    }
 124
 125    partial void OnConstruction();
 126
 127    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 128    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 4129    public PBMaterial(PBMaterial other) : this() {
 4130      _hasBits0 = other._hasBits0;
 4131      texture_ = other.texture_ != null ? other.texture_.Clone() : null;
 4132      alphaTest_ = other.alphaTest_;
 4133      castShadows_ = other.castShadows_;
 4134      alphaTexture_ = other.alphaTexture_ != null ? other.alphaTexture_.Clone() : null;
 4135      emissiveTexture_ = other.emissiveTexture_ != null ? other.emissiveTexture_.Clone() : null;
 4136      bumpTexture_ = other.bumpTexture_ != null ? other.bumpTexture_.Clone() : null;
 4137      albedoColor_ = other.albedoColor_ != null ? other.albedoColor_.Clone() : null;
 4138      emissiveColor_ = other.emissiveColor_ != null ? other.emissiveColor_.Clone() : null;
 4139      reflectivityColor_ = other.reflectivityColor_ != null ? other.reflectivityColor_.Clone() : null;
 4140      transparencyMode_ = other.transparencyMode_;
 4141      metallic_ = other.metallic_;
 4142      roughness_ = other.roughness_;
 4143      glossiness_ = other.glossiness_;
 4144      specularIntensity_ = other.specularIntensity_;
 4145      emissiveIntensity_ = other.emissiveIntensity_;
 4146      directIntensity_ = other.directIntensity_;
 4147      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 4148    }
 149
 150    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 151    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 152    public PBMaterial Clone() {
 0153      return new PBMaterial(this);
 154    }
 155
 156    /// <summary>Field number for the "texture" field.</summary>
 157    public const int TextureFieldNumber = 1;
 158    private global::DCL.ECSComponents.PBMaterial.Types.Texture texture_;
 159    /// <summary>
 160    /// default = null
 161    /// </summary>
 162    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 163    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 164    public global::DCL.ECSComponents.PBMaterial.Types.Texture Texture {
 1165      get { return texture_; }
 166      set {
 1167        texture_ = value;
 1168      }
 169    }
 170
 171    /// <summary>Field number for the "alphaTest" field.</summary>
 172    public const int AlphaTestFieldNumber = 2;
 173    private float alphaTest_;
 174    /// <summary>
 175    /// default = 0.5. range value: from 0 to 1
 176    /// </summary>
 177    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 178    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 179    public float AlphaTest {
 8180      get { if ((_hasBits0 & 1) != 0) { return alphaTest_; } else { return 0F; } }
 181      set {
 0182        _hasBits0 |= 1;
 0183        alphaTest_ = value;
 0184      }
 185    }
 186    /// <summary>Gets whether the "alphaTest" field is set</summary>
 187    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 188    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 189    public bool HasAlphaTest {
 0190      get { return (_hasBits0 & 1) != 0; }
 191    }
 192    /// <summary>Clears the value of the "alphaTest" field</summary>
 193    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 194    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 195    public void ClearAlphaTest() {
 0196      _hasBits0 &= ~1;
 0197    }
 198
 199    /// <summary>Field number for the "castShadows" field.</summary>
 200    public const int CastShadowsFieldNumber = 3;
 201    private bool castShadows_;
 202    /// <summary>
 203    /// default =  true
 204    /// </summary>
 205    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 206    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 207    public bool CastShadows {
 0208      get { if ((_hasBits0 & 2) != 0) { return castShadows_; } else { return false; } }
 209      set {
 0210        _hasBits0 |= 2;
 0211        castShadows_ = value;
 0212      }
 213    }
 214    /// <summary>Gets whether the "castShadows" field is set</summary>
 215    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 216    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 217    public bool HasCastShadows {
 0218      get { return (_hasBits0 & 2) != 0; }
 219    }
 220    /// <summary>Clears the value of the "castShadows" field</summary>
 221    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 222    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 223    public void ClearCastShadows() {
 0224      _hasBits0 &= ~2;
 0225    }
 226
 227    /// <summary>Field number for the "alphaTexture" field.</summary>
 228    public const int AlphaTextureFieldNumber = 4;
 229    private global::DCL.ECSComponents.PBMaterial.Types.Texture alphaTexture_;
 230    /// <summary>
 231    /// default = null
 232    /// </summary>
 233    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 234    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 235    public global::DCL.ECSComponents.PBMaterial.Types.Texture AlphaTexture {
 0236      get { return alphaTexture_; }
 237      set {
 0238        alphaTexture_ = value;
 0239      }
 240    }
 241
 242    /// <summary>Field number for the "emissiveTexture" field.</summary>
 243    public const int EmissiveTextureFieldNumber = 5;
 244    private global::DCL.ECSComponents.PBMaterial.Types.Texture emissiveTexture_;
 245    /// <summary>
 246    /// default = null
 247    /// </summary>
 248    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 249    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 250    public global::DCL.ECSComponents.PBMaterial.Types.Texture EmissiveTexture {
 0251      get { return emissiveTexture_; }
 252      set {
 0253        emissiveTexture_ = value;
 0254      }
 255    }
 256
 257    /// <summary>Field number for the "bumpTexture" field.</summary>
 258    public const int BumpTextureFieldNumber = 6;
 259    private global::DCL.ECSComponents.PBMaterial.Types.Texture bumpTexture_;
 260    /// <summary>
 261    /// default = null
 262    /// </summary>
 263    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 264    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 265    public global::DCL.ECSComponents.PBMaterial.Types.Texture BumpTexture {
 0266      get { return bumpTexture_; }
 267      set {
 0268        bumpTexture_ = value;
 0269      }
 270    }
 271
 272    /// <summary>Field number for the "albedoColor" field.</summary>
 273    public const int AlbedoColorFieldNumber = 7;
 274    private global::DCL.ECSComponents.Color3 albedoColor_;
 275    /// <summary>
 276    /// default = white;
 277    /// </summary>
 278    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 279    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 280    public global::DCL.ECSComponents.Color3 AlbedoColor {
 0281      get { return albedoColor_; }
 282      set {
 0283        albedoColor_ = value;
 0284      }
 285    }
 286
 287    /// <summary>Field number for the "emissiveColor" field.</summary>
 288    public const int EmissiveColorFieldNumber = 8;
 289    private global::DCL.ECSComponents.Color3 emissiveColor_;
 290    /// <summary>
 291    /// default = black;
 292    /// </summary>
 293    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 294    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 295    public global::DCL.ECSComponents.Color3 EmissiveColor {
 0296      get { return emissiveColor_; }
 297      set {
 0298        emissiveColor_ = value;
 0299      }
 300    }
 301
 302    /// <summary>Field number for the "reflectivityColor" field.</summary>
 303    public const int ReflectivityColorFieldNumber = 9;
 304    private global::DCL.ECSComponents.Color3 reflectivityColor_;
 305    /// <summary>
 306    /// default = white;
 307    /// </summary>
 308    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 309    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 310    public global::DCL.ECSComponents.Color3 ReflectivityColor {
 0311      get { return reflectivityColor_; }
 312      set {
 0313        reflectivityColor_ = value;
 0314      }
 315    }
 316
 317    /// <summary>Field number for the "transparencyMode" field.</summary>
 318    public const int TransparencyModeFieldNumber = 10;
 319    private global::DCL.ECSComponents.TransparencyMode transparencyMode_;
 320    /// <summary>
 321    /// default = TransparencyMode.Auto
 322    /// </summary>
 323    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 324    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 325    public global::DCL.ECSComponents.TransparencyMode TransparencyMode {
 0326      get { if ((_hasBits0 & 4) != 0) { return transparencyMode_; } else { return global::DCL.ECSComponents.Transparency
 327      set {
 0328        _hasBits0 |= 4;
 0329        transparencyMode_ = value;
 0330      }
 331    }
 332    /// <summary>Gets whether the "transparencyMode" field is set</summary>
 333    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 334    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 335    public bool HasTransparencyMode {
 0336      get { return (_hasBits0 & 4) != 0; }
 337    }
 338    /// <summary>Clears the value of the "transparencyMode" field</summary>
 339    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 340    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 341    public void ClearTransparencyMode() {
 0342      _hasBits0 &= ~4;
 0343    }
 344
 345    /// <summary>Field number for the "metallic" field.</summary>
 346    public const int MetallicFieldNumber = 11;
 347    private float metallic_;
 348    /// <summary>
 349    /// default = 0.5
 350    /// </summary>
 351    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 352    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 353    public float Metallic {
 8354      get { if ((_hasBits0 & 8) != 0) { return metallic_; } else { return 0F; } }
 355      set {
 0356        _hasBits0 |= 8;
 0357        metallic_ = value;
 0358      }
 359    }
 360    /// <summary>Gets whether the "metallic" field is set</summary>
 361    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 362    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 363    public bool HasMetallic {
 0364      get { return (_hasBits0 & 8) != 0; }
 365    }
 366    /// <summary>Clears the value of the "metallic" field</summary>
 367    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 368    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 369    public void ClearMetallic() {
 0370      _hasBits0 &= ~8;
 0371    }
 372
 373    /// <summary>Field number for the "roughness" field.</summary>
 374    public const int RoughnessFieldNumber = 12;
 375    private float roughness_;
 376    /// <summary>
 377    /// default = 0.5
 378    /// </summary>
 379    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 380    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 381    public float Roughness {
 8382      get { if ((_hasBits0 & 16) != 0) { return roughness_; } else { return 0F; } }
 383      set {
 0384        _hasBits0 |= 16;
 0385        roughness_ = value;
 0386      }
 387    }
 388    /// <summary>Gets whether the "roughness" field is set</summary>
 389    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 390    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 391    public bool HasRoughness {
 0392      get { return (_hasBits0 & 16) != 0; }
 393    }
 394    /// <summary>Clears the value of the "roughness" field</summary>
 395    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 396    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 397    public void ClearRoughness() {
 0398      _hasBits0 &= ~16;
 0399    }
 400
 401    /// <summary>Field number for the "glossiness" field.</summary>
 402    public const int GlossinessFieldNumber = 13;
 403    private float glossiness_;
 404    /// <summary>
 405    /// default = 1
 406    /// </summary>
 407    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 408    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 409    public float Glossiness {
 8410      get { if ((_hasBits0 & 32) != 0) { return glossiness_; } else { return 0F; } }
 411      set {
 0412        _hasBits0 |= 32;
 0413        glossiness_ = value;
 0414      }
 415    }
 416    /// <summary>Gets whether the "glossiness" field is set</summary>
 417    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 418    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 419    public bool HasGlossiness {
 0420      get { return (_hasBits0 & 32) != 0; }
 421    }
 422    /// <summary>Clears the value of the "glossiness" field</summary>
 423    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 424    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 425    public void ClearGlossiness() {
 0426      _hasBits0 &= ~32;
 0427    }
 428
 429    /// <summary>Field number for the "specularIntensity" field.</summary>
 430    public const int SpecularIntensityFieldNumber = 14;
 431    private float specularIntensity_;
 432    /// <summary>
 433    /// default = 1
 434    /// </summary>
 435    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 436    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 437    public float SpecularIntensity {
 8438      get { if ((_hasBits0 & 64) != 0) { return specularIntensity_; } else { return 0F; } }
 439      set {
 0440        _hasBits0 |= 64;
 0441        specularIntensity_ = value;
 0442      }
 443    }
 444    /// <summary>Gets whether the "specularIntensity" field is set</summary>
 445    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 446    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 447    public bool HasSpecularIntensity {
 0448      get { return (_hasBits0 & 64) != 0; }
 449    }
 450    /// <summary>Clears the value of the "specularIntensity" field</summary>
 451    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 452    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 453    public void ClearSpecularIntensity() {
 0454      _hasBits0 &= ~64;
 0455    }
 456
 457    /// <summary>Field number for the "emissiveIntensity" field.</summary>
 458    public const int EmissiveIntensityFieldNumber = 15;
 459    private float emissiveIntensity_;
 460    /// <summary>
 461    /// default = 2
 462    /// </summary>
 463    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 464    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 465    public float EmissiveIntensity {
 8466      get { if ((_hasBits0 & 128) != 0) { return emissiveIntensity_; } else { return 0F; } }
 467      set {
 0468        _hasBits0 |= 128;
 0469        emissiveIntensity_ = value;
 0470      }
 471    }
 472    /// <summary>Gets whether the "emissiveIntensity" field is set</summary>
 473    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 474    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 475    public bool HasEmissiveIntensity {
 0476      get { return (_hasBits0 & 128) != 0; }
 477    }
 478    /// <summary>Clears the value of the "emissiveIntensity" field</summary>
 479    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 480    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 481    public void ClearEmissiveIntensity() {
 0482      _hasBits0 &= ~128;
 0483    }
 484
 485    /// <summary>Field number for the "directIntensity" field.</summary>
 486    public const int DirectIntensityFieldNumber = 16;
 487    private float directIntensity_;
 488    /// <summary>
 489    /// default = 1
 490    /// </summary>
 491    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 492    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 493    public float DirectIntensity {
 8494      get { if ((_hasBits0 & 256) != 0) { return directIntensity_; } else { return 0F; } }
 495      set {
 0496        _hasBits0 |= 256;
 0497        directIntensity_ = value;
 0498      }
 499    }
 500    /// <summary>Gets whether the "directIntensity" field is set</summary>
 501    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 502    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 503    public bool HasDirectIntensity {
 0504      get { return (_hasBits0 & 256) != 0; }
 505    }
 506    /// <summary>Clears the value of the "directIntensity" field</summary>
 507    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 508    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 509    public void ClearDirectIntensity() {
 0510      _hasBits0 &= ~256;
 0511    }
 512
 513    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 514    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 515    public override bool Equals(object other) {
 0516      return Equals(other as PBMaterial);
 517    }
 518
 519    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 520    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 521    public bool Equals(PBMaterial other) {
 4522      if (ReferenceEquals(other, null)) {
 0523        return false;
 524      }
 4525      if (ReferenceEquals(other, this)) {
 0526        return true;
 527      }
 6528      if (!object.Equals(Texture, other.Texture)) return false;
 2529      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(AlphaTest, other.AlphaTest)) return false
 2530      if (CastShadows != other.CastShadows) return false;
 2531      if (!object.Equals(AlphaTexture, other.AlphaTexture)) return false;
 2532      if (!object.Equals(EmissiveTexture, other.EmissiveTexture)) return false;
 2533      if (!object.Equals(BumpTexture, other.BumpTexture)) return false;
 2534      if (!object.Equals(AlbedoColor, other.AlbedoColor)) return false;
 2535      if (!object.Equals(EmissiveColor, other.EmissiveColor)) return false;
 2536      if (!object.Equals(ReflectivityColor, other.ReflectivityColor)) return false;
 2537      if (TransparencyMode != other.TransparencyMode) return false;
 2538      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Metallic, other.Metallic)) return false;
 2539      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Roughness, other.Roughness)) return false
 2540      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Glossiness, other.Glossiness)) return fal
 2541      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(SpecularIntensity, other.SpecularIntensit
 2542      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(EmissiveIntensity, other.EmissiveIntensit
 2543      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DirectIntensity, other.DirectIntensity)) 
 2544      return Equals(_unknownFields, other._unknownFields);
 545    }
 546
 547    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 548    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 549    public override int GetHashCode() {
 0550      int hash = 1;
 0551      if (texture_ != null) hash ^= Texture.GetHashCode();
 0552      if (HasAlphaTest) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(AlphaTest);
 0553      if (HasCastShadows) hash ^= CastShadows.GetHashCode();
 0554      if (alphaTexture_ != null) hash ^= AlphaTexture.GetHashCode();
 0555      if (emissiveTexture_ != null) hash ^= EmissiveTexture.GetHashCode();
 0556      if (bumpTexture_ != null) hash ^= BumpTexture.GetHashCode();
 0557      if (albedoColor_ != null) hash ^= AlbedoColor.GetHashCode();
 0558      if (emissiveColor_ != null) hash ^= EmissiveColor.GetHashCode();
 0559      if (reflectivityColor_ != null) hash ^= ReflectivityColor.GetHashCode();
 0560      if (HasTransparencyMode) hash ^= TransparencyMode.GetHashCode();
 0561      if (HasMetallic) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Metallic);
 0562      if (HasRoughness) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Roughness);
 0563      if (HasGlossiness) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Glossiness);
 0564      if (HasSpecularIntensity) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Specula
 0565      if (HasEmissiveIntensity) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Emissiv
 0566      if (HasDirectIntensity) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DirectInt
 0567      if (_unknownFields != null) {
 0568        hash ^= _unknownFields.GetHashCode();
 569      }
 0570      return hash;
 571    }
 572
 573    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 574    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 575    public override string ToString() {
 0576      return pb::JsonFormatter.ToDiagnosticString(this);
 577    }
 578
 579    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 580    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 581    public void WriteTo(pb::CodedOutputStream output) {
 582    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 583      output.WriteRawMessage(this);
 584    #else
 0585      if (texture_ != null) {
 0586        output.WriteRawTag(10);
 0587        output.WriteMessage(Texture);
 588      }
 0589      if (HasAlphaTest) {
 0590        output.WriteRawTag(21);
 0591        output.WriteFloat(AlphaTest);
 592      }
 0593      if (HasCastShadows) {
 0594        output.WriteRawTag(24);
 0595        output.WriteBool(CastShadows);
 596      }
 0597      if (alphaTexture_ != null) {
 0598        output.WriteRawTag(34);
 0599        output.WriteMessage(AlphaTexture);
 600      }
 0601      if (emissiveTexture_ != null) {
 0602        output.WriteRawTag(42);
 0603        output.WriteMessage(EmissiveTexture);
 604      }
 0605      if (bumpTexture_ != null) {
 0606        output.WriteRawTag(50);
 0607        output.WriteMessage(BumpTexture);
 608      }
 0609      if (albedoColor_ != null) {
 0610        output.WriteRawTag(58);
 0611        output.WriteMessage(AlbedoColor);
 612      }
 0613      if (emissiveColor_ != null) {
 0614        output.WriteRawTag(66);
 0615        output.WriteMessage(EmissiveColor);
 616      }
 0617      if (reflectivityColor_ != null) {
 0618        output.WriteRawTag(74);
 0619        output.WriteMessage(ReflectivityColor);
 620      }
 0621      if (HasTransparencyMode) {
 0622        output.WriteRawTag(80);
 0623        output.WriteEnum((int) TransparencyMode);
 624      }
 0625      if (HasMetallic) {
 0626        output.WriteRawTag(93);
 0627        output.WriteFloat(Metallic);
 628      }
 0629      if (HasRoughness) {
 0630        output.WriteRawTag(101);
 0631        output.WriteFloat(Roughness);
 632      }
 0633      if (HasGlossiness) {
 0634        output.WriteRawTag(109);
 0635        output.WriteFloat(Glossiness);
 636      }
 0637      if (HasSpecularIntensity) {
 0638        output.WriteRawTag(117);
 0639        output.WriteFloat(SpecularIntensity);
 640      }
 0641      if (HasEmissiveIntensity) {
 0642        output.WriteRawTag(125);
 0643        output.WriteFloat(EmissiveIntensity);
 644      }
 0645      if (HasDirectIntensity) {
 0646        output.WriteRawTag(133, 1);
 0647        output.WriteFloat(DirectIntensity);
 648      }
 0649      if (_unknownFields != null) {
 0650        _unknownFields.WriteTo(output);
 651      }
 652    #endif
 0653    }
 654
 655    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 656    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 657    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 658    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 659      if (texture_ != null) {
 660        output.WriteRawTag(10);
 661        output.WriteMessage(Texture);
 662      }
 663      if (HasAlphaTest) {
 664        output.WriteRawTag(21);
 665        output.WriteFloat(AlphaTest);
 666      }
 667      if (HasCastShadows) {
 668        output.WriteRawTag(24);
 669        output.WriteBool(CastShadows);
 670      }
 671      if (alphaTexture_ != null) {
 672        output.WriteRawTag(34);
 673        output.WriteMessage(AlphaTexture);
 674      }
 675      if (emissiveTexture_ != null) {
 676        output.WriteRawTag(42);
 677        output.WriteMessage(EmissiveTexture);
 678      }
 679      if (bumpTexture_ != null) {
 680        output.WriteRawTag(50);
 681        output.WriteMessage(BumpTexture);
 682      }
 683      if (albedoColor_ != null) {
 684        output.WriteRawTag(58);
 685        output.WriteMessage(AlbedoColor);
 686      }
 687      if (emissiveColor_ != null) {
 688        output.WriteRawTag(66);
 689        output.WriteMessage(EmissiveColor);
 690      }
 691      if (reflectivityColor_ != null) {
 692        output.WriteRawTag(74);
 693        output.WriteMessage(ReflectivityColor);
 694      }
 695      if (HasTransparencyMode) {
 696        output.WriteRawTag(80);
 697        output.WriteEnum((int) TransparencyMode);
 698      }
 699      if (HasMetallic) {
 700        output.WriteRawTag(93);
 701        output.WriteFloat(Metallic);
 702      }
 703      if (HasRoughness) {
 704        output.WriteRawTag(101);
 705        output.WriteFloat(Roughness);
 706      }
 707      if (HasGlossiness) {
 708        output.WriteRawTag(109);
 709        output.WriteFloat(Glossiness);
 710      }
 711      if (HasSpecularIntensity) {
 712        output.WriteRawTag(117);
 713        output.WriteFloat(SpecularIntensity);
 714      }
 715      if (HasEmissiveIntensity) {
 716        output.WriteRawTag(125);
 717        output.WriteFloat(EmissiveIntensity);
 718      }
 719      if (HasDirectIntensity) {
 720        output.WriteRawTag(133, 1);
 721        output.WriteFloat(DirectIntensity);
 722      }
 723      if (_unknownFields != null) {
 724        _unknownFields.WriteTo(ref output);
 725      }
 726    }
 727    #endif
 728
 729    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 730    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 731    public int CalculateSize() {
 0732      int size = 0;
 0733      if (texture_ != null) {
 0734        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Texture);
 735      }
 0736      if (HasAlphaTest) {
 0737        size += 1 + 4;
 738      }
 0739      if (HasCastShadows) {
 0740        size += 1 + 1;
 741      }
 0742      if (alphaTexture_ != null) {
 0743        size += 1 + pb::CodedOutputStream.ComputeMessageSize(AlphaTexture);
 744      }
 0745      if (emissiveTexture_ != null) {
 0746        size += 1 + pb::CodedOutputStream.ComputeMessageSize(EmissiveTexture);
 747      }
 0748      if (bumpTexture_ != null) {
 0749        size += 1 + pb::CodedOutputStream.ComputeMessageSize(BumpTexture);
 750      }
 0751      if (albedoColor_ != null) {
 0752        size += 1 + pb::CodedOutputStream.ComputeMessageSize(AlbedoColor);
 753      }
 0754      if (emissiveColor_ != null) {
 0755        size += 1 + pb::CodedOutputStream.ComputeMessageSize(EmissiveColor);
 756      }
 0757      if (reflectivityColor_ != null) {
 0758        size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReflectivityColor);
 759      }
 0760      if (HasTransparencyMode) {
 0761        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TransparencyMode);
 762      }
 0763      if (HasMetallic) {
 0764        size += 1 + 4;
 765      }
 0766      if (HasRoughness) {
 0767        size += 1 + 4;
 768      }
 0769      if (HasGlossiness) {
 0770        size += 1 + 4;
 771      }
 0772      if (HasSpecularIntensity) {
 0773        size += 1 + 4;
 774      }
 0775      if (HasEmissiveIntensity) {
 0776        size += 1 + 4;
 777      }
 0778      if (HasDirectIntensity) {
 0779        size += 2 + 4;
 780      }
 0781      if (_unknownFields != null) {
 0782        size += _unknownFields.CalculateSize();
 783      }
 0784      return size;
 785    }
 786
 787    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 788    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 789    public void MergeFrom(PBMaterial other) {
 0790      if (other == null) {
 0791        return;
 792      }
 0793      if (other.texture_ != null) {
 0794        if (texture_ == null) {
 0795          Texture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 796        }
 0797        Texture.MergeFrom(other.Texture);
 798      }
 0799      if (other.HasAlphaTest) {
 0800        AlphaTest = other.AlphaTest;
 801      }
 0802      if (other.HasCastShadows) {
 0803        CastShadows = other.CastShadows;
 804      }
 0805      if (other.alphaTexture_ != null) {
 0806        if (alphaTexture_ == null) {
 0807          AlphaTexture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 808        }
 0809        AlphaTexture.MergeFrom(other.AlphaTexture);
 810      }
 0811      if (other.emissiveTexture_ != null) {
 0812        if (emissiveTexture_ == null) {
 0813          EmissiveTexture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 814        }
 0815        EmissiveTexture.MergeFrom(other.EmissiveTexture);
 816      }
 0817      if (other.bumpTexture_ != null) {
 0818        if (bumpTexture_ == null) {
 0819          BumpTexture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 820        }
 0821        BumpTexture.MergeFrom(other.BumpTexture);
 822      }
 0823      if (other.albedoColor_ != null) {
 0824        if (albedoColor_ == null) {
 0825          AlbedoColor = new global::DCL.ECSComponents.Color3();
 826        }
 0827        AlbedoColor.MergeFrom(other.AlbedoColor);
 828      }
 0829      if (other.emissiveColor_ != null) {
 0830        if (emissiveColor_ == null) {
 0831          EmissiveColor = new global::DCL.ECSComponents.Color3();
 832        }
 0833        EmissiveColor.MergeFrom(other.EmissiveColor);
 834      }
 0835      if (other.reflectivityColor_ != null) {
 0836        if (reflectivityColor_ == null) {
 0837          ReflectivityColor = new global::DCL.ECSComponents.Color3();
 838        }
 0839        ReflectivityColor.MergeFrom(other.ReflectivityColor);
 840      }
 0841      if (other.HasTransparencyMode) {
 0842        TransparencyMode = other.TransparencyMode;
 843      }
 0844      if (other.HasMetallic) {
 0845        Metallic = other.Metallic;
 846      }
 0847      if (other.HasRoughness) {
 0848        Roughness = other.Roughness;
 849      }
 0850      if (other.HasGlossiness) {
 0851        Glossiness = other.Glossiness;
 852      }
 0853      if (other.HasSpecularIntensity) {
 0854        SpecularIntensity = other.SpecularIntensity;
 855      }
 0856      if (other.HasEmissiveIntensity) {
 0857        EmissiveIntensity = other.EmissiveIntensity;
 858      }
 0859      if (other.HasDirectIntensity) {
 0860        DirectIntensity = other.DirectIntensity;
 861      }
 0862      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0863    }
 864
 865    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 866    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 867    public void MergeFrom(pb::CodedInputStream input) {
 868    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 869      input.ReadRawMessage(this);
 870    #else
 871      uint tag;
 0872      while ((tag = input.ReadTag()) != 0) {
 873        switch(tag) {
 874          default:
 0875            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0876            break;
 877          case 10: {
 0878            if (texture_ == null) {
 0879              Texture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 880            }
 0881            input.ReadMessage(Texture);
 0882            break;
 883          }
 884          case 21: {
 0885            AlphaTest = input.ReadFloat();
 0886            break;
 887          }
 888          case 24: {
 0889            CastShadows = input.ReadBool();
 0890            break;
 891          }
 892          case 34: {
 0893            if (alphaTexture_ == null) {
 0894              AlphaTexture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 895            }
 0896            input.ReadMessage(AlphaTexture);
 0897            break;
 898          }
 899          case 42: {
 0900            if (emissiveTexture_ == null) {
 0901              EmissiveTexture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 902            }
 0903            input.ReadMessage(EmissiveTexture);
 0904            break;
 905          }
 906          case 50: {
 0907            if (bumpTexture_ == null) {
 0908              BumpTexture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 909            }
 0910            input.ReadMessage(BumpTexture);
 0911            break;
 912          }
 913          case 58: {
 0914            if (albedoColor_ == null) {
 0915              AlbedoColor = new global::DCL.ECSComponents.Color3();
 916            }
 0917            input.ReadMessage(AlbedoColor);
 0918            break;
 919          }
 920          case 66: {
 0921            if (emissiveColor_ == null) {
 0922              EmissiveColor = new global::DCL.ECSComponents.Color3();
 923            }
 0924            input.ReadMessage(EmissiveColor);
 0925            break;
 926          }
 927          case 74: {
 0928            if (reflectivityColor_ == null) {
 0929              ReflectivityColor = new global::DCL.ECSComponents.Color3();
 930            }
 0931            input.ReadMessage(ReflectivityColor);
 0932            break;
 933          }
 934          case 80: {
 0935            TransparencyMode = (global::DCL.ECSComponents.TransparencyMode) input.ReadEnum();
 0936            break;
 937          }
 938          case 93: {
 0939            Metallic = input.ReadFloat();
 0940            break;
 941          }
 942          case 101: {
 0943            Roughness = input.ReadFloat();
 0944            break;
 945          }
 946          case 109: {
 0947            Glossiness = input.ReadFloat();
 0948            break;
 949          }
 950          case 117: {
 0951            SpecularIntensity = input.ReadFloat();
 0952            break;
 953          }
 954          case 125: {
 0955            EmissiveIntensity = input.ReadFloat();
 0956            break;
 957          }
 958          case 133: {
 0959            DirectIntensity = input.ReadFloat();
 960            break;
 961          }
 962        }
 963      }
 964    #endif
 0965    }
 966
 967    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 968    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 969    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 970    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 971      uint tag;
 972      while ((tag = input.ReadTag()) != 0) {
 973        switch(tag) {
 974          default:
 975            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 976            break;
 977          case 10: {
 978            if (texture_ == null) {
 979              Texture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 980            }
 981            input.ReadMessage(Texture);
 982            break;
 983          }
 984          case 21: {
 985            AlphaTest = input.ReadFloat();
 986            break;
 987          }
 988          case 24: {
 989            CastShadows = input.ReadBool();
 990            break;
 991          }
 992          case 34: {
 993            if (alphaTexture_ == null) {
 994              AlphaTexture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 995            }
 996            input.ReadMessage(AlphaTexture);
 997            break;
 998          }
 999          case 42: {
 1000            if (emissiveTexture_ == null) {
 1001              EmissiveTexture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 1002            }
 1003            input.ReadMessage(EmissiveTexture);
 1004            break;
 1005          }
 1006          case 50: {
 1007            if (bumpTexture_ == null) {
 1008              BumpTexture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 1009            }
 1010            input.ReadMessage(BumpTexture);
 1011            break;
 1012          }
 1013          case 58: {
 1014            if (albedoColor_ == null) {
 1015              AlbedoColor = new global::DCL.ECSComponents.Color3();
 1016            }
 1017            input.ReadMessage(AlbedoColor);
 1018            break;
 1019          }
 1020          case 66: {
 1021            if (emissiveColor_ == null) {
 1022              EmissiveColor = new global::DCL.ECSComponents.Color3();
 1023            }
 1024            input.ReadMessage(EmissiveColor);
 1025            break;
 1026          }
 1027          case 74: {
 1028            if (reflectivityColor_ == null) {
 1029              ReflectivityColor = new global::DCL.ECSComponents.Color3();
 1030            }
 1031            input.ReadMessage(ReflectivityColor);
 1032            break;
 1033          }
 1034          case 80: {
 1035            TransparencyMode = (global::DCL.ECSComponents.TransparencyMode) input.ReadEnum();
 1036            break;
 1037          }
 1038          case 93: {
 1039            Metallic = input.ReadFloat();
 1040            break;
 1041          }
 1042          case 101: {
 1043            Roughness = input.ReadFloat();
 1044            break;
 1045          }
 1046          case 109: {
 1047            Glossiness = input.ReadFloat();
 1048            break;
 1049          }
 1050          case 117: {
 1051            SpecularIntensity = input.ReadFloat();
 1052            break;
 1053          }
 1054          case 125: {
 1055            EmissiveIntensity = input.ReadFloat();
 1056            break;
 1057          }
 1058          case 133: {
 1059            DirectIntensity = input.ReadFloat();
 1060            break;
 1061          }
 1062        }
 1063      }
 1064    }
 1065    #endif
 1066
 1067    #region Nested types
 1068    /// <summary>Container for nested types declared in the PBMaterial message type.</summary>
 1069    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1070    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1071    public static partial class Types {
 1072      public sealed partial class Texture : pb::IMessage<Texture>
 1073      #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 1074          , pb::IBufferMessage
 1075      #endif
 1076      {
 11077        private static readonly pb::MessageParser<Texture> _parser = new pb::MessageParser<Texture>(() => new Texture())
 1078        private pb::UnknownFieldSet _unknownFields;
 1079        private int _hasBits0;
 1080        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1081        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 01082        public static pb::MessageParser<Texture> Parser { get { return _parser; } }
 1083
 1084        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1085        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1086        public static pbr::MessageDescriptor Descriptor {
 01087          get { return global::DCL.ECSComponents.PBMaterial.Descriptor.NestedTypes[0]; }
 1088        }
 1089
 1090        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1091        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1092        pbr::MessageDescriptor pb::IMessage.Descriptor {
 01093          get { return Descriptor; }
 1094        }
 1095
 1096        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1097        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 11098        public Texture() {
 1099          OnConstruction();
 11100        }
 1101
 1102        partial void OnConstruction();
 1103
 1104        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1105        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 41106        public Texture(Texture other) : this() {
 41107          _hasBits0 = other._hasBits0;
 41108          src_ = other.src_;
 41109          wrapMode_ = other.wrapMode_;
 41110          filterMode_ = other.filterMode_;
 41111          _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 41112        }
 1113
 1114        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1115        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1116        public Texture Clone() {
 41117          return new Texture(this);
 1118        }
 1119
 1120        /// <summary>Field number for the "src" field.</summary>
 1121        public const int SrcFieldNumber = 1;
 11122        private string src_ = "";
 1123        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1124        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1125        public string Src {
 01126          get { return src_; }
 1127          set {
 11128            src_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 11129          }
 1130        }
 1131
 1132        /// <summary>Field number for the "wrapMode" field.</summary>
 1133        public const int WrapModeFieldNumber = 2;
 1134        private global::DCL.ECSComponents.TextureWrapMode wrapMode_;
 1135        /// <summary>
 1136        /// default = TextureWrapMode.Clamp
 1137        /// </summary>
 1138        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1139        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1140        public global::DCL.ECSComponents.TextureWrapMode WrapMode {
 01141          get { if ((_hasBits0 & 1) != 0) { return wrapMode_; } else { return global::DCL.ECSComponents.TextureWrapMode.
 1142          set {
 21143            _hasBits0 |= 1;
 21144            wrapMode_ = value;
 21145          }
 1146        }
 1147        /// <summary>Gets whether the "wrapMode" field is set</summary>
 1148        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1149        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1150        public bool HasWrapMode {
 01151          get { return (_hasBits0 & 1) != 0; }
 1152        }
 1153        /// <summary>Clears the value of the "wrapMode" field</summary>
 1154        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1155        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1156        public void ClearWrapMode() {
 01157          _hasBits0 &= ~1;
 01158        }
 1159
 1160        /// <summary>Field number for the "filterMode" field.</summary>
 1161        public const int FilterModeFieldNumber = 3;
 1162        private global::DCL.ECSComponents.FilterMode filterMode_;
 1163        /// <summary>
 1164        /// default = FilterMode.Bilinear
 1165        /// </summary>
 1166        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1167        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1168        public global::DCL.ECSComponents.FilterMode FilterMode {
 01169          get { if ((_hasBits0 & 2) != 0) { return filterMode_; } else { return global::DCL.ECSComponents.FilterMode.Poi
 1170          set {
 01171            _hasBits0 |= 2;
 01172            filterMode_ = value;
 01173          }
 1174        }
 1175        /// <summary>Gets whether the "filterMode" field is set</summary>
 1176        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1177        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1178        public bool HasFilterMode {
 01179          get { return (_hasBits0 & 2) != 0; }
 1180        }
 1181        /// <summary>Clears the value of the "filterMode" field</summary>
 1182        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1183        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1184        public void ClearFilterMode() {
 01185          _hasBits0 &= ~2;
 01186        }
 1187
 1188        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1189        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1190        public override bool Equals(object other) {
 41191          return Equals(other as Texture);
 1192        }
 1193
 1194        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1195        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1196        public bool Equals(Texture other) {
 41197          if (ReferenceEquals(other, null)) {
 01198            return false;
 1199          }
 41200          if (ReferenceEquals(other, this)) {
 01201            return true;
 1202          }
 41203          if (Src != other.Src) return false;
 61204          if (WrapMode != other.WrapMode) return false;
 21205          if (FilterMode != other.FilterMode) return false;
 21206          return Equals(_unknownFields, other._unknownFields);
 1207        }
 1208
 1209        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1210        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1211        public override int GetHashCode() {
 01212          int hash = 1;
 01213          if (Src.Length != 0) hash ^= Src.GetHashCode();
 01214          if (HasWrapMode) hash ^= WrapMode.GetHashCode();
 01215          if (HasFilterMode) hash ^= FilterMode.GetHashCode();
 01216          if (_unknownFields != null) {
 01217            hash ^= _unknownFields.GetHashCode();
 1218          }
 01219          return hash;
 1220        }
 1221
 1222        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1223        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1224        public override string ToString() {
 01225          return pb::JsonFormatter.ToDiagnosticString(this);
 1226        }
 1227
 1228        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1229        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1230        public void WriteTo(pb::CodedOutputStream output) {
 1231        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 1232          output.WriteRawMessage(this);
 1233        #else
 01234          if (Src.Length != 0) {
 01235            output.WriteRawTag(10);
 01236            output.WriteString(Src);
 1237          }
 01238          if (HasWrapMode) {
 01239            output.WriteRawTag(16);
 01240            output.WriteEnum((int) WrapMode);
 1241          }
 01242          if (HasFilterMode) {
 01243            output.WriteRawTag(24);
 01244            output.WriteEnum((int) FilterMode);
 1245          }
 01246          if (_unknownFields != null) {
 01247            _unknownFields.WriteTo(output);
 1248          }
 1249        #endif
 01250        }
 1251
 1252        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 1253        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1254        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1255        void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 1256          if (Src.Length != 0) {
 1257            output.WriteRawTag(10);
 1258            output.WriteString(Src);
 1259          }
 1260          if (HasWrapMode) {
 1261            output.WriteRawTag(16);
 1262            output.WriteEnum((int) WrapMode);
 1263          }
 1264          if (HasFilterMode) {
 1265            output.WriteRawTag(24);
 1266            output.WriteEnum((int) FilterMode);
 1267          }
 1268          if (_unknownFields != null) {
 1269            _unknownFields.WriteTo(ref output);
 1270          }
 1271        }
 1272        #endif
 1273
 1274        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1275        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1276        public int CalculateSize() {
 01277          int size = 0;
 01278          if (Src.Length != 0) {
 01279            size += 1 + pb::CodedOutputStream.ComputeStringSize(Src);
 1280          }
 01281          if (HasWrapMode) {
 01282            size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) WrapMode);
 1283          }
 01284          if (HasFilterMode) {
 01285            size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FilterMode);
 1286          }
 01287          if (_unknownFields != null) {
 01288            size += _unknownFields.CalculateSize();
 1289          }
 01290          return size;
 1291        }
 1292
 1293        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1294        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1295        public void MergeFrom(Texture other) {
 01296          if (other == null) {
 01297            return;
 1298          }
 01299          if (other.Src.Length != 0) {
 01300            Src = other.Src;
 1301          }
 01302          if (other.HasWrapMode) {
 01303            WrapMode = other.WrapMode;
 1304          }
 01305          if (other.HasFilterMode) {
 01306            FilterMode = other.FilterMode;
 1307          }
 01308          _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 01309        }
 1310
 1311        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1312        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1313        public void MergeFrom(pb::CodedInputStream input) {
 1314        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 1315          input.ReadRawMessage(this);
 1316        #else
 1317          uint tag;
 01318          while ((tag = input.ReadTag()) != 0) {
 1319            switch(tag) {
 1320              default:
 01321                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 01322                break;
 1323              case 10: {
 01324                Src = input.ReadString();
 01325                break;
 1326              }
 1327              case 16: {
 01328                WrapMode = (global::DCL.ECSComponents.TextureWrapMode) input.ReadEnum();
 01329                break;
 1330              }
 1331              case 24: {
 01332                FilterMode = (global::DCL.ECSComponents.FilterMode) input.ReadEnum();
 1333                break;
 1334              }
 1335            }
 1336          }
 1337        #endif
 01338        }
 1339
 1340        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 1341        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1342        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1343        void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 1344          uint tag;
 1345          while ((tag = input.ReadTag()) != 0) {
 1346            switch(tag) {
 1347              default:
 1348                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 1349                break;
 1350              case 10: {
 1351                Src = input.ReadString();
 1352                break;
 1353              }
 1354              case 16: {
 1355                WrapMode = (global::DCL.ECSComponents.TextureWrapMode) input.ReadEnum();
 1356                break;
 1357              }
 1358              case 24: {
 1359                FilterMode = (global::DCL.ECSComponents.FilterMode) input.ReadEnum();
 1360                break;
 1361              }
 1362            }
 1363          }
 1364        }
 1365        #endif
 1366
 1367      }
 1368
 1369    }
 1370    #endregion
 1371
 1372  }
 1373
 1374  #endregion
 1375
 1376}
 1377
 1378#endregion Designer generated code

Methods/Properties

PBMaterial()
Parser()
Descriptor()
get_Descriptor()
PBMaterial()
PBMaterial(DCL.ECSComponents.PBMaterial)
Clone()
Texture()
Texture(DCL.ECSComponents.PBMaterial/Types/Texture)
AlphaTest()
AlphaTest(System.Single)
HasAlphaTest()
ClearAlphaTest()
CastShadows()
CastShadows(System.Boolean)
HasCastShadows()
ClearCastShadows()
AlphaTexture()
AlphaTexture(DCL.ECSComponents.PBMaterial/Types/Texture)
EmissiveTexture()
EmissiveTexture(DCL.ECSComponents.PBMaterial/Types/Texture)
BumpTexture()
BumpTexture(DCL.ECSComponents.PBMaterial/Types/Texture)
AlbedoColor()
AlbedoColor(DCL.ECSComponents.Color3)
EmissiveColor()
EmissiveColor(DCL.ECSComponents.Color3)
ReflectivityColor()
ReflectivityColor(DCL.ECSComponents.Color3)
TransparencyMode()
TransparencyMode(DCL.ECSComponents.TransparencyMode)
HasTransparencyMode()
ClearTransparencyMode()
Metallic()
Metallic(System.Single)
HasMetallic()
ClearMetallic()
Roughness()
Roughness(System.Single)
HasRoughness()
ClearRoughness()
Glossiness()
Glossiness(System.Single)
HasGlossiness()
ClearGlossiness()
SpecularIntensity()
SpecularIntensity(System.Single)
HasSpecularIntensity()
ClearSpecularIntensity()
EmissiveIntensity()
EmissiveIntensity(System.Single)
HasEmissiveIntensity()
ClearEmissiveIntensity()
DirectIntensity()
DirectIntensity(System.Single)
HasDirectIntensity()
ClearDirectIntensity()
Equals(System.Object)
Equals(DCL.ECSComponents.PBMaterial)
GetHashCode()
ToString()
WriteTo(Google.Protobuf.CodedOutputStream)
CalculateSize()
MergeFrom(DCL.ECSComponents.PBMaterial)
MergeFrom(Google.Protobuf.CodedInputStream)
Texture()
Parser()
Descriptor()
get_Descriptor()
Texture()
Texture(DCL.ECSComponents.PBMaterial/Types/Texture)
Clone()
Src()
Src(System.String)
WrapMode()
WrapMode(DCL.ECSComponents.TextureWrapMode)
HasWrapMode()
ClearWrapMode()
FilterMode()
FilterMode(DCL.ECSComponents.FilterMode)
HasFilterMode()
ClearFilterMode()
Equals(System.Object)
Equals(DCL.ECSComponents.PBMaterial/Types/Texture)
GetHashCode()
ToString()
WriteTo(Google.Protobuf.CodedOutputStream)
CalculateSize()
MergeFrom(DCL.ECSComponents.PBMaterial/Types/Texture)
MergeFrom(Google.Protobuf.CodedInputStream)