< Summary

Class:DCL.ECSComponents.AnimatorReflection
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/Animator.gen.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:702
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:2
Method coverage:0% (0 of 2)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
AnimatorReflection()0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/Animator.gen.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/animator.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 decentraland/sdk/components/animator.proto</summary>
 15  public static partial class AnimatorReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/animator.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static AnimatorReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CipkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvYW5pbWF0b3IucHJvdG8S",
 28            "G2RlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cyJLCgpQQkFuaW1hdG9yEj0K",
 29            "BnN0YXRlcxgBIAMoCzItLmRlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cy5Q",
 30            "QkFuaW1hdGlvblN0YXRlIs4BChBQQkFuaW1hdGlvblN0YXRlEgwKBGNsaXAY",
 31            "AiABKAkSFAoHcGxheWluZxgDIAEoCEgAiAEBEhMKBndlaWdodBgEIAEoAkgB",
 32            "iAEBEhIKBXNwZWVkGAUgASgCSAKIAQESEQoEbG9vcBgGIAEoCEgDiAEBEhkK",
 33            "DHNob3VsZF9yZXNldBgHIAEoCEgEiAEBQgoKCF9wbGF5aW5nQgkKB193ZWln",
 34            "aHRCCAoGX3NwZWVkQgcKBV9sb29wQg8KDV9zaG91bGRfcmVzZXRKBAgBEAJC",
 35            "FKoCEURDTC5FQ1NDb21wb25lbnRzYgZwcm90bzM="));
 036      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 37          new pbr::FileDescriptor[] { },
 38          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 39            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBAnimator), global::DCL.ECSComponents.PBAnim
 40            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBAnimationState), global::DCL.ECSComponents.
 41          }));
 042    }
 43    #endregion
 44
 45  }
 46  #region Messages
 47  /// <summary>
 48  /// The Animator component is a container for multiple potential animations an Entity can display,
 49  /// separately or at the same time. It can be used to start, stop or blend animations; as well as
 50  /// to inspect their playback state.
 51  ///
 52  /// Animations have a `weight` property, which determines how pronounced the animation will be. This
 53  /// can be adjusted to blend animations together, or gracefully transition from one to the next.
 54  /// </summary>
 55  public sealed partial class PBAnimator : pb::IMessage<PBAnimator>
 56  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 57      , pb::IBufferMessage
 58  #endif
 59  {
 60    private static readonly pb::MessageParser<PBAnimator> _parser = new pb::MessageParser<PBAnimator>(() => new PBAnimat
 61    private pb::UnknownFieldSet _unknownFields;
 62    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 63    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 64    public static pb::MessageParser<PBAnimator> Parser { get { return _parser; } }
 65
 66    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 67    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 68    public static pbr::MessageDescriptor Descriptor {
 69      get { return global::DCL.ECSComponents.AnimatorReflection.Descriptor.MessageTypes[0]; }
 70    }
 71
 72    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 73    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 74    pbr::MessageDescriptor pb::IMessage.Descriptor {
 75      get { return Descriptor; }
 76    }
 77
 78    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 79    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 80    public PBAnimator() {
 81      OnConstruction();
 82    }
 83
 84    partial void OnConstruction();
 85
 86    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 87    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 88    public PBAnimator(PBAnimator other) : this() {
 89      states_ = other.states_.Clone();
 90      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 91    }
 92
 93    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 94    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 95    public PBAnimator Clone() {
 96      return new PBAnimator(this);
 97    }
 98
 99    /// <summary>Field number for the "states" field.</summary>
 100    public const int StatesFieldNumber = 1;
 101    private static readonly pb::FieldCodec<global::DCL.ECSComponents.PBAnimationState> _repeated_states_codec
 102        = pb::FieldCodec.ForMessage(10, global::DCL.ECSComponents.PBAnimationState.Parser);
 103    private readonly pbc::RepeatedField<global::DCL.ECSComponents.PBAnimationState> states_ = new pbc::RepeatedField<glo
 104    /// <summary>
 105    /// a collection of animations and their current state
 106    /// </summary>
 107    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 108    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 109    public pbc::RepeatedField<global::DCL.ECSComponents.PBAnimationState> States {
 110      get { return states_; }
 111    }
 112
 113    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 114    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 115    public override bool Equals(object other) {
 116      return Equals(other as PBAnimator);
 117    }
 118
 119    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 120    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 121    public bool Equals(PBAnimator other) {
 122      if (ReferenceEquals(other, null)) {
 123        return false;
 124      }
 125      if (ReferenceEquals(other, this)) {
 126        return true;
 127      }
 128      if(!states_.Equals(other.states_)) return false;
 129      return Equals(_unknownFields, other._unknownFields);
 130    }
 131
 132    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 133    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 134    public override int GetHashCode() {
 135      int hash = 1;
 136      hash ^= states_.GetHashCode();
 137      if (_unknownFields != null) {
 138        hash ^= _unknownFields.GetHashCode();
 139      }
 140      return hash;
 141    }
 142
 143    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 144    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 145    public override string ToString() {
 146      return pb::JsonFormatter.ToDiagnosticString(this);
 147    }
 148
 149    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 150    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 151    public void WriteTo(pb::CodedOutputStream output) {
 152    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 153      output.WriteRawMessage(this);
 154    #else
 155      states_.WriteTo(output, _repeated_states_codec);
 156      if (_unknownFields != null) {
 157        _unknownFields.WriteTo(output);
 158      }
 159    #endif
 160    }
 161
 162    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 163    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 164    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 165    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 166      states_.WriteTo(ref output, _repeated_states_codec);
 167      if (_unknownFields != null) {
 168        _unknownFields.WriteTo(ref output);
 169      }
 170    }
 171    #endif
 172
 173    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 174    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 175    public int CalculateSize() {
 176      int size = 0;
 177      size += states_.CalculateSize(_repeated_states_codec);
 178      if (_unknownFields != null) {
 179        size += _unknownFields.CalculateSize();
 180      }
 181      return size;
 182    }
 183
 184    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 185    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 186    public void MergeFrom(PBAnimator other) {
 187      if (other == null) {
 188        return;
 189      }
 190      states_.Add(other.states_);
 191      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 192    }
 193
 194    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 195    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 196    public void MergeFrom(pb::CodedInputStream input) {
 197    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 198      input.ReadRawMessage(this);
 199    #else
 200      uint tag;
 201      while ((tag = input.ReadTag()) != 0) {
 202        switch(tag) {
 203          default:
 204            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 205            break;
 206          case 10: {
 207            states_.AddEntriesFrom(input, _repeated_states_codec);
 208            break;
 209          }
 210        }
 211      }
 212    #endif
 213    }
 214
 215    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 216    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 217    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 218    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 219      uint tag;
 220      while ((tag = input.ReadTag()) != 0) {
 221        switch(tag) {
 222          default:
 223            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 224            break;
 225          case 10: {
 226            states_.AddEntriesFrom(ref input, _repeated_states_codec);
 227            break;
 228          }
 229        }
 230      }
 231    }
 232    #endif
 233
 234  }
 235
 236  /// <summary>
 237  /// AnimationState indicates the status and configuration of one available animation.
 238  /// </summary>
 239  public sealed partial class PBAnimationState : pb::IMessage<PBAnimationState>
 240  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 241      , pb::IBufferMessage
 242  #endif
 243  {
 244    private static readonly pb::MessageParser<PBAnimationState> _parser = new pb::MessageParser<PBAnimationState>(() => 
 245    private pb::UnknownFieldSet _unknownFields;
 246    private int _hasBits0;
 247    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 248    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 249    public static pb::MessageParser<PBAnimationState> Parser { get { return _parser; } }
 250
 251    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 252    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 253    public static pbr::MessageDescriptor Descriptor {
 254      get { return global::DCL.ECSComponents.AnimatorReflection.Descriptor.MessageTypes[1]; }
 255    }
 256
 257    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 258    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 259    pbr::MessageDescriptor pb::IMessage.Descriptor {
 260      get { return Descriptor; }
 261    }
 262
 263    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 264    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 265    public PBAnimationState() {
 266      OnConstruction();
 267    }
 268
 269    partial void OnConstruction();
 270
 271    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 272    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 273    public PBAnimationState(PBAnimationState other) : this() {
 274      _hasBits0 = other._hasBits0;
 275      clip_ = other.clip_;
 276      playing_ = other.playing_;
 277      weight_ = other.weight_;
 278      speed_ = other.speed_;
 279      loop_ = other.loop_;
 280      shouldReset_ = other.shouldReset_;
 281      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 282    }
 283
 284    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 285    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 286    public PBAnimationState Clone() {
 287      return new PBAnimationState(this);
 288    }
 289
 290    /// <summary>Field number for the "clip" field.</summary>
 291    public const int ClipFieldNumber = 2;
 292    private string clip_ = "";
 293    /// <summary>
 294    /// the animation path in the `files` array of the scene manifest
 295    /// </summary>
 296    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 297    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 298    public string Clip {
 299      get { return clip_; }
 300      set {
 301        clip_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 302      }
 303    }
 304
 305    /// <summary>Field number for the "playing" field.</summary>
 306    public const int PlayingFieldNumber = 3;
 307    private bool playing_;
 308    /// <summary>
 309    /// whether this animation is currently playing
 310    /// </summary>
 311    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 312    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 313    public bool Playing {
 314      get { if ((_hasBits0 & 1) != 0) { return playing_; } else { return false; } }
 315      set {
 316        _hasBits0 |= 1;
 317        playing_ = value;
 318      }
 319    }
 320    /// <summary>Gets whether the "playing" field is set</summary>
 321    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 322    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 323    public bool HasPlaying {
 324      get { return (_hasBits0 & 1) != 0; }
 325    }
 326    /// <summary>Clears the value of the "playing" field</summary>
 327    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 328    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 329    public void ClearPlaying() {
 330      _hasBits0 &= ~1;
 331    }
 332
 333    /// <summary>Field number for the "weight" field.</summary>
 334    public const int WeightFieldNumber = 4;
 335    private float weight_;
 336    /// <summary>
 337    /// @experimental the "weight" of this animation (see below, default: 1.0)
 338    /// </summary>
 339    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 340    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 341    public float Weight {
 342      get { if ((_hasBits0 & 2) != 0) { return weight_; } else { return 0F; } }
 343      set {
 344        _hasBits0 |= 2;
 345        weight_ = value;
 346      }
 347    }
 348    /// <summary>Gets whether the "weight" field is set</summary>
 349    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 350    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 351    public bool HasWeight {
 352      get { return (_hasBits0 & 2) != 0; }
 353    }
 354    /// <summary>Clears the value of the "weight" field</summary>
 355    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 356    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 357    public void ClearWeight() {
 358      _hasBits0 &= ~2;
 359    }
 360
 361    /// <summary>Field number for the "speed" field.</summary>
 362    public const int SpeedFieldNumber = 5;
 363    private float speed_;
 364    /// <summary>
 365    /// the playback speed (default: 1.0)
 366    /// </summary>
 367    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 368    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 369    public float Speed {
 370      get { if ((_hasBits0 & 4) != 0) { return speed_; } else { return 0F; } }
 371      set {
 372        _hasBits0 |= 4;
 373        speed_ = value;
 374      }
 375    }
 376    /// <summary>Gets whether the "speed" field is set</summary>
 377    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 378    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 379    public bool HasSpeed {
 380      get { return (_hasBits0 & 4) != 0; }
 381    }
 382    /// <summary>Clears the value of the "speed" field</summary>
 383    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 384    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 385    public void ClearSpeed() {
 386      _hasBits0 &= ~4;
 387    }
 388
 389    /// <summary>Field number for the "loop" field.</summary>
 390    public const int LoopFieldNumber = 6;
 391    private bool loop_;
 392    /// <summary>
 393    /// whether the animation repeats (**) until is manually stopped (default: true)
 394    /// </summary>
 395    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 396    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 397    public bool Loop {
 398      get { if ((_hasBits0 & 8) != 0) { return loop_; } else { return false; } }
 399      set {
 400        _hasBits0 |= 8;
 401        loop_ = value;
 402      }
 403    }
 404    /// <summary>Gets whether the "loop" field is set</summary>
 405    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 406    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 407    public bool HasLoop {
 408      get { return (_hasBits0 & 8) != 0; }
 409    }
 410    /// <summary>Clears the value of the "loop" field</summary>
 411    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 412    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 413    public void ClearLoop() {
 414      _hasBits0 &= ~8;
 415    }
 416
 417    /// <summary>Field number for the "should_reset" field.</summary>
 418    public const int ShouldResetFieldNumber = 7;
 419    private bool shouldReset_;
 420    /// <summary>
 421    /// whether the animation is restored to the initial state (*) when it changes from stopped to playing (default: fal
 422    /// </summary>
 423    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 424    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 425    public bool ShouldReset {
 426      get { if ((_hasBits0 & 16) != 0) { return shouldReset_; } else { return false; } }
 427      set {
 428        _hasBits0 |= 16;
 429        shouldReset_ = value;
 430      }
 431    }
 432    /// <summary>Gets whether the "should_reset" field is set</summary>
 433    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 434    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 435    public bool HasShouldReset {
 436      get { return (_hasBits0 & 16) != 0; }
 437    }
 438    /// <summary>Clears the value of the "should_reset" field</summary>
 439    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 440    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 441    public void ClearShouldReset() {
 442      _hasBits0 &= ~16;
 443    }
 444
 445    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 446    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 447    public override bool Equals(object other) {
 448      return Equals(other as PBAnimationState);
 449    }
 450
 451    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 452    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 453    public bool Equals(PBAnimationState other) {
 454      if (ReferenceEquals(other, null)) {
 455        return false;
 456      }
 457      if (ReferenceEquals(other, this)) {
 458        return true;
 459      }
 460      if (Clip != other.Clip) return false;
 461      if (Playing != other.Playing) return false;
 462      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Weight, other.Weight)) return false;
 463      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Speed, other.Speed)) return false;
 464      if (Loop != other.Loop) return false;
 465      if (ShouldReset != other.ShouldReset) return false;
 466      return Equals(_unknownFields, other._unknownFields);
 467    }
 468
 469    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 470    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 471    public override int GetHashCode() {
 472      int hash = 1;
 473      if (Clip.Length != 0) hash ^= Clip.GetHashCode();
 474      if (HasPlaying) hash ^= Playing.GetHashCode();
 475      if (HasWeight) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Weight);
 476      if (HasSpeed) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Speed);
 477      if (HasLoop) hash ^= Loop.GetHashCode();
 478      if (HasShouldReset) hash ^= ShouldReset.GetHashCode();
 479      if (_unknownFields != null) {
 480        hash ^= _unknownFields.GetHashCode();
 481      }
 482      return hash;
 483    }
 484
 485    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 486    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 487    public override string ToString() {
 488      return pb::JsonFormatter.ToDiagnosticString(this);
 489    }
 490
 491    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 492    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 493    public void WriteTo(pb::CodedOutputStream output) {
 494    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 495      output.WriteRawMessage(this);
 496    #else
 497      if (Clip.Length != 0) {
 498        output.WriteRawTag(18);
 499        output.WriteString(Clip);
 500      }
 501      if (HasPlaying) {
 502        output.WriteRawTag(24);
 503        output.WriteBool(Playing);
 504      }
 505      if (HasWeight) {
 506        output.WriteRawTag(37);
 507        output.WriteFloat(Weight);
 508      }
 509      if (HasSpeed) {
 510        output.WriteRawTag(45);
 511        output.WriteFloat(Speed);
 512      }
 513      if (HasLoop) {
 514        output.WriteRawTag(48);
 515        output.WriteBool(Loop);
 516      }
 517      if (HasShouldReset) {
 518        output.WriteRawTag(56);
 519        output.WriteBool(ShouldReset);
 520      }
 521      if (_unknownFields != null) {
 522        _unknownFields.WriteTo(output);
 523      }
 524    #endif
 525    }
 526
 527    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 528    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 529    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 530    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 531      if (Clip.Length != 0) {
 532        output.WriteRawTag(18);
 533        output.WriteString(Clip);
 534      }
 535      if (HasPlaying) {
 536        output.WriteRawTag(24);
 537        output.WriteBool(Playing);
 538      }
 539      if (HasWeight) {
 540        output.WriteRawTag(37);
 541        output.WriteFloat(Weight);
 542      }
 543      if (HasSpeed) {
 544        output.WriteRawTag(45);
 545        output.WriteFloat(Speed);
 546      }
 547      if (HasLoop) {
 548        output.WriteRawTag(48);
 549        output.WriteBool(Loop);
 550      }
 551      if (HasShouldReset) {
 552        output.WriteRawTag(56);
 553        output.WriteBool(ShouldReset);
 554      }
 555      if (_unknownFields != null) {
 556        _unknownFields.WriteTo(ref output);
 557      }
 558    }
 559    #endif
 560
 561    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 562    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 563    public int CalculateSize() {
 564      int size = 0;
 565      if (Clip.Length != 0) {
 566        size += 1 + pb::CodedOutputStream.ComputeStringSize(Clip);
 567      }
 568      if (HasPlaying) {
 569        size += 1 + 1;
 570      }
 571      if (HasWeight) {
 572        size += 1 + 4;
 573      }
 574      if (HasSpeed) {
 575        size += 1 + 4;
 576      }
 577      if (HasLoop) {
 578        size += 1 + 1;
 579      }
 580      if (HasShouldReset) {
 581        size += 1 + 1;
 582      }
 583      if (_unknownFields != null) {
 584        size += _unknownFields.CalculateSize();
 585      }
 586      return size;
 587    }
 588
 589    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 590    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 591    public void MergeFrom(PBAnimationState other) {
 592      if (other == null) {
 593        return;
 594      }
 595      if (other.Clip.Length != 0) {
 596        Clip = other.Clip;
 597      }
 598      if (other.HasPlaying) {
 599        Playing = other.Playing;
 600      }
 601      if (other.HasWeight) {
 602        Weight = other.Weight;
 603      }
 604      if (other.HasSpeed) {
 605        Speed = other.Speed;
 606      }
 607      if (other.HasLoop) {
 608        Loop = other.Loop;
 609      }
 610      if (other.HasShouldReset) {
 611        ShouldReset = other.ShouldReset;
 612      }
 613      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 614    }
 615
 616    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 617    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 618    public void MergeFrom(pb::CodedInputStream input) {
 619    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 620      input.ReadRawMessage(this);
 621    #else
 622      uint tag;
 623      while ((tag = input.ReadTag()) != 0) {
 624        switch(tag) {
 625          default:
 626            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 627            break;
 628          case 18: {
 629            Clip = input.ReadString();
 630            break;
 631          }
 632          case 24: {
 633            Playing = input.ReadBool();
 634            break;
 635          }
 636          case 37: {
 637            Weight = input.ReadFloat();
 638            break;
 639          }
 640          case 45: {
 641            Speed = input.ReadFloat();
 642            break;
 643          }
 644          case 48: {
 645            Loop = input.ReadBool();
 646            break;
 647          }
 648          case 56: {
 649            ShouldReset = input.ReadBool();
 650            break;
 651          }
 652        }
 653      }
 654    #endif
 655    }
 656
 657    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 658    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 659    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 660    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 661      uint tag;
 662      while ((tag = input.ReadTag()) != 0) {
 663        switch(tag) {
 664          default:
 665            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 666            break;
 667          case 18: {
 668            Clip = input.ReadString();
 669            break;
 670          }
 671          case 24: {
 672            Playing = input.ReadBool();
 673            break;
 674          }
 675          case 37: {
 676            Weight = input.ReadFloat();
 677            break;
 678          }
 679          case 45: {
 680            Speed = input.ReadFloat();
 681            break;
 682          }
 683          case 48: {
 684            Loop = input.ReadBool();
 685            break;
 686          }
 687          case 56: {
 688            ShouldReset = input.ReadBool();
 689            break;
 690          }
 691        }
 692      }
 693    }
 694    #endif
 695
 696  }
 697
 698  #endregion
 699
 700}
 701
 702#endregion Designer generated code

Methods/Properties

Descriptor()
AnimatorReflection()