| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: Animator.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 Animator.proto</summary> |
| | 15 | | public static partial class AnimatorReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for Animator.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static AnimatorReflection() { |
| | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "Cg5BbmltYXRvci5wcm90bxIQZGVjZW50cmFsYW5kLmVjcyJACgpQQkFuaW1h", |
| | 28 | | "dG9yEjIKBnN0YXRlcxgBIAMoCzIiLmRlY2VudHJhbGFuZC5lY3MuUEJBbmlt", |
| | 29 | | "YXRpb25TdGF0ZSKCAQoQUEJBbmltYXRpb25TdGF0ZRIMCgRuYW1lGAEgASgJ", |
| | 30 | | "EgwKBGNsaXAYAiABKAkSDwoHcGxheWluZxgDIAEoCBIOCgZ3ZWlnaHQYBCAB", |
| | 31 | | "KAISDQoFc3BlZWQYBSABKAISDAoEbG9vcBgGIAEoCBIUCgxzaG91bGRfcmVz", |
| | 32 | | "ZXQYByABKAhCFKoCEURDTC5FQ1NDb21wb25lbnRzYgZwcm90bzM=")); |
| | 33 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 34 | | new pbr::FileDescriptor[] { }, |
| | 35 | | new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
| | 36 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBAnimator), global::DCL.ECSComponents.PBAnim |
| | 37 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBAnimationState), global::DCL.ECSComponents. |
| | 38 | | })); |
| | 39 | | } |
| | 40 | | #endregion |
| | 41 | |
|
| | 42 | | } |
| | 43 | | #region Messages |
| | 44 | | public sealed partial class PBAnimator : pb::IMessage<PBAnimator> { |
| 2 | 45 | | private static readonly pb::MessageParser<PBAnimator> _parser = new pb::MessageParser<PBAnimator>(() => new PBAnimat |
| | 46 | | private pb::UnknownFieldSet _unknownFields; |
| | 47 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 0 | 48 | | public static pb::MessageParser<PBAnimator> Parser { get { return _parser; } } |
| | 49 | |
|
| | 50 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 51 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 52 | | get { return global::DCL.ECSComponents.AnimatorReflection.Descriptor.MessageTypes[0]; } |
| | 53 | | } |
| | 54 | |
|
| | 55 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 56 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 57 | | get { return Descriptor; } |
| | 58 | | } |
| | 59 | |
|
| | 60 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 3 | 61 | | public PBAnimator() { |
| | 62 | | OnConstruction(); |
| 3 | 63 | | } |
| | 64 | |
|
| | 65 | | partial void OnConstruction(); |
| | 66 | |
|
| | 67 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 0 | 68 | | public PBAnimator(PBAnimator other) : this() { |
| 0 | 69 | | states_ = other.states_.Clone(); |
| 0 | 70 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 0 | 71 | | } |
| | 72 | |
|
| | 73 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 74 | | public PBAnimator Clone() { |
| 0 | 75 | | return new PBAnimator(this); |
| | 76 | | } |
| | 77 | |
|
| | 78 | | /// <summary>Field number for the "states" field.</summary> |
| | 79 | | public const int StatesFieldNumber = 1; |
| 1 | 80 | | private static readonly pb::FieldCodec<global::DCL.ECSComponents.PBAnimationState> _repeated_states_codec |
| | 81 | | = pb::FieldCodec.ForMessage(10, global::DCL.ECSComponents.PBAnimationState.Parser); |
| 3 | 82 | | private readonly pbc::RepeatedField<global::DCL.ECSComponents.PBAnimationState> states_ = new pbc::RepeatedField<glo |
| | 83 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 84 | | public pbc::RepeatedField<global::DCL.ECSComponents.PBAnimationState> States { |
| 3 | 85 | | get { return states_; } |
| | 86 | | } |
| | 87 | |
|
| | 88 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 89 | | public override bool Equals(object other) { |
| 0 | 90 | | return Equals(other as PBAnimator); |
| | 91 | | } |
| | 92 | |
|
| | 93 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 94 | | public bool Equals(PBAnimator other) { |
| 0 | 95 | | if (ReferenceEquals(other, null)) { |
| 0 | 96 | | return false; |
| | 97 | | } |
| 0 | 98 | | if (ReferenceEquals(other, this)) { |
| 0 | 99 | | return true; |
| | 100 | | } |
| 0 | 101 | | if(!states_.Equals(other.states_)) return false; |
| 0 | 102 | | return Equals(_unknownFields, other._unknownFields); |
| | 103 | | } |
| | 104 | |
|
| | 105 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 106 | | public override int GetHashCode() { |
| 0 | 107 | | int hash = 1; |
| 0 | 108 | | hash ^= states_.GetHashCode(); |
| 0 | 109 | | if (_unknownFields != null) { |
| 0 | 110 | | hash ^= _unknownFields.GetHashCode(); |
| | 111 | | } |
| 0 | 112 | | return hash; |
| | 113 | | } |
| | 114 | |
|
| | 115 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 116 | | public override string ToString() { |
| 0 | 117 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 118 | | } |
| | 119 | |
|
| | 120 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 121 | | public void WriteTo(pb::CodedOutputStream output) { |
| 2 | 122 | | states_.WriteTo(output, _repeated_states_codec); |
| 2 | 123 | | if (_unknownFields != null) { |
| 0 | 124 | | _unknownFields.WriteTo(output); |
| | 125 | | } |
| 2 | 126 | | } |
| | 127 | |
|
| | 128 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 129 | | public int CalculateSize() { |
| 0 | 130 | | int size = 0; |
| 0 | 131 | | size += states_.CalculateSize(_repeated_states_codec); |
| 0 | 132 | | if (_unknownFields != null) { |
| 0 | 133 | | size += _unknownFields.CalculateSize(); |
| | 134 | | } |
| 0 | 135 | | return size; |
| | 136 | | } |
| | 137 | |
|
| | 138 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 139 | | public void MergeFrom(PBAnimator other) { |
| 0 | 140 | | if (other == null) { |
| 0 | 141 | | return; |
| | 142 | | } |
| 0 | 143 | | states_.Add(other.states_); |
| 0 | 144 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 145 | | } |
| | 146 | |
|
| | 147 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 148 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 149 | | uint tag; |
| 2 | 150 | | while ((tag = input.ReadTag()) != 0) { |
| | 151 | | switch(tag) { |
| | 152 | | default: |
| 0 | 153 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 154 | | break; |
| | 155 | | case 10: { |
| 1 | 156 | | states_.AddEntriesFrom(input, _repeated_states_codec); |
| | 157 | | break; |
| | 158 | | } |
| | 159 | | } |
| | 160 | | } |
| 1 | 161 | | } |
| | 162 | |
|
| | 163 | | } |
| | 164 | |
|
| | 165 | | public sealed partial class PBAnimationState : pb::IMessage<PBAnimationState> { |
| | 166 | | private static readonly pb::MessageParser<PBAnimationState> _parser = new pb::MessageParser<PBAnimationState>(() => |
| | 167 | | private pb::UnknownFieldSet _unknownFields; |
| | 168 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 169 | | public static pb::MessageParser<PBAnimationState> Parser { get { return _parser; } } |
| | 170 | |
|
| | 171 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 172 | | public static pbr::MessageDescriptor Descriptor { |
| | 173 | | get { return global::DCL.ECSComponents.AnimatorReflection.Descriptor.MessageTypes[1]; } |
| | 174 | | } |
| | 175 | |
|
| | 176 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 177 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| | 178 | | get { return Descriptor; } |
| | 179 | | } |
| | 180 | |
|
| | 181 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 182 | | public PBAnimationState() { |
| | 183 | | OnConstruction(); |
| | 184 | | } |
| | 185 | |
|
| | 186 | | partial void OnConstruction(); |
| | 187 | |
|
| | 188 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 189 | | public PBAnimationState(PBAnimationState other) : this() { |
| | 190 | | name_ = other.name_; |
| | 191 | | clip_ = other.clip_; |
| | 192 | | playing_ = other.playing_; |
| | 193 | | weight_ = other.weight_; |
| | 194 | | speed_ = other.speed_; |
| | 195 | | loop_ = other.loop_; |
| | 196 | | shouldReset_ = other.shouldReset_; |
| | 197 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| | 198 | | } |
| | 199 | |
|
| | 200 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 201 | | public PBAnimationState Clone() { |
| | 202 | | return new PBAnimationState(this); |
| | 203 | | } |
| | 204 | |
|
| | 205 | | /// <summary>Field number for the "name" field.</summary> |
| | 206 | | public const int NameFieldNumber = 1; |
| | 207 | | private string name_ = ""; |
| | 208 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 209 | | public string Name { |
| | 210 | | get { return name_; } |
| | 211 | | set { |
| | 212 | | name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| | 213 | | } |
| | 214 | | } |
| | 215 | |
|
| | 216 | | /// <summary>Field number for the "clip" field.</summary> |
| | 217 | | public const int ClipFieldNumber = 2; |
| | 218 | | private string clip_ = ""; |
| | 219 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 220 | | public string Clip { |
| | 221 | | get { return clip_; } |
| | 222 | | set { |
| | 223 | | clip_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| | 224 | | } |
| | 225 | | } |
| | 226 | |
|
| | 227 | | /// <summary>Field number for the "playing" field.</summary> |
| | 228 | | public const int PlayingFieldNumber = 3; |
| | 229 | | private bool playing_; |
| | 230 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 231 | | public bool Playing { |
| | 232 | | get { return playing_; } |
| | 233 | | set { |
| | 234 | | playing_ = value; |
| | 235 | | } |
| | 236 | | } |
| | 237 | |
|
| | 238 | | /// <summary>Field number for the "weight" field.</summary> |
| | 239 | | public const int WeightFieldNumber = 4; |
| | 240 | | private float weight_; |
| | 241 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 242 | | public float Weight { |
| | 243 | | get { return weight_; } |
| | 244 | | set { |
| | 245 | | weight_ = value; |
| | 246 | | } |
| | 247 | | } |
| | 248 | |
|
| | 249 | | /// <summary>Field number for the "speed" field.</summary> |
| | 250 | | public const int SpeedFieldNumber = 5; |
| | 251 | | private float speed_; |
| | 252 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 253 | | public float Speed { |
| | 254 | | get { return speed_; } |
| | 255 | | set { |
| | 256 | | speed_ = value; |
| | 257 | | } |
| | 258 | | } |
| | 259 | |
|
| | 260 | | /// <summary>Field number for the "loop" field.</summary> |
| | 261 | | public const int LoopFieldNumber = 6; |
| | 262 | | private bool loop_; |
| | 263 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 264 | | public bool Loop { |
| | 265 | | get { return loop_; } |
| | 266 | | set { |
| | 267 | | loop_ = value; |
| | 268 | | } |
| | 269 | | } |
| | 270 | |
|
| | 271 | | /// <summary>Field number for the "should_reset" field.</summary> |
| | 272 | | public const int ShouldResetFieldNumber = 7; |
| | 273 | | private bool shouldReset_; |
| | 274 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 275 | | public bool ShouldReset { |
| | 276 | | get { return shouldReset_; } |
| | 277 | | set { |
| | 278 | | shouldReset_ = value; |
| | 279 | | } |
| | 280 | | } |
| | 281 | |
|
| | 282 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 283 | | public override bool Equals(object other) { |
| | 284 | | return Equals(other as PBAnimationState); |
| | 285 | | } |
| | 286 | |
|
| | 287 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 288 | | public bool Equals(PBAnimationState other) { |
| | 289 | | if (ReferenceEquals(other, null)) { |
| | 290 | | return false; |
| | 291 | | } |
| | 292 | | if (ReferenceEquals(other, this)) { |
| | 293 | | return true; |
| | 294 | | } |
| | 295 | | if (Name != other.Name) return false; |
| | 296 | | if (Clip != other.Clip) return false; |
| | 297 | | if (Playing != other.Playing) return false; |
| | 298 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Weight, other.Weight)) return false; |
| | 299 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Speed, other.Speed)) return false; |
| | 300 | | if (Loop != other.Loop) return false; |
| | 301 | | if (ShouldReset != other.ShouldReset) return false; |
| | 302 | | return Equals(_unknownFields, other._unknownFields); |
| | 303 | | } |
| | 304 | |
|
| | 305 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 306 | | public override int GetHashCode() { |
| | 307 | | int hash = 1; |
| | 308 | | if (Name.Length != 0) hash ^= Name.GetHashCode(); |
| | 309 | | if (Clip.Length != 0) hash ^= Clip.GetHashCode(); |
| | 310 | | if (Playing != false) hash ^= Playing.GetHashCode(); |
| | 311 | | if (Weight != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Weight); |
| | 312 | | if (Speed != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Speed); |
| | 313 | | if (Loop != false) hash ^= Loop.GetHashCode(); |
| | 314 | | if (ShouldReset != false) hash ^= ShouldReset.GetHashCode(); |
| | 315 | | if (_unknownFields != null) { |
| | 316 | | hash ^= _unknownFields.GetHashCode(); |
| | 317 | | } |
| | 318 | | return hash; |
| | 319 | | } |
| | 320 | |
|
| | 321 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 322 | | public override string ToString() { |
| | 323 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 324 | | } |
| | 325 | |
|
| | 326 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 327 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 328 | | if (Name.Length != 0) { |
| | 329 | | output.WriteRawTag(10); |
| | 330 | | output.WriteString(Name); |
| | 331 | | } |
| | 332 | | if (Clip.Length != 0) { |
| | 333 | | output.WriteRawTag(18); |
| | 334 | | output.WriteString(Clip); |
| | 335 | | } |
| | 336 | | if (Playing != false) { |
| | 337 | | output.WriteRawTag(24); |
| | 338 | | output.WriteBool(Playing); |
| | 339 | | } |
| | 340 | | if (Weight != 0F) { |
| | 341 | | output.WriteRawTag(37); |
| | 342 | | output.WriteFloat(Weight); |
| | 343 | | } |
| | 344 | | if (Speed != 0F) { |
| | 345 | | output.WriteRawTag(45); |
| | 346 | | output.WriteFloat(Speed); |
| | 347 | | } |
| | 348 | | if (Loop != false) { |
| | 349 | | output.WriteRawTag(48); |
| | 350 | | output.WriteBool(Loop); |
| | 351 | | } |
| | 352 | | if (ShouldReset != false) { |
| | 353 | | output.WriteRawTag(56); |
| | 354 | | output.WriteBool(ShouldReset); |
| | 355 | | } |
| | 356 | | if (_unknownFields != null) { |
| | 357 | | _unknownFields.WriteTo(output); |
| | 358 | | } |
| | 359 | | } |
| | 360 | |
|
| | 361 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 362 | | public int CalculateSize() { |
| | 363 | | int size = 0; |
| | 364 | | if (Name.Length != 0) { |
| | 365 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); |
| | 366 | | } |
| | 367 | | if (Clip.Length != 0) { |
| | 368 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(Clip); |
| | 369 | | } |
| | 370 | | if (Playing != false) { |
| | 371 | | size += 1 + 1; |
| | 372 | | } |
| | 373 | | if (Weight != 0F) { |
| | 374 | | size += 1 + 4; |
| | 375 | | } |
| | 376 | | if (Speed != 0F) { |
| | 377 | | size += 1 + 4; |
| | 378 | | } |
| | 379 | | if (Loop != false) { |
| | 380 | | size += 1 + 1; |
| | 381 | | } |
| | 382 | | if (ShouldReset != false) { |
| | 383 | | size += 1 + 1; |
| | 384 | | } |
| | 385 | | if (_unknownFields != null) { |
| | 386 | | size += _unknownFields.CalculateSize(); |
| | 387 | | } |
| | 388 | | return size; |
| | 389 | | } |
| | 390 | |
|
| | 391 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 392 | | public void MergeFrom(PBAnimationState other) { |
| | 393 | | if (other == null) { |
| | 394 | | return; |
| | 395 | | } |
| | 396 | | if (other.Name.Length != 0) { |
| | 397 | | Name = other.Name; |
| | 398 | | } |
| | 399 | | if (other.Clip.Length != 0) { |
| | 400 | | Clip = other.Clip; |
| | 401 | | } |
| | 402 | | if (other.Playing != false) { |
| | 403 | | Playing = other.Playing; |
| | 404 | | } |
| | 405 | | if (other.Weight != 0F) { |
| | 406 | | Weight = other.Weight; |
| | 407 | | } |
| | 408 | | if (other.Speed != 0F) { |
| | 409 | | Speed = other.Speed; |
| | 410 | | } |
| | 411 | | if (other.Loop != false) { |
| | 412 | | Loop = other.Loop; |
| | 413 | | } |
| | 414 | | if (other.ShouldReset != false) { |
| | 415 | | ShouldReset = other.ShouldReset; |
| | 416 | | } |
| | 417 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| | 418 | | } |
| | 419 | |
|
| | 420 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 421 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 422 | | uint tag; |
| | 423 | | while ((tag = input.ReadTag()) != 0) { |
| | 424 | | switch(tag) { |
| | 425 | | default: |
| | 426 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | 427 | | break; |
| | 428 | | case 10: { |
| | 429 | | Name = input.ReadString(); |
| | 430 | | break; |
| | 431 | | } |
| | 432 | | case 18: { |
| | 433 | | Clip = input.ReadString(); |
| | 434 | | break; |
| | 435 | | } |
| | 436 | | case 24: { |
| | 437 | | Playing = input.ReadBool(); |
| | 438 | | break; |
| | 439 | | } |
| | 440 | | case 37: { |
| | 441 | | Weight = input.ReadFloat(); |
| | 442 | | break; |
| | 443 | | } |
| | 444 | | case 45: { |
| | 445 | | Speed = input.ReadFloat(); |
| | 446 | | break; |
| | 447 | | } |
| | 448 | | case 48: { |
| | 449 | | Loop = input.ReadBool(); |
| | 450 | | break; |
| | 451 | | } |
| | 452 | | case 56: { |
| | 453 | | ShouldReset = input.ReadBool(); |
| | 454 | | break; |
| | 455 | | } |
| | 456 | | } |
| | 457 | | } |
| | 458 | | } |
| | 459 | |
|
| | 460 | | } |
| | 461 | |
|
| | 462 | | #endregion |
| | 463 | |
|
| | 464 | | } |
| | 465 | |
|
| | 466 | | #endregion Designer generated code |