| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: decentraland/sdk/components/tween.proto |
| | 4 | | // </auto-generated> |
| | 5 | | #pragma warning disable 1591, 0612, 3021 |
| | 6 | | #region Designer generated code |
| | 7 | |
|
| | 8 | | using pb = global::Google.Protobuf; |
| | 9 | | using pbc = global::Google.Protobuf.Collections; |
| | 10 | | using pbr = global::Google.Protobuf.Reflection; |
| | 11 | | using scg = global::System.Collections.Generic; |
| | 12 | | namespace DCL.ECSComponents { |
| | 13 | |
|
| | 14 | | /// <summary>Holder for reflection information generated from decentraland/sdk/components/tween.proto</summary> |
| | 15 | | public static partial class TweenReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for decentraland/sdk/components/tween.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static TweenReflection() { |
| | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "CidkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvdHdlZW4ucHJvdG8SG2Rl", |
| | 28 | | "Y2VudHJhbGFuZC5zZGsuY29tcG9uZW50cxohZGVjZW50cmFsYW5kL2NvbW1v", |
| | 29 | | "bi92ZWN0b3JzLnByb3RvItYCCgdQQlR3ZWVuEhAKCGR1cmF0aW9uGAEgASgC", |
| | 30 | | "EkQKD2Vhc2luZ19mdW5jdGlvbhgCIAEoDjIrLmRlY2VudHJhbGFuZC5zZGsu", |
| | 31 | | "Y29tcG9uZW50cy5FYXNpbmdGdW5jdGlvbhIxCgRtb3ZlGAMgASgLMiEuZGVj", |
| | 32 | | "ZW50cmFsYW5kLnNkay5jb21wb25lbnRzLk1vdmVIABI1CgZyb3RhdGUYBCAB", |
| | 33 | | "KAsyIy5kZWNlbnRyYWxhbmQuc2RrLmNvbXBvbmVudHMuUm90YXRlSAASMwoF", |
| | 34 | | "c2NhbGUYBSABKAsyIi5kZWNlbnRyYWxhbmQuc2RrLmNvbXBvbmVudHMuU2Nh", |
| | 35 | | "bGVIABIUCgdwbGF5aW5nGAYgASgISAGIAQESGQoMY3VycmVudF90aW1lGAcg", |
| | 36 | | "ASgCSAKIAQFCBgoEbW9kZUIKCghfcGxheWluZ0IPCg1fY3VycmVudF90aW1l", |
| | 37 | | "Io4BCgRNb3ZlEisKBXN0YXJ0GAEgASgLMhwuZGVjZW50cmFsYW5kLmNvbW1v", |
| | 38 | | "bi5WZWN0b3IzEikKA2VuZBgCIAEoCzIcLmRlY2VudHJhbGFuZC5jb21tb24u", |
| | 39 | | "VmVjdG9yMxIbCg5mYWNlX2RpcmVjdGlvbhgDIAEoCEgAiAEBQhEKD19mYWNl", |
| | 40 | | "X2RpcmVjdGlvbiJmCgZSb3RhdGUSLgoFc3RhcnQYASABKAsyHy5kZWNlbnRy", |
| | 41 | | "YWxhbmQuY29tbW9uLlF1YXRlcm5pb24SLAoDZW5kGAIgASgLMh8uZGVjZW50", |
| | 42 | | "cmFsYW5kLmNvbW1vbi5RdWF0ZXJuaW9uIl8KBVNjYWxlEisKBXN0YXJ0GAEg", |
| | 43 | | "ASgLMhwuZGVjZW50cmFsYW5kLmNvbW1vbi5WZWN0b3IzEikKA2VuZBgCIAEo", |
| | 44 | | "CzIcLmRlY2VudHJhbGFuZC5jb21tb24uVmVjdG9yMyrnBAoORWFzaW5nRnVu", |
| | 45 | | "Y3Rpb24SDQoJRUZfTElORUFSEAASEQoNRUZfRUFTRUlOUVVBRBABEhIKDkVG", |
| | 46 | | "X0VBU0VPVVRRVUFEEAISDwoLRUZfRUFTRVFVQUQQAxIRCg1FRl9FQVNFSU5T", |
| | 47 | | "SU5FEAQSEgoORUZfRUFTRU9VVFNJTkUQBRIPCgtFRl9FQVNFU0lORRAGEhEK", |
| | 48 | | "DUVGX0VBU0VJTkVYUE8QBxISCg5FRl9FQVNFT1VURVhQTxAIEg8KC0VGX0VB", |
| | 49 | | "U0VFWFBPEAkSFAoQRUZfRUFTRUlORUxBU1RJQxAKEhUKEUVGX0VBU0VPVVRF", |
| | 50 | | "TEFTVElDEAsSEgoORUZfRUFTRUVMQVNUSUMQDBITCg9FRl9FQVNFSU5CT1VO", |
| | 51 | | "Q0UQDRIUChBFRl9FQVNFT1VUQk9VTkNFEA4SEQoNRUZfRUFTRUJPVU5DRRAP", |
| | 52 | | "EhIKDkVGX0VBU0VJTkNVQklDEBASEwoPRUZfRUFTRU9VVENVQklDEBESEAoM", |
| | 53 | | "RUZfRUFTRUNVQklDEBISEgoORUZfRUFTRUlOUVVBUlQQExITCg9FRl9FQVNF", |
| | 54 | | "T1VUUVVBUlQQFBIQCgxFRl9FQVNFUVVBUlQQFRISCg5FRl9FQVNFSU5RVUlO", |
| | 55 | | "VBAWEhMKD0VGX0VBU0VPVVRRVUlOVBAXEhAKDEVGX0VBU0VRVUlOVBAYEhEK", |
| | 56 | | "DUVGX0VBU0VJTkNJUkMQGRISCg5FRl9FQVNFT1VUQ0lSQxAaEg8KC0VGX0VB", |
| | 57 | | "U0VDSVJDEBsSEQoNRUZfRUFTRUlOQkFDSxAcEhIKDkVGX0VBU0VPVVRCQUNL", |
| | 58 | | "EB0SDwoLRUZfRUFTRUJBQ0sQHkIUqgIRRENMLkVDU0NvbXBvbmVudHNiBnBy", |
| | 59 | | "b3RvMw==")); |
| | 60 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 61 | | new pbr::FileDescriptor[] { global::Decentraland.Common.VectorsReflection.Descriptor, }, |
| | 62 | | new pbr::GeneratedClrTypeInfo(new[] {typeof(global::DCL.ECSComponents.EasingFunction), }, null, new pbr::Gener |
| | 63 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBTween), global::DCL.ECSComponents.PBTween.P |
| | 64 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.Move), global::DCL.ECSComponents.Move.Parser, |
| | 65 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.Rotate), global::DCL.ECSComponents.Rotate.Par |
| | 66 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.Scale), global::DCL.ECSComponents.Scale.Parse |
| | 67 | | })); |
| | 68 | | } |
| | 69 | | #endregion |
| | 70 | |
|
| | 71 | | } |
| | 72 | | #region Enums |
| | 73 | | /// <summary> |
| | 74 | | /// Implementation guidelines for these easing functions can be found |
| | 75 | | /// at https://github.com/ai/easings.net/blob/6fcd5f852a470bf1a7890e8178afa0f471d5f2ec/src/easings/easingsFunctions.ts |
| | 76 | | /// </summary> |
| | 77 | | public enum EasingFunction { |
| | 78 | | /// <summary> |
| | 79 | | /// default |
| | 80 | | /// </summary> |
| | 81 | | [pbr::OriginalName("EF_LINEAR")] EfLinear = 0, |
| | 82 | | [pbr::OriginalName("EF_EASEINQUAD")] EfEaseinquad = 1, |
| | 83 | | [pbr::OriginalName("EF_EASEOUTQUAD")] EfEaseoutquad = 2, |
| | 84 | | [pbr::OriginalName("EF_EASEQUAD")] EfEasequad = 3, |
| | 85 | | [pbr::OriginalName("EF_EASEINSINE")] EfEaseinsine = 4, |
| | 86 | | [pbr::OriginalName("EF_EASEOUTSINE")] EfEaseoutsine = 5, |
| | 87 | | [pbr::OriginalName("EF_EASESINE")] EfEasesine = 6, |
| | 88 | | [pbr::OriginalName("EF_EASEINEXPO")] EfEaseinexpo = 7, |
| | 89 | | [pbr::OriginalName("EF_EASEOUTEXPO")] EfEaseoutexpo = 8, |
| | 90 | | [pbr::OriginalName("EF_EASEEXPO")] EfEaseexpo = 9, |
| | 91 | | [pbr::OriginalName("EF_EASEINELASTIC")] EfEaseinelastic = 10, |
| | 92 | | [pbr::OriginalName("EF_EASEOUTELASTIC")] EfEaseoutelastic = 11, |
| | 93 | | [pbr::OriginalName("EF_EASEELASTIC")] EfEaseelastic = 12, |
| | 94 | | [pbr::OriginalName("EF_EASEINBOUNCE")] EfEaseinbounce = 13, |
| | 95 | | [pbr::OriginalName("EF_EASEOUTBOUNCE")] EfEaseoutbounce = 14, |
| | 96 | | [pbr::OriginalName("EF_EASEBOUNCE")] EfEasebounce = 15, |
| | 97 | | [pbr::OriginalName("EF_EASEINCUBIC")] EfEaseincubic = 16, |
| | 98 | | [pbr::OriginalName("EF_EASEOUTCUBIC")] EfEaseoutcubic = 17, |
| | 99 | | [pbr::OriginalName("EF_EASECUBIC")] EfEasecubic = 18, |
| | 100 | | [pbr::OriginalName("EF_EASEINQUART")] EfEaseinquart = 19, |
| | 101 | | [pbr::OriginalName("EF_EASEOUTQUART")] EfEaseoutquart = 20, |
| | 102 | | [pbr::OriginalName("EF_EASEQUART")] EfEasequart = 21, |
| | 103 | | [pbr::OriginalName("EF_EASEINQUINT")] EfEaseinquint = 22, |
| | 104 | | [pbr::OriginalName("EF_EASEOUTQUINT")] EfEaseoutquint = 23, |
| | 105 | | [pbr::OriginalName("EF_EASEQUINT")] EfEasequint = 24, |
| | 106 | | [pbr::OriginalName("EF_EASEINCIRC")] EfEaseincirc = 25, |
| | 107 | | [pbr::OriginalName("EF_EASEOUTCIRC")] EfEaseoutcirc = 26, |
| | 108 | | [pbr::OriginalName("EF_EASECIRC")] EfEasecirc = 27, |
| | 109 | | [pbr::OriginalName("EF_EASEINBACK")] EfEaseinback = 28, |
| | 110 | | [pbr::OriginalName("EF_EASEOUTBACK")] EfEaseoutback = 29, |
| | 111 | | [pbr::OriginalName("EF_EASEBACK")] EfEaseback = 30, |
| | 112 | | } |
| | 113 | |
|
| | 114 | | #endregion |
| | 115 | |
|
| | 116 | | #region Messages |
| | 117 | | public sealed partial class PBTween : pb::IMessage<PBTween> |
| | 118 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 119 | | , pb::IBufferMessage |
| | 120 | | #endif |
| | 121 | | { |
| 1 | 122 | | private static readonly pb::MessageParser<PBTween> _parser = new pb::MessageParser<PBTween>(() => new PBTween()); |
| | 123 | | private pb::UnknownFieldSet _unknownFields; |
| | 124 | | private int _hasBits0; |
| | 125 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 126 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 127 | | public static pb::MessageParser<PBTween> Parser { get { return _parser; } } |
| | 128 | |
|
| | 129 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 130 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 131 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 132 | | get { return global::DCL.ECSComponents.TweenReflection.Descriptor.MessageTypes[0]; } |
| | 133 | | } |
| | 134 | |
|
| | 135 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 136 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 137 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 138 | | get { return Descriptor; } |
| | 139 | | } |
| | 140 | |
|
| | 141 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 142 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 16 | 143 | | public PBTween() { |
| | 144 | | OnConstruction(); |
| 16 | 145 | | } |
| | 146 | |
|
| | 147 | | partial void OnConstruction(); |
| | 148 | |
|
| | 149 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 150 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 151 | | public PBTween(PBTween other) : this() { |
| 0 | 152 | | _hasBits0 = other._hasBits0; |
| 0 | 153 | | duration_ = other.duration_; |
| 0 | 154 | | easingFunction_ = other.easingFunction_; |
| 0 | 155 | | playing_ = other.playing_; |
| 0 | 156 | | currentTime_ = other.currentTime_; |
| 0 | 157 | | switch (other.ModeCase) { |
| | 158 | | case ModeOneofCase.Move: |
| 0 | 159 | | Move = other.Move.Clone(); |
| 0 | 160 | | break; |
| | 161 | | case ModeOneofCase.Rotate: |
| 0 | 162 | | Rotate = other.Rotate.Clone(); |
| 0 | 163 | | break; |
| | 164 | | case ModeOneofCase.Scale: |
| 0 | 165 | | Scale = other.Scale.Clone(); |
| | 166 | | break; |
| | 167 | | } |
| | 168 | |
|
| 0 | 169 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 0 | 170 | | } |
| | 171 | |
|
| | 172 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 173 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 174 | | public PBTween Clone() { |
| 0 | 175 | | return new PBTween(this); |
| | 176 | | } |
| | 177 | |
|
| | 178 | | /// <summary>Field number for the "duration" field.</summary> |
| | 179 | | public const int DurationFieldNumber = 1; |
| | 180 | | private float duration_; |
| | 181 | | /// <summary> |
| | 182 | | /// in milliseconds |
| | 183 | | /// </summary> |
| | 184 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 185 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 186 | | public float Duration { |
| 26 | 187 | | get { return duration_; } |
| | 188 | | set { |
| 16 | 189 | | duration_ = value; |
| 16 | 190 | | } |
| | 191 | | } |
| | 192 | |
|
| | 193 | | /// <summary>Field number for the "easing_function" field.</summary> |
| | 194 | | public const int EasingFunctionFieldNumber = 2; |
| | 195 | | private global::DCL.ECSComponents.EasingFunction easingFunction_ = global::DCL.ECSComponents.EasingFunction.EfLinear |
| | 196 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 197 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 198 | | public global::DCL.ECSComponents.EasingFunction EasingFunction { |
| 22 | 199 | | get { return easingFunction_; } |
| | 200 | | set { |
| 0 | 201 | | easingFunction_ = value; |
| 0 | 202 | | } |
| | 203 | | } |
| | 204 | |
|
| | 205 | | /// <summary>Field number for the "move" field.</summary> |
| | 206 | | public const int MoveFieldNumber = 3; |
| | 207 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 208 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 209 | | public global::DCL.ECSComponents.Move Move { |
| 34 | 210 | | get { return modeCase_ == ModeOneofCase.Move ? (global::DCL.ECSComponents.Move) mode_ : null; } |
| | 211 | | set { |
| 8 | 212 | | mode_ = value; |
| 8 | 213 | | modeCase_ = value == null ? ModeOneofCase.None : ModeOneofCase.Move; |
| 8 | 214 | | } |
| | 215 | | } |
| | 216 | |
|
| | 217 | | /// <summary>Field number for the "rotate" field.</summary> |
| | 218 | | public const int RotateFieldNumber = 4; |
| | 219 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 220 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 221 | | public global::DCL.ECSComponents.Rotate Rotate { |
| 6 | 222 | | get { return modeCase_ == ModeOneofCase.Rotate ? (global::DCL.ECSComponents.Rotate) mode_ : null; } |
| | 223 | | set { |
| 3 | 224 | | mode_ = value; |
| 3 | 225 | | modeCase_ = value == null ? ModeOneofCase.None : ModeOneofCase.Rotate; |
| 3 | 226 | | } |
| | 227 | | } |
| | 228 | |
|
| | 229 | | /// <summary>Field number for the "scale" field.</summary> |
| | 230 | | public const int ScaleFieldNumber = 5; |
| | 231 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 232 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 233 | | public global::DCL.ECSComponents.Scale Scale { |
| 10 | 234 | | get { return modeCase_ == ModeOneofCase.Scale ? (global::DCL.ECSComponents.Scale) mode_ : null; } |
| | 235 | | set { |
| 5 | 236 | | mode_ = value; |
| 5 | 237 | | modeCase_ = value == null ? ModeOneofCase.None : ModeOneofCase.Scale; |
| 5 | 238 | | } |
| | 239 | | } |
| | 240 | |
|
| | 241 | | /// <summary>Field number for the "playing" field.</summary> |
| | 242 | | public const int PlayingFieldNumber = 6; |
| | 243 | | private bool playing_; |
| | 244 | | /// <summary> |
| | 245 | | /// default true (pause or running) |
| | 246 | | /// </summary> |
| | 247 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 248 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 249 | | public bool Playing { |
| 6 | 250 | | get { if ((_hasBits0 & 1) != 0) { return playing_; } else { return false; } } |
| | 251 | | set { |
| 3 | 252 | | _hasBits0 |= 1; |
| 3 | 253 | | playing_ = value; |
| 3 | 254 | | } |
| | 255 | | } |
| | 256 | | /// <summary>Gets whether the "playing" field is set</summary> |
| | 257 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 258 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 259 | | public bool HasPlaying { |
| 18 | 260 | | get { return (_hasBits0 & 1) != 0; } |
| | 261 | | } |
| | 262 | | /// <summary>Clears the value of the "playing" field</summary> |
| | 263 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 264 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 265 | | public void ClearPlaying() { |
| 0 | 266 | | _hasBits0 &= ~1; |
| 0 | 267 | | } |
| | 268 | |
|
| | 269 | | /// <summary>Field number for the "current_time" field.</summary> |
| | 270 | | public const int CurrentTimeFieldNumber = 7; |
| | 271 | | private float currentTime_; |
| | 272 | | /// <summary> |
| | 273 | | /// between 0 and 1 |
| | 274 | | /// </summary> |
| | 275 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 276 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 277 | | public float CurrentTime { |
| 76 | 278 | | get { if ((_hasBits0 & 2) != 0) { return currentTime_; } else { return 0F; } } |
| | 279 | | set { |
| 1 | 280 | | _hasBits0 |= 2; |
| 1 | 281 | | currentTime_ = value; |
| 1 | 282 | | } |
| | 283 | | } |
| | 284 | | /// <summary>Gets whether the "current_time" field is set</summary> |
| | 285 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 286 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 287 | | public bool HasCurrentTime { |
| 0 | 288 | | get { return (_hasBits0 & 2) != 0; } |
| | 289 | | } |
| | 290 | | /// <summary>Clears the value of the "current_time" field</summary> |
| | 291 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 292 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 293 | | public void ClearCurrentTime() { |
| 0 | 294 | | _hasBits0 &= ~2; |
| 0 | 295 | | } |
| | 296 | |
|
| | 297 | | private object mode_; |
| | 298 | | /// <summary>Enum of possible cases for the "mode" oneof.</summary> |
| | 299 | | public enum ModeOneofCase { |
| | 300 | | None = 0, |
| | 301 | | Move = 3, |
| | 302 | | Rotate = 4, |
| | 303 | | Scale = 5, |
| | 304 | | } |
| | 305 | | private ModeOneofCase modeCase_ = ModeOneofCase.None; |
| | 306 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 307 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 308 | | public ModeOneofCase ModeCase { |
| 60 | 309 | | get { return modeCase_; } |
| | 310 | | } |
| | 311 | |
|
| | 312 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 313 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 314 | | public void ClearMode() { |
| 0 | 315 | | modeCase_ = ModeOneofCase.None; |
| 0 | 316 | | mode_ = null; |
| 0 | 317 | | } |
| | 318 | |
|
| | 319 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 320 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 321 | | public override bool Equals(object other) { |
| 0 | 322 | | return Equals(other as PBTween); |
| | 323 | | } |
| | 324 | |
|
| | 325 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 326 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 327 | | public bool Equals(PBTween other) { |
| 0 | 328 | | if (ReferenceEquals(other, null)) { |
| 0 | 329 | | return false; |
| | 330 | | } |
| 0 | 331 | | if (ReferenceEquals(other, this)) { |
| 0 | 332 | | return true; |
| | 333 | | } |
| 0 | 334 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Duration, other.Duration)) return false; |
| 0 | 335 | | if (EasingFunction != other.EasingFunction) return false; |
| 0 | 336 | | if (!object.Equals(Move, other.Move)) return false; |
| 0 | 337 | | if (!object.Equals(Rotate, other.Rotate)) return false; |
| 0 | 338 | | if (!object.Equals(Scale, other.Scale)) return false; |
| 0 | 339 | | if (Playing != other.Playing) return false; |
| 0 | 340 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(CurrentTime, other.CurrentTime)) return f |
| 0 | 341 | | if (ModeCase != other.ModeCase) return false; |
| 0 | 342 | | return Equals(_unknownFields, other._unknownFields); |
| | 343 | | } |
| | 344 | |
|
| | 345 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 346 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 347 | | public override int GetHashCode() { |
| 0 | 348 | | int hash = 1; |
| 0 | 349 | | if (Duration != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Duration); |
| 0 | 350 | | if (EasingFunction != global::DCL.ECSComponents.EasingFunction.EfLinear) hash ^= EasingFunction.GetHashCode(); |
| 0 | 351 | | if (modeCase_ == ModeOneofCase.Move) hash ^= Move.GetHashCode(); |
| 0 | 352 | | if (modeCase_ == ModeOneofCase.Rotate) hash ^= Rotate.GetHashCode(); |
| 0 | 353 | | if (modeCase_ == ModeOneofCase.Scale) hash ^= Scale.GetHashCode(); |
| 0 | 354 | | if (HasPlaying) hash ^= Playing.GetHashCode(); |
| 0 | 355 | | if (HasCurrentTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(CurrentTime); |
| 0 | 356 | | hash ^= (int) modeCase_; |
| 0 | 357 | | if (_unknownFields != null) { |
| 0 | 358 | | hash ^= _unknownFields.GetHashCode(); |
| | 359 | | } |
| 0 | 360 | | return hash; |
| | 361 | | } |
| | 362 | |
|
| | 363 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 364 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 365 | | public override string ToString() { |
| 0 | 366 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 367 | | } |
| | 368 | |
|
| | 369 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 370 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 371 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 372 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 373 | | output.WriteRawMessage(this); |
| | 374 | | #else |
| 0 | 375 | | if (Duration != 0F) { |
| 0 | 376 | | output.WriteRawTag(13); |
| 0 | 377 | | output.WriteFloat(Duration); |
| | 378 | | } |
| 0 | 379 | | if (EasingFunction != global::DCL.ECSComponents.EasingFunction.EfLinear) { |
| 0 | 380 | | output.WriteRawTag(16); |
| 0 | 381 | | output.WriteEnum((int) EasingFunction); |
| | 382 | | } |
| 0 | 383 | | if (modeCase_ == ModeOneofCase.Move) { |
| 0 | 384 | | output.WriteRawTag(26); |
| 0 | 385 | | output.WriteMessage(Move); |
| | 386 | | } |
| 0 | 387 | | if (modeCase_ == ModeOneofCase.Rotate) { |
| 0 | 388 | | output.WriteRawTag(34); |
| 0 | 389 | | output.WriteMessage(Rotate); |
| | 390 | | } |
| 0 | 391 | | if (modeCase_ == ModeOneofCase.Scale) { |
| 0 | 392 | | output.WriteRawTag(42); |
| 0 | 393 | | output.WriteMessage(Scale); |
| | 394 | | } |
| 0 | 395 | | if (HasPlaying) { |
| 0 | 396 | | output.WriteRawTag(48); |
| 0 | 397 | | output.WriteBool(Playing); |
| | 398 | | } |
| 0 | 399 | | if (HasCurrentTime) { |
| 0 | 400 | | output.WriteRawTag(61); |
| 0 | 401 | | output.WriteFloat(CurrentTime); |
| | 402 | | } |
| 0 | 403 | | if (_unknownFields != null) { |
| 0 | 404 | | _unknownFields.WriteTo(output); |
| | 405 | | } |
| | 406 | | #endif |
| 0 | 407 | | } |
| | 408 | |
|
| | 409 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 410 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 411 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 412 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 413 | | if (Duration != 0F) { |
| | 414 | | output.WriteRawTag(13); |
| | 415 | | output.WriteFloat(Duration); |
| | 416 | | } |
| | 417 | | if (EasingFunction != global::DCL.ECSComponents.EasingFunction.EfLinear) { |
| | 418 | | output.WriteRawTag(16); |
| | 419 | | output.WriteEnum((int) EasingFunction); |
| | 420 | | } |
| | 421 | | if (modeCase_ == ModeOneofCase.Move) { |
| | 422 | | output.WriteRawTag(26); |
| | 423 | | output.WriteMessage(Move); |
| | 424 | | } |
| | 425 | | if (modeCase_ == ModeOneofCase.Rotate) { |
| | 426 | | output.WriteRawTag(34); |
| | 427 | | output.WriteMessage(Rotate); |
| | 428 | | } |
| | 429 | | if (modeCase_ == ModeOneofCase.Scale) { |
| | 430 | | output.WriteRawTag(42); |
| | 431 | | output.WriteMessage(Scale); |
| | 432 | | } |
| | 433 | | if (HasPlaying) { |
| | 434 | | output.WriteRawTag(48); |
| | 435 | | output.WriteBool(Playing); |
| | 436 | | } |
| | 437 | | if (HasCurrentTime) { |
| | 438 | | output.WriteRawTag(61); |
| | 439 | | output.WriteFloat(CurrentTime); |
| | 440 | | } |
| | 441 | | if (_unknownFields != null) { |
| | 442 | | _unknownFields.WriteTo(ref output); |
| | 443 | | } |
| | 444 | | } |
| | 445 | | #endif |
| | 446 | |
|
| | 447 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 448 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 449 | | public int CalculateSize() { |
| 0 | 450 | | int size = 0; |
| 0 | 451 | | if (Duration != 0F) { |
| 0 | 452 | | size += 1 + 4; |
| | 453 | | } |
| 0 | 454 | | if (EasingFunction != global::DCL.ECSComponents.EasingFunction.EfLinear) { |
| 0 | 455 | | size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EasingFunction); |
| | 456 | | } |
| 0 | 457 | | if (modeCase_ == ModeOneofCase.Move) { |
| 0 | 458 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Move); |
| | 459 | | } |
| 0 | 460 | | if (modeCase_ == ModeOneofCase.Rotate) { |
| 0 | 461 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Rotate); |
| | 462 | | } |
| 0 | 463 | | if (modeCase_ == ModeOneofCase.Scale) { |
| 0 | 464 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Scale); |
| | 465 | | } |
| 0 | 466 | | if (HasPlaying) { |
| 0 | 467 | | size += 1 + 1; |
| | 468 | | } |
| 0 | 469 | | if (HasCurrentTime) { |
| 0 | 470 | | size += 1 + 4; |
| | 471 | | } |
| 0 | 472 | | if (_unknownFields != null) { |
| 0 | 473 | | size += _unknownFields.CalculateSize(); |
| | 474 | | } |
| 0 | 475 | | return size; |
| | 476 | | } |
| | 477 | |
|
| | 478 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 479 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 480 | | public void MergeFrom(PBTween other) { |
| 0 | 481 | | if (other == null) { |
| 0 | 482 | | return; |
| | 483 | | } |
| 0 | 484 | | if (other.Duration != 0F) { |
| 0 | 485 | | Duration = other.Duration; |
| | 486 | | } |
| 0 | 487 | | if (other.EasingFunction != global::DCL.ECSComponents.EasingFunction.EfLinear) { |
| 0 | 488 | | EasingFunction = other.EasingFunction; |
| | 489 | | } |
| 0 | 490 | | if (other.HasPlaying) { |
| 0 | 491 | | Playing = other.Playing; |
| | 492 | | } |
| 0 | 493 | | if (other.HasCurrentTime) { |
| 0 | 494 | | CurrentTime = other.CurrentTime; |
| | 495 | | } |
| 0 | 496 | | switch (other.ModeCase) { |
| | 497 | | case ModeOneofCase.Move: |
| 0 | 498 | | if (Move == null) { |
| 0 | 499 | | Move = new global::DCL.ECSComponents.Move(); |
| | 500 | | } |
| 0 | 501 | | Move.MergeFrom(other.Move); |
| 0 | 502 | | break; |
| | 503 | | case ModeOneofCase.Rotate: |
| 0 | 504 | | if (Rotate == null) { |
| 0 | 505 | | Rotate = new global::DCL.ECSComponents.Rotate(); |
| | 506 | | } |
| 0 | 507 | | Rotate.MergeFrom(other.Rotate); |
| 0 | 508 | | break; |
| | 509 | | case ModeOneofCase.Scale: |
| 0 | 510 | | if (Scale == null) { |
| 0 | 511 | | Scale = new global::DCL.ECSComponents.Scale(); |
| | 512 | | } |
| 0 | 513 | | Scale.MergeFrom(other.Scale); |
| | 514 | | break; |
| | 515 | | } |
| | 516 | |
|
| 0 | 517 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 518 | | } |
| | 519 | |
|
| | 520 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 521 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 522 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 523 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 524 | | input.ReadRawMessage(this); |
| | 525 | | #else |
| | 526 | | uint tag; |
| 0 | 527 | | while ((tag = input.ReadTag()) != 0) { |
| | 528 | | switch(tag) { |
| | 529 | | default: |
| 0 | 530 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 531 | | break; |
| | 532 | | case 13: { |
| 0 | 533 | | Duration = input.ReadFloat(); |
| 0 | 534 | | break; |
| | 535 | | } |
| | 536 | | case 16: { |
| 0 | 537 | | EasingFunction = (global::DCL.ECSComponents.EasingFunction) input.ReadEnum(); |
| 0 | 538 | | break; |
| | 539 | | } |
| | 540 | | case 26: { |
| 0 | 541 | | global::DCL.ECSComponents.Move subBuilder = new global::DCL.ECSComponents.Move(); |
| 0 | 542 | | if (modeCase_ == ModeOneofCase.Move) { |
| 0 | 543 | | subBuilder.MergeFrom(Move); |
| | 544 | | } |
| 0 | 545 | | input.ReadMessage(subBuilder); |
| 0 | 546 | | Move = subBuilder; |
| 0 | 547 | | break; |
| | 548 | | } |
| | 549 | | case 34: { |
| 0 | 550 | | global::DCL.ECSComponents.Rotate subBuilder = new global::DCL.ECSComponents.Rotate(); |
| 0 | 551 | | if (modeCase_ == ModeOneofCase.Rotate) { |
| 0 | 552 | | subBuilder.MergeFrom(Rotate); |
| | 553 | | } |
| 0 | 554 | | input.ReadMessage(subBuilder); |
| 0 | 555 | | Rotate = subBuilder; |
| 0 | 556 | | break; |
| | 557 | | } |
| | 558 | | case 42: { |
| 0 | 559 | | global::DCL.ECSComponents.Scale subBuilder = new global::DCL.ECSComponents.Scale(); |
| 0 | 560 | | if (modeCase_ == ModeOneofCase.Scale) { |
| 0 | 561 | | subBuilder.MergeFrom(Scale); |
| | 562 | | } |
| 0 | 563 | | input.ReadMessage(subBuilder); |
| 0 | 564 | | Scale = subBuilder; |
| 0 | 565 | | break; |
| | 566 | | } |
| | 567 | | case 48: { |
| 0 | 568 | | Playing = input.ReadBool(); |
| 0 | 569 | | break; |
| | 570 | | } |
| | 571 | | case 61: { |
| 0 | 572 | | CurrentTime = input.ReadFloat(); |
| | 573 | | break; |
| | 574 | | } |
| | 575 | | } |
| | 576 | | } |
| | 577 | | #endif |
| 0 | 578 | | } |
| | 579 | |
|
| | 580 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 581 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 582 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 583 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 584 | | uint tag; |
| | 585 | | while ((tag = input.ReadTag()) != 0) { |
| | 586 | | switch(tag) { |
| | 587 | | default: |
| | 588 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 589 | | break; |
| | 590 | | case 13: { |
| | 591 | | Duration = input.ReadFloat(); |
| | 592 | | break; |
| | 593 | | } |
| | 594 | | case 16: { |
| | 595 | | EasingFunction = (global::DCL.ECSComponents.EasingFunction) input.ReadEnum(); |
| | 596 | | break; |
| | 597 | | } |
| | 598 | | case 26: { |
| | 599 | | global::DCL.ECSComponents.Move subBuilder = new global::DCL.ECSComponents.Move(); |
| | 600 | | if (modeCase_ == ModeOneofCase.Move) { |
| | 601 | | subBuilder.MergeFrom(Move); |
| | 602 | | } |
| | 603 | | input.ReadMessage(subBuilder); |
| | 604 | | Move = subBuilder; |
| | 605 | | break; |
| | 606 | | } |
| | 607 | | case 34: { |
| | 608 | | global::DCL.ECSComponents.Rotate subBuilder = new global::DCL.ECSComponents.Rotate(); |
| | 609 | | if (modeCase_ == ModeOneofCase.Rotate) { |
| | 610 | | subBuilder.MergeFrom(Rotate); |
| | 611 | | } |
| | 612 | | input.ReadMessage(subBuilder); |
| | 613 | | Rotate = subBuilder; |
| | 614 | | break; |
| | 615 | | } |
| | 616 | | case 42: { |
| | 617 | | global::DCL.ECSComponents.Scale subBuilder = new global::DCL.ECSComponents.Scale(); |
| | 618 | | if (modeCase_ == ModeOneofCase.Scale) { |
| | 619 | | subBuilder.MergeFrom(Scale); |
| | 620 | | } |
| | 621 | | input.ReadMessage(subBuilder); |
| | 622 | | Scale = subBuilder; |
| | 623 | | break; |
| | 624 | | } |
| | 625 | | case 48: { |
| | 626 | | Playing = input.ReadBool(); |
| | 627 | | break; |
| | 628 | | } |
| | 629 | | case 61: { |
| | 630 | | CurrentTime = input.ReadFloat(); |
| | 631 | | break; |
| | 632 | | } |
| | 633 | | } |
| | 634 | | } |
| | 635 | | } |
| | 636 | | #endif |
| | 637 | |
|
| | 638 | | } |
| | 639 | |
|
| | 640 | | public sealed partial class Move : pb::IMessage<Move> |
| | 641 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 642 | | , pb::IBufferMessage |
| | 643 | | #endif |
| | 644 | | { |
| | 645 | | private static readonly pb::MessageParser<Move> _parser = new pb::MessageParser<Move>(() => new Move()); |
| | 646 | | private pb::UnknownFieldSet _unknownFields; |
| | 647 | | private int _hasBits0; |
| | 648 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 649 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 650 | | public static pb::MessageParser<Move> Parser { get { return _parser; } } |
| | 651 | |
|
| | 652 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 653 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 654 | | public static pbr::MessageDescriptor Descriptor { |
| | 655 | | get { return global::DCL.ECSComponents.TweenReflection.Descriptor.MessageTypes[1]; } |
| | 656 | | } |
| | 657 | |
|
| | 658 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 659 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 660 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| | 661 | | get { return Descriptor; } |
| | 662 | | } |
| | 663 | |
|
| | 664 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 665 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 666 | | public Move() { |
| | 667 | | OnConstruction(); |
| | 668 | | } |
| | 669 | |
|
| | 670 | | partial void OnConstruction(); |
| | 671 | |
|
| | 672 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 673 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 674 | | public Move(Move other) : this() { |
| | 675 | | _hasBits0 = other._hasBits0; |
| | 676 | | start_ = other.start_ != null ? other.start_.Clone() : null; |
| | 677 | | end_ = other.end_ != null ? other.end_.Clone() : null; |
| | 678 | | faceDirection_ = other.faceDirection_; |
| | 679 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| | 680 | | } |
| | 681 | |
|
| | 682 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 683 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 684 | | public Move Clone() { |
| | 685 | | return new Move(this); |
| | 686 | | } |
| | 687 | |
|
| | 688 | | /// <summary>Field number for the "start" field.</summary> |
| | 689 | | public const int StartFieldNumber = 1; |
| | 690 | | private global::Decentraland.Common.Vector3 start_; |
| | 691 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 692 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 693 | | public global::Decentraland.Common.Vector3 Start { |
| | 694 | | get { return start_; } |
| | 695 | | set { |
| | 696 | | start_ = value; |
| | 697 | | } |
| | 698 | | } |
| | 699 | |
|
| | 700 | | /// <summary>Field number for the "end" field.</summary> |
| | 701 | | public const int EndFieldNumber = 2; |
| | 702 | | private global::Decentraland.Common.Vector3 end_; |
| | 703 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 704 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 705 | | public global::Decentraland.Common.Vector3 End { |
| | 706 | | get { return end_; } |
| | 707 | | set { |
| | 708 | | end_ = value; |
| | 709 | | } |
| | 710 | | } |
| | 711 | |
|
| | 712 | | /// <summary>Field number for the "face_direction" field.</summary> |
| | 713 | | public const int FaceDirectionFieldNumber = 3; |
| | 714 | | private bool faceDirection_; |
| | 715 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 716 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 717 | | public bool FaceDirection { |
| | 718 | | get { if ((_hasBits0 & 1) != 0) { return faceDirection_; } else { return false; } } |
| | 719 | | set { |
| | 720 | | _hasBits0 |= 1; |
| | 721 | | faceDirection_ = value; |
| | 722 | | } |
| | 723 | | } |
| | 724 | | /// <summary>Gets whether the "face_direction" field is set</summary> |
| | 725 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 726 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 727 | | public bool HasFaceDirection { |
| | 728 | | get { return (_hasBits0 & 1) != 0; } |
| | 729 | | } |
| | 730 | | /// <summary>Clears the value of the "face_direction" field</summary> |
| | 731 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 732 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 733 | | public void ClearFaceDirection() { |
| | 734 | | _hasBits0 &= ~1; |
| | 735 | | } |
| | 736 | |
|
| | 737 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 738 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 739 | | public override bool Equals(object other) { |
| | 740 | | return Equals(other as Move); |
| | 741 | | } |
| | 742 | |
|
| | 743 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 744 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 745 | | public bool Equals(Move other) { |
| | 746 | | if (ReferenceEquals(other, null)) { |
| | 747 | | return false; |
| | 748 | | } |
| | 749 | | if (ReferenceEquals(other, this)) { |
| | 750 | | return true; |
| | 751 | | } |
| | 752 | | if (!object.Equals(Start, other.Start)) return false; |
| | 753 | | if (!object.Equals(End, other.End)) return false; |
| | 754 | | if (FaceDirection != other.FaceDirection) return false; |
| | 755 | | return Equals(_unknownFields, other._unknownFields); |
| | 756 | | } |
| | 757 | |
|
| | 758 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 759 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 760 | | public override int GetHashCode() { |
| | 761 | | int hash = 1; |
| | 762 | | if (start_ != null) hash ^= Start.GetHashCode(); |
| | 763 | | if (end_ != null) hash ^= End.GetHashCode(); |
| | 764 | | if (HasFaceDirection) hash ^= FaceDirection.GetHashCode(); |
| | 765 | | if (_unknownFields != null) { |
| | 766 | | hash ^= _unknownFields.GetHashCode(); |
| | 767 | | } |
| | 768 | | return hash; |
| | 769 | | } |
| | 770 | |
|
| | 771 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 772 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 773 | | public override string ToString() { |
| | 774 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 775 | | } |
| | 776 | |
|
| | 777 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 778 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 779 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 780 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 781 | | output.WriteRawMessage(this); |
| | 782 | | #else |
| | 783 | | if (start_ != null) { |
| | 784 | | output.WriteRawTag(10); |
| | 785 | | output.WriteMessage(Start); |
| | 786 | | } |
| | 787 | | if (end_ != null) { |
| | 788 | | output.WriteRawTag(18); |
| | 789 | | output.WriteMessage(End); |
| | 790 | | } |
| | 791 | | if (HasFaceDirection) { |
| | 792 | | output.WriteRawTag(24); |
| | 793 | | output.WriteBool(FaceDirection); |
| | 794 | | } |
| | 795 | | if (_unknownFields != null) { |
| | 796 | | _unknownFields.WriteTo(output); |
| | 797 | | } |
| | 798 | | #endif |
| | 799 | | } |
| | 800 | |
|
| | 801 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 802 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 803 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 804 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 805 | | if (start_ != null) { |
| | 806 | | output.WriteRawTag(10); |
| | 807 | | output.WriteMessage(Start); |
| | 808 | | } |
| | 809 | | if (end_ != null) { |
| | 810 | | output.WriteRawTag(18); |
| | 811 | | output.WriteMessage(End); |
| | 812 | | } |
| | 813 | | if (HasFaceDirection) { |
| | 814 | | output.WriteRawTag(24); |
| | 815 | | output.WriteBool(FaceDirection); |
| | 816 | | } |
| | 817 | | if (_unknownFields != null) { |
| | 818 | | _unknownFields.WriteTo(ref output); |
| | 819 | | } |
| | 820 | | } |
| | 821 | | #endif |
| | 822 | |
|
| | 823 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 824 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 825 | | public int CalculateSize() { |
| | 826 | | int size = 0; |
| | 827 | | if (start_ != null) { |
| | 828 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Start); |
| | 829 | | } |
| | 830 | | if (end_ != null) { |
| | 831 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(End); |
| | 832 | | } |
| | 833 | | if (HasFaceDirection) { |
| | 834 | | size += 1 + 1; |
| | 835 | | } |
| | 836 | | if (_unknownFields != null) { |
| | 837 | | size += _unknownFields.CalculateSize(); |
| | 838 | | } |
| | 839 | | return size; |
| | 840 | | } |
| | 841 | |
|
| | 842 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 843 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 844 | | public void MergeFrom(Move other) { |
| | 845 | | if (other == null) { |
| | 846 | | return; |
| | 847 | | } |
| | 848 | | if (other.start_ != null) { |
| | 849 | | if (start_ == null) { |
| | 850 | | Start = new global::Decentraland.Common.Vector3(); |
| | 851 | | } |
| | 852 | | Start.MergeFrom(other.Start); |
| | 853 | | } |
| | 854 | | if (other.end_ != null) { |
| | 855 | | if (end_ == null) { |
| | 856 | | End = new global::Decentraland.Common.Vector3(); |
| | 857 | | } |
| | 858 | | End.MergeFrom(other.End); |
| | 859 | | } |
| | 860 | | if (other.HasFaceDirection) { |
| | 861 | | FaceDirection = other.FaceDirection; |
| | 862 | | } |
| | 863 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| | 864 | | } |
| | 865 | |
|
| | 866 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 867 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 868 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 869 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 870 | | input.ReadRawMessage(this); |
| | 871 | | #else |
| | 872 | | uint tag; |
| | 873 | | while ((tag = input.ReadTag()) != 0) { |
| | 874 | | switch(tag) { |
| | 875 | | default: |
| | 876 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | 877 | | break; |
| | 878 | | case 10: { |
| | 879 | | if (start_ == null) { |
| | 880 | | Start = new global::Decentraland.Common.Vector3(); |
| | 881 | | } |
| | 882 | | input.ReadMessage(Start); |
| | 883 | | break; |
| | 884 | | } |
| | 885 | | case 18: { |
| | 886 | | if (end_ == null) { |
| | 887 | | End = new global::Decentraland.Common.Vector3(); |
| | 888 | | } |
| | 889 | | input.ReadMessage(End); |
| | 890 | | break; |
| | 891 | | } |
| | 892 | | case 24: { |
| | 893 | | FaceDirection = input.ReadBool(); |
| | 894 | | break; |
| | 895 | | } |
| | 896 | | } |
| | 897 | | } |
| | 898 | | #endif |
| | 899 | | } |
| | 900 | |
|
| | 901 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 902 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 903 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 904 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 905 | | uint tag; |
| | 906 | | while ((tag = input.ReadTag()) != 0) { |
| | 907 | | switch(tag) { |
| | 908 | | default: |
| | 909 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 910 | | break; |
| | 911 | | case 10: { |
| | 912 | | if (start_ == null) { |
| | 913 | | Start = new global::Decentraland.Common.Vector3(); |
| | 914 | | } |
| | 915 | | input.ReadMessage(Start); |
| | 916 | | break; |
| | 917 | | } |
| | 918 | | case 18: { |
| | 919 | | if (end_ == null) { |
| | 920 | | End = new global::Decentraland.Common.Vector3(); |
| | 921 | | } |
| | 922 | | input.ReadMessage(End); |
| | 923 | | break; |
| | 924 | | } |
| | 925 | | case 24: { |
| | 926 | | FaceDirection = input.ReadBool(); |
| | 927 | | break; |
| | 928 | | } |
| | 929 | | } |
| | 930 | | } |
| | 931 | | } |
| | 932 | | #endif |
| | 933 | |
|
| | 934 | | } |
| | 935 | |
|
| | 936 | | public sealed partial class Rotate : pb::IMessage<Rotate> |
| | 937 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 938 | | , pb::IBufferMessage |
| | 939 | | #endif |
| | 940 | | { |
| | 941 | | private static readonly pb::MessageParser<Rotate> _parser = new pb::MessageParser<Rotate>(() => new Rotate()); |
| | 942 | | private pb::UnknownFieldSet _unknownFields; |
| | 943 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 944 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 945 | | public static pb::MessageParser<Rotate> Parser { get { return _parser; } } |
| | 946 | |
|
| | 947 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 948 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 949 | | public static pbr::MessageDescriptor Descriptor { |
| | 950 | | get { return global::DCL.ECSComponents.TweenReflection.Descriptor.MessageTypes[2]; } |
| | 951 | | } |
| | 952 | |
|
| | 953 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 954 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 955 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| | 956 | | get { return Descriptor; } |
| | 957 | | } |
| | 958 | |
|
| | 959 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 960 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 961 | | public Rotate() { |
| | 962 | | OnConstruction(); |
| | 963 | | } |
| | 964 | |
|
| | 965 | | partial void OnConstruction(); |
| | 966 | |
|
| | 967 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 968 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 969 | | public Rotate(Rotate other) : this() { |
| | 970 | | start_ = other.start_ != null ? other.start_.Clone() : null; |
| | 971 | | end_ = other.end_ != null ? other.end_.Clone() : null; |
| | 972 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| | 973 | | } |
| | 974 | |
|
| | 975 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 976 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 977 | | public Rotate Clone() { |
| | 978 | | return new Rotate(this); |
| | 979 | | } |
| | 980 | |
|
| | 981 | | /// <summary>Field number for the "start" field.</summary> |
| | 982 | | public const int StartFieldNumber = 1; |
| | 983 | | private global::Decentraland.Common.Quaternion start_; |
| | 984 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 985 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 986 | | public global::Decentraland.Common.Quaternion Start { |
| | 987 | | get { return start_; } |
| | 988 | | set { |
| | 989 | | start_ = value; |
| | 990 | | } |
| | 991 | | } |
| | 992 | |
|
| | 993 | | /// <summary>Field number for the "end" field.</summary> |
| | 994 | | public const int EndFieldNumber = 2; |
| | 995 | | private global::Decentraland.Common.Quaternion end_; |
| | 996 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 997 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 998 | | public global::Decentraland.Common.Quaternion End { |
| | 999 | | get { return end_; } |
| | 1000 | | set { |
| | 1001 | | end_ = value; |
| | 1002 | | } |
| | 1003 | | } |
| | 1004 | |
|
| | 1005 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1006 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1007 | | public override bool Equals(object other) { |
| | 1008 | | return Equals(other as Rotate); |
| | 1009 | | } |
| | 1010 | |
|
| | 1011 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1012 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1013 | | public bool Equals(Rotate other) { |
| | 1014 | | if (ReferenceEquals(other, null)) { |
| | 1015 | | return false; |
| | 1016 | | } |
| | 1017 | | if (ReferenceEquals(other, this)) { |
| | 1018 | | return true; |
| | 1019 | | } |
| | 1020 | | if (!object.Equals(Start, other.Start)) return false; |
| | 1021 | | if (!object.Equals(End, other.End)) return false; |
| | 1022 | | return Equals(_unknownFields, other._unknownFields); |
| | 1023 | | } |
| | 1024 | |
|
| | 1025 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1026 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1027 | | public override int GetHashCode() { |
| | 1028 | | int hash = 1; |
| | 1029 | | if (start_ != null) hash ^= Start.GetHashCode(); |
| | 1030 | | if (end_ != null) hash ^= End.GetHashCode(); |
| | 1031 | | if (_unknownFields != null) { |
| | 1032 | | hash ^= _unknownFields.GetHashCode(); |
| | 1033 | | } |
| | 1034 | | return hash; |
| | 1035 | | } |
| | 1036 | |
|
| | 1037 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1038 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1039 | | public override string ToString() { |
| | 1040 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 1041 | | } |
| | 1042 | |
|
| | 1043 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1044 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1045 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 1046 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 1047 | | output.WriteRawMessage(this); |
| | 1048 | | #else |
| | 1049 | | if (start_ != null) { |
| | 1050 | | output.WriteRawTag(10); |
| | 1051 | | output.WriteMessage(Start); |
| | 1052 | | } |
| | 1053 | | if (end_ != null) { |
| | 1054 | | output.WriteRawTag(18); |
| | 1055 | | output.WriteMessage(End); |
| | 1056 | | } |
| | 1057 | | if (_unknownFields != null) { |
| | 1058 | | _unknownFields.WriteTo(output); |
| | 1059 | | } |
| | 1060 | | #endif |
| | 1061 | | } |
| | 1062 | |
|
| | 1063 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 1064 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1065 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1066 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 1067 | | if (start_ != null) { |
| | 1068 | | output.WriteRawTag(10); |
| | 1069 | | output.WriteMessage(Start); |
| | 1070 | | } |
| | 1071 | | if (end_ != null) { |
| | 1072 | | output.WriteRawTag(18); |
| | 1073 | | output.WriteMessage(End); |
| | 1074 | | } |
| | 1075 | | if (_unknownFields != null) { |
| | 1076 | | _unknownFields.WriteTo(ref output); |
| | 1077 | | } |
| | 1078 | | } |
| | 1079 | | #endif |
| | 1080 | |
|
| | 1081 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1082 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1083 | | public int CalculateSize() { |
| | 1084 | | int size = 0; |
| | 1085 | | if (start_ != null) { |
| | 1086 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Start); |
| | 1087 | | } |
| | 1088 | | if (end_ != null) { |
| | 1089 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(End); |
| | 1090 | | } |
| | 1091 | | if (_unknownFields != null) { |
| | 1092 | | size += _unknownFields.CalculateSize(); |
| | 1093 | | } |
| | 1094 | | return size; |
| | 1095 | | } |
| | 1096 | |
|
| | 1097 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1098 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1099 | | public void MergeFrom(Rotate other) { |
| | 1100 | | if (other == null) { |
| | 1101 | | return; |
| | 1102 | | } |
| | 1103 | | if (other.start_ != null) { |
| | 1104 | | if (start_ == null) { |
| | 1105 | | Start = new global::Decentraland.Common.Quaternion(); |
| | 1106 | | } |
| | 1107 | | Start.MergeFrom(other.Start); |
| | 1108 | | } |
| | 1109 | | if (other.end_ != null) { |
| | 1110 | | if (end_ == null) { |
| | 1111 | | End = new global::Decentraland.Common.Quaternion(); |
| | 1112 | | } |
| | 1113 | | End.MergeFrom(other.End); |
| | 1114 | | } |
| | 1115 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| | 1116 | | } |
| | 1117 | |
|
| | 1118 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1119 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1120 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 1121 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 1122 | | input.ReadRawMessage(this); |
| | 1123 | | #else |
| | 1124 | | uint tag; |
| | 1125 | | while ((tag = input.ReadTag()) != 0) { |
| | 1126 | | switch(tag) { |
| | 1127 | | default: |
| | 1128 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | 1129 | | break; |
| | 1130 | | case 10: { |
| | 1131 | | if (start_ == null) { |
| | 1132 | | Start = new global::Decentraland.Common.Quaternion(); |
| | 1133 | | } |
| | 1134 | | input.ReadMessage(Start); |
| | 1135 | | break; |
| | 1136 | | } |
| | 1137 | | case 18: { |
| | 1138 | | if (end_ == null) { |
| | 1139 | | End = new global::Decentraland.Common.Quaternion(); |
| | 1140 | | } |
| | 1141 | | input.ReadMessage(End); |
| | 1142 | | break; |
| | 1143 | | } |
| | 1144 | | } |
| | 1145 | | } |
| | 1146 | | #endif |
| | 1147 | | } |
| | 1148 | |
|
| | 1149 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 1150 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1151 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1152 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 1153 | | uint tag; |
| | 1154 | | while ((tag = input.ReadTag()) != 0) { |
| | 1155 | | switch(tag) { |
| | 1156 | | default: |
| | 1157 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 1158 | | break; |
| | 1159 | | case 10: { |
| | 1160 | | if (start_ == null) { |
| | 1161 | | Start = new global::Decentraland.Common.Quaternion(); |
| | 1162 | | } |
| | 1163 | | input.ReadMessage(Start); |
| | 1164 | | break; |
| | 1165 | | } |
| | 1166 | | case 18: { |
| | 1167 | | if (end_ == null) { |
| | 1168 | | End = new global::Decentraland.Common.Quaternion(); |
| | 1169 | | } |
| | 1170 | | input.ReadMessage(End); |
| | 1171 | | break; |
| | 1172 | | } |
| | 1173 | | } |
| | 1174 | | } |
| | 1175 | | } |
| | 1176 | | #endif |
| | 1177 | |
|
| | 1178 | | } |
| | 1179 | |
|
| | 1180 | | public sealed partial class Scale : pb::IMessage<Scale> |
| | 1181 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 1182 | | , pb::IBufferMessage |
| | 1183 | | #endif |
| | 1184 | | { |
| | 1185 | | private static readonly pb::MessageParser<Scale> _parser = new pb::MessageParser<Scale>(() => new Scale()); |
| | 1186 | | private pb::UnknownFieldSet _unknownFields; |
| | 1187 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1188 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1189 | | public static pb::MessageParser<Scale> Parser { get { return _parser; } } |
| | 1190 | |
|
| | 1191 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1192 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1193 | | public static pbr::MessageDescriptor Descriptor { |
| | 1194 | | get { return global::DCL.ECSComponents.TweenReflection.Descriptor.MessageTypes[3]; } |
| | 1195 | | } |
| | 1196 | |
|
| | 1197 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1198 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1199 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| | 1200 | | get { return Descriptor; } |
| | 1201 | | } |
| | 1202 | |
|
| | 1203 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1204 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1205 | | public Scale() { |
| | 1206 | | OnConstruction(); |
| | 1207 | | } |
| | 1208 | |
|
| | 1209 | | partial void OnConstruction(); |
| | 1210 | |
|
| | 1211 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1212 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1213 | | public Scale(Scale other) : this() { |
| | 1214 | | start_ = other.start_ != null ? other.start_.Clone() : null; |
| | 1215 | | end_ = other.end_ != null ? other.end_.Clone() : null; |
| | 1216 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| | 1217 | | } |
| | 1218 | |
|
| | 1219 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1220 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1221 | | public Scale Clone() { |
| | 1222 | | return new Scale(this); |
| | 1223 | | } |
| | 1224 | |
|
| | 1225 | | /// <summary>Field number for the "start" field.</summary> |
| | 1226 | | public const int StartFieldNumber = 1; |
| | 1227 | | private global::Decentraland.Common.Vector3 start_; |
| | 1228 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1229 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1230 | | public global::Decentraland.Common.Vector3 Start { |
| | 1231 | | get { return start_; } |
| | 1232 | | set { |
| | 1233 | | start_ = value; |
| | 1234 | | } |
| | 1235 | | } |
| | 1236 | |
|
| | 1237 | | /// <summary>Field number for the "end" field.</summary> |
| | 1238 | | public const int EndFieldNumber = 2; |
| | 1239 | | private global::Decentraland.Common.Vector3 end_; |
| | 1240 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1241 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1242 | | public global::Decentraland.Common.Vector3 End { |
| | 1243 | | get { return end_; } |
| | 1244 | | set { |
| | 1245 | | end_ = value; |
| | 1246 | | } |
| | 1247 | | } |
| | 1248 | |
|
| | 1249 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1250 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1251 | | public override bool Equals(object other) { |
| | 1252 | | return Equals(other as Scale); |
| | 1253 | | } |
| | 1254 | |
|
| | 1255 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1256 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1257 | | public bool Equals(Scale other) { |
| | 1258 | | if (ReferenceEquals(other, null)) { |
| | 1259 | | return false; |
| | 1260 | | } |
| | 1261 | | if (ReferenceEquals(other, this)) { |
| | 1262 | | return true; |
| | 1263 | | } |
| | 1264 | | if (!object.Equals(Start, other.Start)) return false; |
| | 1265 | | if (!object.Equals(End, other.End)) return false; |
| | 1266 | | return Equals(_unknownFields, other._unknownFields); |
| | 1267 | | } |
| | 1268 | |
|
| | 1269 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1270 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1271 | | public override int GetHashCode() { |
| | 1272 | | int hash = 1; |
| | 1273 | | if (start_ != null) hash ^= Start.GetHashCode(); |
| | 1274 | | if (end_ != null) hash ^= End.GetHashCode(); |
| | 1275 | | if (_unknownFields != null) { |
| | 1276 | | hash ^= _unknownFields.GetHashCode(); |
| | 1277 | | } |
| | 1278 | | return hash; |
| | 1279 | | } |
| | 1280 | |
|
| | 1281 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1282 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1283 | | public override string ToString() { |
| | 1284 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 1285 | | } |
| | 1286 | |
|
| | 1287 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1288 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1289 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 1290 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 1291 | | output.WriteRawMessage(this); |
| | 1292 | | #else |
| | 1293 | | if (start_ != null) { |
| | 1294 | | output.WriteRawTag(10); |
| | 1295 | | output.WriteMessage(Start); |
| | 1296 | | } |
| | 1297 | | if (end_ != null) { |
| | 1298 | | output.WriteRawTag(18); |
| | 1299 | | output.WriteMessage(End); |
| | 1300 | | } |
| | 1301 | | if (_unknownFields != null) { |
| | 1302 | | _unknownFields.WriteTo(output); |
| | 1303 | | } |
| | 1304 | | #endif |
| | 1305 | | } |
| | 1306 | |
|
| | 1307 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 1308 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1309 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1310 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 1311 | | if (start_ != null) { |
| | 1312 | | output.WriteRawTag(10); |
| | 1313 | | output.WriteMessage(Start); |
| | 1314 | | } |
| | 1315 | | if (end_ != null) { |
| | 1316 | | output.WriteRawTag(18); |
| | 1317 | | output.WriteMessage(End); |
| | 1318 | | } |
| | 1319 | | if (_unknownFields != null) { |
| | 1320 | | _unknownFields.WriteTo(ref output); |
| | 1321 | | } |
| | 1322 | | } |
| | 1323 | | #endif |
| | 1324 | |
|
| | 1325 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1326 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1327 | | public int CalculateSize() { |
| | 1328 | | int size = 0; |
| | 1329 | | if (start_ != null) { |
| | 1330 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Start); |
| | 1331 | | } |
| | 1332 | | if (end_ != null) { |
| | 1333 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(End); |
| | 1334 | | } |
| | 1335 | | if (_unknownFields != null) { |
| | 1336 | | size += _unknownFields.CalculateSize(); |
| | 1337 | | } |
| | 1338 | | return size; |
| | 1339 | | } |
| | 1340 | |
|
| | 1341 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1342 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1343 | | public void MergeFrom(Scale other) { |
| | 1344 | | if (other == null) { |
| | 1345 | | return; |
| | 1346 | | } |
| | 1347 | | if (other.start_ != null) { |
| | 1348 | | if (start_ == null) { |
| | 1349 | | Start = new global::Decentraland.Common.Vector3(); |
| | 1350 | | } |
| | 1351 | | Start.MergeFrom(other.Start); |
| | 1352 | | } |
| | 1353 | | if (other.end_ != null) { |
| | 1354 | | if (end_ == null) { |
| | 1355 | | End = new global::Decentraland.Common.Vector3(); |
| | 1356 | | } |
| | 1357 | | End.MergeFrom(other.End); |
| | 1358 | | } |
| | 1359 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| | 1360 | | } |
| | 1361 | |
|
| | 1362 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1363 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1364 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 1365 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 1366 | | input.ReadRawMessage(this); |
| | 1367 | | #else |
| | 1368 | | uint tag; |
| | 1369 | | while ((tag = input.ReadTag()) != 0) { |
| | 1370 | | switch(tag) { |
| | 1371 | | default: |
| | 1372 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | 1373 | | break; |
| | 1374 | | case 10: { |
| | 1375 | | if (start_ == null) { |
| | 1376 | | Start = new global::Decentraland.Common.Vector3(); |
| | 1377 | | } |
| | 1378 | | input.ReadMessage(Start); |
| | 1379 | | break; |
| | 1380 | | } |
| | 1381 | | case 18: { |
| | 1382 | | if (end_ == null) { |
| | 1383 | | End = new global::Decentraland.Common.Vector3(); |
| | 1384 | | } |
| | 1385 | | input.ReadMessage(End); |
| | 1386 | | break; |
| | 1387 | | } |
| | 1388 | | } |
| | 1389 | | } |
| | 1390 | | #endif |
| | 1391 | | } |
| | 1392 | |
|
| | 1393 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 1394 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1395 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1396 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 1397 | | uint tag; |
| | 1398 | | while ((tag = input.ReadTag()) != 0) { |
| | 1399 | | switch(tag) { |
| | 1400 | | default: |
| | 1401 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 1402 | | break; |
| | 1403 | | case 10: { |
| | 1404 | | if (start_ == null) { |
| | 1405 | | Start = new global::Decentraland.Common.Vector3(); |
| | 1406 | | } |
| | 1407 | | input.ReadMessage(Start); |
| | 1408 | | break; |
| | 1409 | | } |
| | 1410 | | case 18: { |
| | 1411 | | if (end_ == null) { |
| | 1412 | | End = new global::Decentraland.Common.Vector3(); |
| | 1413 | | } |
| | 1414 | | input.ReadMessage(End); |
| | 1415 | | break; |
| | 1416 | | } |
| | 1417 | | } |
| | 1418 | | } |
| | 1419 | | } |
| | 1420 | | #endif |
| | 1421 | |
|
| | 1422 | | } |
| | 1423 | |
|
| | 1424 | | #endregion |
| | 1425 | |
|
| | 1426 | | } |
| | 1427 | |
|
| | 1428 | | #endregion Designer generated code |