| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: decentraland/sdk/components/text_shape.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/text_shape.proto</summary> |
| | 15 | | public static partial class TextShapeReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for decentraland/sdk/components/text_shape.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static TextShapeReflection() { |
| | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "CixkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvdGV4dF9zaGFwZS5wcm90", |
| | 28 | | "bxIbZGVjZW50cmFsYW5kLnNkay5jb21wb25lbnRzGiBkZWNlbnRyYWxhbmQv", |
| | 29 | | "Y29tbW9uL2NvbG9ycy5wcm90bxouZGVjZW50cmFsYW5kL3Nkay9jb21wb25l", |
| | 30 | | "bnRzL2NvbW1vbi90ZXh0cy5wcm90byKbCAoLUEJUZXh0U2hhcGUSDAoEdGV4", |
| | 31 | | "dBgBIAEoCRI7CgRmb250GAIgASgOMiguZGVjZW50cmFsYW5kLnNkay5jb21w", |
| | 32 | | "b25lbnRzLmNvbW1vbi5Gb250SACIAQESFgoJZm9udF9zaXplGAMgASgCSAGI", |
| | 33 | | "AQESGwoOZm9udF9hdXRvX3NpemUYBCABKAhIAogBARJKCgp0ZXh0X2FsaWdu", |
| | 34 | | "GAUgASgOMjEuZGVjZW50cmFsYW5kLnNkay5jb21wb25lbnRzLmNvbW1vbi5U", |
| | 35 | | "ZXh0QWxpZ25Nb2RlSAOIAQESEgoFd2lkdGgYBiABKAJIBIgBARITCgZoZWln", |
| | 36 | | "aHQYByABKAJIBYgBARIYCgtwYWRkaW5nX3RvcBgIIAEoAkgGiAEBEhoKDXBh", |
| | 37 | | "ZGRpbmdfcmlnaHQYCSABKAJIB4gBARIbCg5wYWRkaW5nX2JvdHRvbRgKIAEo", |
| | 38 | | "AkgIiAEBEhkKDHBhZGRpbmdfbGVmdBgLIAEoAkgJiAEBEhkKDGxpbmVfc3Bh", |
| | 39 | | "Y2luZxgMIAEoAkgKiAEBEhcKCmxpbmVfY291bnQYDSABKAVIC4gBARIaCg10", |
| | 40 | | "ZXh0X3dyYXBwaW5nGA4gASgISAyIAQESGAoLc2hhZG93X2JsdXIYDyABKAJI", |
| | 41 | | "DYgBARIcCg9zaGFkb3dfb2Zmc2V0X3gYECABKAJIDogBARIcCg9zaGFkb3df", |
| | 42 | | "b2Zmc2V0X3kYESABKAJID4gBARIaCg1vdXRsaW5lX3dpZHRoGBIgASgCSBCI", |
| | 43 | | "AQESNgoMc2hhZG93X2NvbG9yGBMgASgLMhsuZGVjZW50cmFsYW5kLmNvbW1v", |
| | 44 | | "bi5Db2xvcjNIEYgBARI3Cg1vdXRsaW5lX2NvbG9yGBQgASgLMhsuZGVjZW50", |
| | 45 | | "cmFsYW5kLmNvbW1vbi5Db2xvcjNIEogBARI0Cgp0ZXh0X2NvbG9yGBUgASgL", |
| | 46 | | "MhsuZGVjZW50cmFsYW5kLmNvbW1vbi5Db2xvcjRIE4gBAUIHCgVfZm9udEIM", |
| | 47 | | "CgpfZm9udF9zaXplQhEKD19mb250X2F1dG9fc2l6ZUINCgtfdGV4dF9hbGln", |
| | 48 | | "bkIICgZfd2lkdGhCCQoHX2hlaWdodEIOCgxfcGFkZGluZ190b3BCEAoOX3Bh", |
| | 49 | | "ZGRpbmdfcmlnaHRCEQoPX3BhZGRpbmdfYm90dG9tQg8KDV9wYWRkaW5nX2xl", |
| | 50 | | "ZnRCDwoNX2xpbmVfc3BhY2luZ0INCgtfbGluZV9jb3VudEIQCg5fdGV4dF93", |
| | 51 | | "cmFwcGluZ0IOCgxfc2hhZG93X2JsdXJCEgoQX3NoYWRvd19vZmZzZXRfeEIS", |
| | 52 | | "ChBfc2hhZG93X29mZnNldF95QhAKDl9vdXRsaW5lX3dpZHRoQg8KDV9zaGFk", |
| | 53 | | "b3dfY29sb3JCEAoOX291dGxpbmVfY29sb3JCDQoLX3RleHRfY29sb3JCFKoC", |
| | 54 | | "EURDTC5FQ1NDb21wb25lbnRzYgZwcm90bzM=")); |
| | 55 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 56 | | new pbr::FileDescriptor[] { global::Decentraland.Common.ColorsReflection.Descriptor, global::DCL.ECSComponents |
| | 57 | | new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
| | 58 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBTextShape), global::DCL.ECSComponents.PBTex |
| | 59 | | })); |
| | 60 | | } |
| | 61 | | #endregion |
| | 62 | |
|
| | 63 | | } |
| | 64 | | #region Messages |
| | 65 | | /// <summary> |
| | 66 | | /// The TextShape component renders customizable floating text. |
| | 67 | | /// |
| | 68 | | /// The position and rotation of the text are defined by the Entity's Transform, while its size |
| | 69 | | /// can either scale with the Transform or be fixed by a font size. |
| | 70 | | /// |
| | 71 | | /// Several options can be configured, including color, padding, line spacing and drop shadows. |
| | 72 | | /// </summary> |
| | 73 | | public sealed partial class PBTextShape : pb::IMessage<PBTextShape> |
| | 74 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 75 | | , pb::IBufferMessage |
| | 76 | | #endif |
| | 77 | | { |
| 1 | 78 | | private static readonly pb::MessageParser<PBTextShape> _parser = new pb::MessageParser<PBTextShape>(() => new PBText |
| | 79 | | private pb::UnknownFieldSet _unknownFields; |
| | 80 | | private int _hasBits0; |
| | 81 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 82 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 83 | | public static pb::MessageParser<PBTextShape> Parser { get { return _parser; } } |
| | 84 | |
|
| | 85 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 86 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 87 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 88 | | get { return global::DCL.ECSComponents.TextShapeReflection.Descriptor.MessageTypes[0]; } |
| | 89 | | } |
| | 90 | |
|
| | 91 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 92 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 93 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 94 | | get { return Descriptor; } |
| | 95 | | } |
| | 96 | |
|
| | 97 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 98 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 21 | 99 | | public PBTextShape() { |
| | 100 | | OnConstruction(); |
| 21 | 101 | | } |
| | 102 | |
|
| | 103 | | partial void OnConstruction(); |
| | 104 | |
|
| | 105 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 106 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 107 | | public PBTextShape(PBTextShape other) : this() { |
| 0 | 108 | | _hasBits0 = other._hasBits0; |
| 0 | 109 | | text_ = other.text_; |
| 0 | 110 | | font_ = other.font_; |
| 0 | 111 | | fontSize_ = other.fontSize_; |
| 0 | 112 | | fontAutoSize_ = other.fontAutoSize_; |
| 0 | 113 | | textAlign_ = other.textAlign_; |
| 0 | 114 | | width_ = other.width_; |
| 0 | 115 | | height_ = other.height_; |
| 0 | 116 | | paddingTop_ = other.paddingTop_; |
| 0 | 117 | | paddingRight_ = other.paddingRight_; |
| 0 | 118 | | paddingBottom_ = other.paddingBottom_; |
| 0 | 119 | | paddingLeft_ = other.paddingLeft_; |
| 0 | 120 | | lineSpacing_ = other.lineSpacing_; |
| 0 | 121 | | lineCount_ = other.lineCount_; |
| 0 | 122 | | textWrapping_ = other.textWrapping_; |
| 0 | 123 | | shadowBlur_ = other.shadowBlur_; |
| 0 | 124 | | shadowOffsetX_ = other.shadowOffsetX_; |
| 0 | 125 | | shadowOffsetY_ = other.shadowOffsetY_; |
| 0 | 126 | | outlineWidth_ = other.outlineWidth_; |
| 0 | 127 | | shadowColor_ = other.shadowColor_ != null ? other.shadowColor_.Clone() : null; |
| 0 | 128 | | outlineColor_ = other.outlineColor_ != null ? other.outlineColor_.Clone() : null; |
| 0 | 129 | | textColor_ = other.textColor_ != null ? other.textColor_.Clone() : null; |
| 0 | 130 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 0 | 131 | | } |
| | 132 | |
|
| | 133 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 134 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 135 | | public PBTextShape Clone() { |
| 0 | 136 | | return new PBTextShape(this); |
| | 137 | | } |
| | 138 | |
|
| | 139 | | /// <summary>Field number for the "text" field.</summary> |
| | 140 | | public const int TextFieldNumber = 1; |
| 21 | 141 | | private string text_ = ""; |
| | 142 | | /// <summary> |
| | 143 | | /// the content |
| | 144 | | /// </summary> |
| | 145 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 146 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 147 | | public string Text { |
| 23 | 148 | | get { return text_; } |
| | 149 | | set { |
| 2 | 150 | | text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 2 | 151 | | } |
| | 152 | | } |
| | 153 | |
|
| | 154 | | /// <summary>Field number for the "font" field.</summary> |
| | 155 | | public const int FontFieldNumber = 2; |
| | 156 | | private global::DCL.ECSComponents.Font font_; |
| | 157 | | /// <summary> |
| | 158 | | /// the font (default F_SANS_SERIF) |
| | 159 | | /// </summary> |
| | 160 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 161 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 162 | | public global::DCL.ECSComponents.Font Font { |
| 2 | 163 | | get { if ((_hasBits0 & 1) != 0) { return font_; } else { return global::DCL.ECSComponents.Font.FSansSerif; } } |
| | 164 | | set { |
| 1 | 165 | | _hasBits0 |= 1; |
| 1 | 166 | | font_ = value; |
| 1 | 167 | | } |
| | 168 | | } |
| | 169 | | /// <summary>Gets whether the "font" field is set</summary> |
| | 170 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 171 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 172 | | public bool HasFont { |
| 21 | 173 | | get { return (_hasBits0 & 1) != 0; } |
| | 174 | | } |
| | 175 | | /// <summary>Clears the value of the "font" field</summary> |
| | 176 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 177 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 178 | | public void ClearFont() { |
| 0 | 179 | | _hasBits0 &= ~1; |
| 0 | 180 | | } |
| | 181 | |
|
| | 182 | | /// <summary>Field number for the "font_size" field.</summary> |
| | 183 | | public const int FontSizeFieldNumber = 3; |
| | 184 | | private float fontSize_; |
| | 185 | | /// <summary> |
| | 186 | | /// the font size (default 10) |
| | 187 | | /// </summary> |
| | 188 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 189 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 190 | | public float FontSize { |
| 2 | 191 | | get { if ((_hasBits0 & 2) != 0) { return fontSize_; } else { return 0F; } } |
| | 192 | | set { |
| 1 | 193 | | _hasBits0 |= 2; |
| 1 | 194 | | fontSize_ = value; |
| 1 | 195 | | } |
| | 196 | | } |
| | 197 | | /// <summary>Gets whether the "font_size" field is set</summary> |
| | 198 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 199 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 200 | | public bool HasFontSize { |
| 21 | 201 | | get { return (_hasBits0 & 2) != 0; } |
| | 202 | | } |
| | 203 | | /// <summary>Clears the value of the "font_size" field</summary> |
| | 204 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 205 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 206 | | public void ClearFontSize() { |
| 0 | 207 | | _hasBits0 &= ~2; |
| 0 | 208 | | } |
| | 209 | |
|
| | 210 | | /// <summary>Field number for the "font_auto_size" field.</summary> |
| | 211 | | public const int FontAutoSizeFieldNumber = 4; |
| | 212 | | private bool fontAutoSize_; |
| | 213 | | /// <summary> |
| | 214 | | /// override `font_size` to automatically fit in `width`/`height` |
| | 215 | | /// </summary> |
| | 216 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 217 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 218 | | public bool FontAutoSize { |
| 4 | 219 | | get { if ((_hasBits0 & 4) != 0) { return fontAutoSize_; } else { return false; } } |
| | 220 | | set { |
| 2 | 221 | | _hasBits0 |= 4; |
| 2 | 222 | | fontAutoSize_ = value; |
| 2 | 223 | | } |
| | 224 | | } |
| | 225 | | /// <summary>Gets whether the "font_auto_size" field is set</summary> |
| | 226 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 227 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 228 | | public bool HasFontAutoSize { |
| 25 | 229 | | get { return (_hasBits0 & 4) != 0; } |
| | 230 | | } |
| | 231 | | /// <summary>Clears the value of the "font_auto_size" field</summary> |
| | 232 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 233 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 234 | | public void ClearFontAutoSize() { |
| 0 | 235 | | _hasBits0 &= ~4; |
| 0 | 236 | | } |
| | 237 | |
|
| | 238 | | /// <summary>Field number for the "text_align" field.</summary> |
| | 239 | | public const int TextAlignFieldNumber = 5; |
| | 240 | | private global::DCL.ECSComponents.TextAlignMode textAlign_; |
| | 241 | | /// <summary> |
| | 242 | | /// X and Y alignment (default TAM_CENTER_CENTER) |
| | 243 | | /// </summary> |
| | 244 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 245 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 246 | | public global::DCL.ECSComponents.TextAlignMode TextAlign { |
| 8 | 247 | | get { if ((_hasBits0 & 8) != 0) { return textAlign_; } else { return global::DCL.ECSComponents.TextAlignMode.TamTo |
| | 248 | | set { |
| 4 | 249 | | _hasBits0 |= 8; |
| 4 | 250 | | textAlign_ = value; |
| 4 | 251 | | } |
| | 252 | | } |
| | 253 | | /// <summary>Gets whether the "text_align" field is set</summary> |
| | 254 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 255 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 256 | | public bool HasTextAlign { |
| 21 | 257 | | get { return (_hasBits0 & 8) != 0; } |
| | 258 | | } |
| | 259 | | /// <summary>Clears the value of the "text_align" field</summary> |
| | 260 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 261 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 262 | | public void ClearTextAlign() { |
| 0 | 263 | | _hasBits0 &= ~8; |
| 0 | 264 | | } |
| | 265 | |
|
| | 266 | | /// <summary>Field number for the "width" field.</summary> |
| | 267 | | public const int WidthFieldNumber = 6; |
| | 268 | | private float width_; |
| | 269 | | /// <summary> |
| | 270 | | /// available horizontal space (default 1) |
| | 271 | | /// </summary> |
| | 272 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 273 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 274 | | public float Width { |
| 8 | 275 | | get { if ((_hasBits0 & 16) != 0) { return width_; } else { return 0F; } } |
| | 276 | | set { |
| 4 | 277 | | _hasBits0 |= 16; |
| 4 | 278 | | width_ = value; |
| 4 | 279 | | } |
| | 280 | | } |
| | 281 | | /// <summary>Gets whether the "width" field is set</summary> |
| | 282 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 283 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 284 | | public bool HasWidth { |
| 4 | 285 | | get { return (_hasBits0 & 16) != 0; } |
| | 286 | | } |
| | 287 | | /// <summary>Clears the value of the "width" field</summary> |
| | 288 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 289 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 290 | | public void ClearWidth() { |
| 0 | 291 | | _hasBits0 &= ~16; |
| 0 | 292 | | } |
| | 293 | |
|
| | 294 | | /// <summary>Field number for the "height" field.</summary> |
| | 295 | | public const int HeightFieldNumber = 7; |
| | 296 | | private float height_; |
| | 297 | | /// <summary> |
| | 298 | | /// available vertical space (default 1) |
| | 299 | | /// </summary> |
| | 300 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 301 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 302 | | public float Height { |
| 8 | 303 | | get { if ((_hasBits0 & 32) != 0) { return height_; } else { return 0F; } } |
| | 304 | | set { |
| 4 | 305 | | _hasBits0 |= 32; |
| 4 | 306 | | height_ = value; |
| 4 | 307 | | } |
| | 308 | | } |
| | 309 | | /// <summary>Gets whether the "height" field is set</summary> |
| | 310 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 311 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 312 | | public bool HasHeight { |
| 4 | 313 | | get { return (_hasBits0 & 32) != 0; } |
| | 314 | | } |
| | 315 | | /// <summary>Clears the value of the "height" field</summary> |
| | 316 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 317 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 318 | | public void ClearHeight() { |
| 0 | 319 | | _hasBits0 &= ~32; |
| 0 | 320 | | } |
| | 321 | |
|
| | 322 | | /// <summary>Field number for the "padding_top" field.</summary> |
| | 323 | | public const int PaddingTopFieldNumber = 8; |
| | 324 | | private float paddingTop_; |
| | 325 | | /// <summary> |
| | 326 | | /// distance from text to top border (default 0) |
| | 327 | | /// </summary> |
| | 328 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 329 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 330 | | public float PaddingTop { |
| 4 | 331 | | get { if ((_hasBits0 & 64) != 0) { return paddingTop_; } else { return 0F; } } |
| | 332 | | set { |
| 1 | 333 | | _hasBits0 |= 64; |
| 1 | 334 | | paddingTop_ = value; |
| 1 | 335 | | } |
| | 336 | | } |
| | 337 | | /// <summary>Gets whether the "padding_top" field is set</summary> |
| | 338 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 339 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 340 | | public bool HasPaddingTop { |
| 21 | 341 | | get { return (_hasBits0 & 64) != 0; } |
| | 342 | | } |
| | 343 | | /// <summary>Clears the value of the "padding_top" field</summary> |
| | 344 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 345 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 346 | | public void ClearPaddingTop() { |
| 0 | 347 | | _hasBits0 &= ~64; |
| 0 | 348 | | } |
| | 349 | |
|
| | 350 | | /// <summary>Field number for the "padding_right" field.</summary> |
| | 351 | | public const int PaddingRightFieldNumber = 9; |
| | 352 | | private float paddingRight_; |
| | 353 | | /// <summary> |
| | 354 | | /// distance from text to right border (default 0) |
| | 355 | | /// </summary> |
| | 356 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 357 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 358 | | public float PaddingRight { |
| 4 | 359 | | get { if ((_hasBits0 & 128) != 0) { return paddingRight_; } else { return 0F; } } |
| | 360 | | set { |
| 1 | 361 | | _hasBits0 |= 128; |
| 1 | 362 | | paddingRight_ = value; |
| 1 | 363 | | } |
| | 364 | | } |
| | 365 | | /// <summary>Gets whether the "padding_right" field is set</summary> |
| | 366 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 367 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 368 | | public bool HasPaddingRight { |
| 21 | 369 | | get { return (_hasBits0 & 128) != 0; } |
| | 370 | | } |
| | 371 | | /// <summary>Clears the value of the "padding_right" field</summary> |
| | 372 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 373 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 374 | | public void ClearPaddingRight() { |
| 0 | 375 | | _hasBits0 &= ~128; |
| 0 | 376 | | } |
| | 377 | |
|
| | 378 | | /// <summary>Field number for the "padding_bottom" field.</summary> |
| | 379 | | public const int PaddingBottomFieldNumber = 10; |
| | 380 | | private float paddingBottom_; |
| | 381 | | /// <summary> |
| | 382 | | /// distance from text to bottom border (default 0) |
| | 383 | | /// </summary> |
| | 384 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 385 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 386 | | public float PaddingBottom { |
| 4 | 387 | | get { if ((_hasBits0 & 256) != 0) { return paddingBottom_; } else { return 0F; } } |
| | 388 | | set { |
| 1 | 389 | | _hasBits0 |= 256; |
| 1 | 390 | | paddingBottom_ = value; |
| 1 | 391 | | } |
| | 392 | | } |
| | 393 | | /// <summary>Gets whether the "padding_bottom" field is set</summary> |
| | 394 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 395 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 396 | | public bool HasPaddingBottom { |
| 21 | 397 | | get { return (_hasBits0 & 256) != 0; } |
| | 398 | | } |
| | 399 | | /// <summary>Clears the value of the "padding_bottom" field</summary> |
| | 400 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 401 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 402 | | public void ClearPaddingBottom() { |
| 0 | 403 | | _hasBits0 &= ~256; |
| 0 | 404 | | } |
| | 405 | |
|
| | 406 | | /// <summary>Field number for the "padding_left" field.</summary> |
| | 407 | | public const int PaddingLeftFieldNumber = 11; |
| | 408 | | private float paddingLeft_; |
| | 409 | | /// <summary> |
| | 410 | | /// distance from text to left border (default 0) |
| | 411 | | /// </summary> |
| | 412 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 413 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 414 | | public float PaddingLeft { |
| 4 | 415 | | get { if ((_hasBits0 & 512) != 0) { return paddingLeft_; } else { return 0F; } } |
| | 416 | | set { |
| 1 | 417 | | _hasBits0 |= 512; |
| 1 | 418 | | paddingLeft_ = value; |
| 1 | 419 | | } |
| | 420 | | } |
| | 421 | | /// <summary>Gets whether the "padding_left" field is set</summary> |
| | 422 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 423 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 424 | | public bool HasPaddingLeft { |
| 21 | 425 | | get { return (_hasBits0 & 512) != 0; } |
| | 426 | | } |
| | 427 | | /// <summary>Clears the value of the "padding_left" field</summary> |
| | 428 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 429 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 430 | | public void ClearPaddingLeft() { |
| 0 | 431 | | _hasBits0 &= ~512; |
| 0 | 432 | | } |
| | 433 | |
|
| | 434 | | /// <summary>Field number for the "line_spacing" field.</summary> |
| | 435 | | public const int LineSpacingFieldNumber = 12; |
| | 436 | | private float lineSpacing_; |
| | 437 | | /// <summary> |
| | 438 | | /// extra distance between lines (default 0) |
| | 439 | | /// </summary> |
| | 440 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 441 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 442 | | public float LineSpacing { |
| 2 | 443 | | get { if ((_hasBits0 & 1024) != 0) { return lineSpacing_; } else { return 0F; } } |
| | 444 | | set { |
| 1 | 445 | | _hasBits0 |= 1024; |
| 1 | 446 | | lineSpacing_ = value; |
| 1 | 447 | | } |
| | 448 | | } |
| | 449 | | /// <summary>Gets whether the "line_spacing" field is set</summary> |
| | 450 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 451 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 452 | | public bool HasLineSpacing { |
| 21 | 453 | | get { return (_hasBits0 & 1024) != 0; } |
| | 454 | | } |
| | 455 | | /// <summary>Clears the value of the "line_spacing" field</summary> |
| | 456 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 457 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 458 | | public void ClearLineSpacing() { |
| 0 | 459 | | _hasBits0 &= ~1024; |
| 0 | 460 | | } |
| | 461 | |
|
| | 462 | | /// <summary>Field number for the "line_count" field.</summary> |
| | 463 | | public const int LineCountFieldNumber = 13; |
| | 464 | | private int lineCount_; |
| | 465 | | /// <summary> |
| | 466 | | /// maximum number of lines to display |
| | 467 | | /// </summary> |
| | 468 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 469 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 470 | | public int LineCount { |
| 4 | 471 | | get { if ((_hasBits0 & 2048) != 0) { return lineCount_; } else { return 0; } } |
| | 472 | | set { |
| 1 | 473 | | _hasBits0 |= 2048; |
| 1 | 474 | | lineCount_ = value; |
| 1 | 475 | | } |
| | 476 | | } |
| | 477 | | /// <summary>Gets whether the "line_count" field is set</summary> |
| | 478 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 479 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 480 | | public bool HasLineCount { |
| 22 | 481 | | get { return (_hasBits0 & 2048) != 0; } |
| | 482 | | } |
| | 483 | | /// <summary>Clears the value of the "line_count" field</summary> |
| | 484 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 485 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 486 | | public void ClearLineCount() { |
| 0 | 487 | | _hasBits0 &= ~2048; |
| 0 | 488 | | } |
| | 489 | |
|
| | 490 | | /// <summary>Field number for the "text_wrapping" field.</summary> |
| | 491 | | public const int TextWrappingFieldNumber = 14; |
| | 492 | | private bool textWrapping_; |
| | 493 | | /// <summary> |
| | 494 | | /// wrap text when the border is reached (default false) |
| | 495 | | /// </summary> |
| | 496 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 497 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 498 | | public bool TextWrapping { |
| 20 | 499 | | get { if ((_hasBits0 & 4096) != 0) { return textWrapping_; } else { return false; } } |
| | 500 | | set { |
| 5 | 501 | | _hasBits0 |= 4096; |
| 5 | 502 | | textWrapping_ = value; |
| 5 | 503 | | } |
| | 504 | | } |
| | 505 | | /// <summary>Gets whether the "text_wrapping" field is set</summary> |
| | 506 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 507 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 508 | | public bool HasTextWrapping { |
| 42 | 509 | | get { return (_hasBits0 & 4096) != 0; } |
| | 510 | | } |
| | 511 | | /// <summary>Clears the value of the "text_wrapping" field</summary> |
| | 512 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 513 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 514 | | public void ClearTextWrapping() { |
| 0 | 515 | | _hasBits0 &= ~4096; |
| 0 | 516 | | } |
| | 517 | |
|
| | 518 | | /// <summary>Field number for the "shadow_blur" field.</summary> |
| | 519 | | public const int ShadowBlurFieldNumber = 15; |
| | 520 | | private float shadowBlur_; |
| | 521 | | /// <summary> |
| | 522 | | /// blurriness of the drop shadow (default 0) |
| | 523 | | /// </summary> |
| | 524 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 525 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 526 | | public float ShadowBlur { |
| 0 | 527 | | get { if ((_hasBits0 & 8192) != 0) { return shadowBlur_; } else { return 0F; } } |
| | 528 | | set { |
| 0 | 529 | | _hasBits0 |= 8192; |
| 0 | 530 | | shadowBlur_ = value; |
| 0 | 531 | | } |
| | 532 | | } |
| | 533 | | /// <summary>Gets whether the "shadow_blur" field is set</summary> |
| | 534 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 535 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 536 | | public bool HasShadowBlur { |
| 20 | 537 | | get { return (_hasBits0 & 8192) != 0; } |
| | 538 | | } |
| | 539 | | /// <summary>Clears the value of the "shadow_blur" field</summary> |
| | 540 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 541 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 542 | | public void ClearShadowBlur() { |
| 0 | 543 | | _hasBits0 &= ~8192; |
| 0 | 544 | | } |
| | 545 | |
|
| | 546 | | /// <summary>Field number for the "shadow_offset_x" field.</summary> |
| | 547 | | public const int ShadowOffsetXFieldNumber = 16; |
| | 548 | | private float shadowOffsetX_; |
| | 549 | | /// <summary> |
| | 550 | | /// horizontal length of the shadow (default 0) |
| | 551 | | /// </summary> |
| | 552 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 553 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 554 | | public float ShadowOffsetX { |
| 0 | 555 | | get { if ((_hasBits0 & 16384) != 0) { return shadowOffsetX_; } else { return 0F; } } |
| | 556 | | set { |
| 0 | 557 | | _hasBits0 |= 16384; |
| 0 | 558 | | shadowOffsetX_ = value; |
| 0 | 559 | | } |
| | 560 | | } |
| | 561 | | /// <summary>Gets whether the "shadow_offset_x" field is set</summary> |
| | 562 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 563 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 564 | | public bool HasShadowOffsetX { |
| 20 | 565 | | get { return (_hasBits0 & 16384) != 0; } |
| | 566 | | } |
| | 567 | | /// <summary>Clears the value of the "shadow_offset_x" field</summary> |
| | 568 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 569 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 570 | | public void ClearShadowOffsetX() { |
| 0 | 571 | | _hasBits0 &= ~16384; |
| 0 | 572 | | } |
| | 573 | |
|
| | 574 | | /// <summary>Field number for the "shadow_offset_y" field.</summary> |
| | 575 | | public const int ShadowOffsetYFieldNumber = 17; |
| | 576 | | private float shadowOffsetY_; |
| | 577 | | /// <summary> |
| | 578 | | /// vertical length of the shadow (default 0) |
| | 579 | | /// </summary> |
| | 580 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 581 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 582 | | public float ShadowOffsetY { |
| 0 | 583 | | get { if ((_hasBits0 & 32768) != 0) { return shadowOffsetY_; } else { return 0F; } } |
| | 584 | | set { |
| 0 | 585 | | _hasBits0 |= 32768; |
| 0 | 586 | | shadowOffsetY_ = value; |
| 0 | 587 | | } |
| | 588 | | } |
| | 589 | | /// <summary>Gets whether the "shadow_offset_y" field is set</summary> |
| | 590 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 591 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 592 | | public bool HasShadowOffsetY { |
| 20 | 593 | | get { return (_hasBits0 & 32768) != 0; } |
| | 594 | | } |
| | 595 | | /// <summary>Clears the value of the "shadow_offset_y" field</summary> |
| | 596 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 597 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 598 | | public void ClearShadowOffsetY() { |
| 0 | 599 | | _hasBits0 &= ~32768; |
| 0 | 600 | | } |
| | 601 | |
|
| | 602 | | /// <summary>Field number for the "outline_width" field.</summary> |
| | 603 | | public const int OutlineWidthFieldNumber = 18; |
| | 604 | | private float outlineWidth_; |
| | 605 | | /// <summary> |
| | 606 | | /// width of the stroke outlining each letter (default 0) |
| | 607 | | /// </summary> |
| | 608 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 609 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 610 | | public float OutlineWidth { |
| 4 | 611 | | get { if ((_hasBits0 & 65536) != 0) { return outlineWidth_; } else { return 0F; } } |
| | 612 | | set { |
| 1 | 613 | | _hasBits0 |= 65536; |
| 1 | 614 | | outlineWidth_ = value; |
| 1 | 615 | | } |
| | 616 | | } |
| | 617 | | /// <summary>Gets whether the "outline_width" field is set</summary> |
| | 618 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 619 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 620 | | public bool HasOutlineWidth { |
| 20 | 621 | | get { return (_hasBits0 & 65536) != 0; } |
| | 622 | | } |
| | 623 | | /// <summary>Clears the value of the "outline_width" field</summary> |
| | 624 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 625 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 626 | | public void ClearOutlineWidth() { |
| 0 | 627 | | _hasBits0 &= ~65536; |
| 0 | 628 | | } |
| | 629 | |
|
| | 630 | | /// <summary>Field number for the "shadow_color" field.</summary> |
| | 631 | | public const int ShadowColorFieldNumber = 19; |
| | 632 | | private global::Decentraland.Common.Color3 shadowColor_; |
| | 633 | | /// <summary> |
| | 634 | | /// drop shadow color (default [1.0, 1.0, 1.0]) |
| | 635 | | /// </summary> |
| | 636 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 637 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 638 | | public global::Decentraland.Common.Color3 ShadowColor { |
| 20 | 639 | | get { return shadowColor_; } |
| | 640 | | set { |
| 0 | 641 | | shadowColor_ = value; |
| 0 | 642 | | } |
| | 643 | | } |
| | 644 | |
|
| | 645 | | /// <summary>Field number for the "outline_color" field.</summary> |
| | 646 | | public const int OutlineColorFieldNumber = 20; |
| | 647 | | private global::Decentraland.Common.Color3 outlineColor_; |
| | 648 | | /// <summary> |
| | 649 | | /// outline stroke color (default [1.0, 1.0, 1.0]) |
| | 650 | | /// </summary> |
| | 651 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 652 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 653 | | public global::Decentraland.Common.Color3 OutlineColor { |
| 23 | 654 | | get { return outlineColor_; } |
| | 655 | | set { |
| 1 | 656 | | outlineColor_ = value; |
| 1 | 657 | | } |
| | 658 | | } |
| | 659 | |
|
| | 660 | | /// <summary>Field number for the "text_color" field.</summary> |
| | 661 | | public const int TextColorFieldNumber = 21; |
| | 662 | | private global::Decentraland.Common.Color4 textColor_; |
| | 663 | | /// <summary> |
| | 664 | | /// text color (default [1.0, 1.0, 1.0]) |
| | 665 | | /// </summary> |
| | 666 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 667 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 668 | | public global::Decentraland.Common.Color4 TextColor { |
| 21 | 669 | | get { return textColor_; } |
| | 670 | | set { |
| 2 | 671 | | textColor_ = value; |
| 2 | 672 | | } |
| | 673 | | } |
| | 674 | |
|
| | 675 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 676 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 677 | | public override bool Equals(object other) { |
| 0 | 678 | | return Equals(other as PBTextShape); |
| | 679 | | } |
| | 680 | |
|
| | 681 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 682 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 683 | | public bool Equals(PBTextShape other) { |
| 21 | 684 | | if (ReferenceEquals(other, null)) { |
| 20 | 685 | | return false; |
| | 686 | | } |
| 1 | 687 | | if (ReferenceEquals(other, this)) { |
| 0 | 688 | | return true; |
| | 689 | | } |
| 2 | 690 | | if (Text != other.Text) return false; |
| 0 | 691 | | if (Font != other.Font) return false; |
| 0 | 692 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(FontSize, other.FontSize)) return false; |
| 0 | 693 | | if (FontAutoSize != other.FontAutoSize) return false; |
| 0 | 694 | | if (TextAlign != other.TextAlign) return false; |
| 0 | 695 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Width, other.Width)) return false; |
| 0 | 696 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Height, other.Height)) return false; |
| 0 | 697 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PaddingTop, other.PaddingTop)) return fal |
| 0 | 698 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PaddingRight, other.PaddingRight)) return |
| 0 | 699 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PaddingBottom, other.PaddingBottom)) retu |
| 0 | 700 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PaddingLeft, other.PaddingLeft)) return f |
| 0 | 701 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(LineSpacing, other.LineSpacing)) return f |
| 0 | 702 | | if (LineCount != other.LineCount) return false; |
| 0 | 703 | | if (TextWrapping != other.TextWrapping) return false; |
| 0 | 704 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ShadowBlur, other.ShadowBlur)) return fal |
| 0 | 705 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ShadowOffsetX, other.ShadowOffsetX)) retu |
| 0 | 706 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ShadowOffsetY, other.ShadowOffsetY)) retu |
| 0 | 707 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OutlineWidth, other.OutlineWidth)) return |
| 0 | 708 | | if (!object.Equals(ShadowColor, other.ShadowColor)) return false; |
| 0 | 709 | | if (!object.Equals(OutlineColor, other.OutlineColor)) return false; |
| 0 | 710 | | if (!object.Equals(TextColor, other.TextColor)) return false; |
| 0 | 711 | | return Equals(_unknownFields, other._unknownFields); |
| | 712 | | } |
| | 713 | |
|
| | 714 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 715 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 716 | | public override int GetHashCode() { |
| 0 | 717 | | int hash = 1; |
| 0 | 718 | | if (Text.Length != 0) hash ^= Text.GetHashCode(); |
| 0 | 719 | | if (HasFont) hash ^= Font.GetHashCode(); |
| 0 | 720 | | if (HasFontSize) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(FontSize); |
| 0 | 721 | | if (HasFontAutoSize) hash ^= FontAutoSize.GetHashCode(); |
| 0 | 722 | | if (HasTextAlign) hash ^= TextAlign.GetHashCode(); |
| 0 | 723 | | if (HasWidth) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Width); |
| 0 | 724 | | if (HasHeight) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Height); |
| 0 | 725 | | if (HasPaddingTop) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PaddingTop); |
| 0 | 726 | | if (HasPaddingRight) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PaddingRight |
| 0 | 727 | | if (HasPaddingBottom) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PaddingBott |
| 0 | 728 | | if (HasPaddingLeft) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PaddingLeft); |
| 0 | 729 | | if (HasLineSpacing) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(LineSpacing); |
| 0 | 730 | | if (HasLineCount) hash ^= LineCount.GetHashCode(); |
| 0 | 731 | | if (HasTextWrapping) hash ^= TextWrapping.GetHashCode(); |
| 0 | 732 | | if (HasShadowBlur) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ShadowBlur); |
| 0 | 733 | | if (HasShadowOffsetX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ShadowOffse |
| 0 | 734 | | if (HasShadowOffsetY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ShadowOffse |
| 0 | 735 | | if (HasOutlineWidth) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(OutlineWidth |
| 0 | 736 | | if (shadowColor_ != null) hash ^= ShadowColor.GetHashCode(); |
| 0 | 737 | | if (outlineColor_ != null) hash ^= OutlineColor.GetHashCode(); |
| 0 | 738 | | if (textColor_ != null) hash ^= TextColor.GetHashCode(); |
| 0 | 739 | | if (_unknownFields != null) { |
| 0 | 740 | | hash ^= _unknownFields.GetHashCode(); |
| | 741 | | } |
| 0 | 742 | | return hash; |
| | 743 | | } |
| | 744 | |
|
| | 745 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 746 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 747 | | public override string ToString() { |
| 0 | 748 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 749 | | } |
| | 750 | |
|
| | 751 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 752 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 753 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 754 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 755 | | output.WriteRawMessage(this); |
| | 756 | | #else |
| 0 | 757 | | if (Text.Length != 0) { |
| 0 | 758 | | output.WriteRawTag(10); |
| 0 | 759 | | output.WriteString(Text); |
| | 760 | | } |
| 0 | 761 | | if (HasFont) { |
| 0 | 762 | | output.WriteRawTag(16); |
| 0 | 763 | | output.WriteEnum((int) Font); |
| | 764 | | } |
| 0 | 765 | | if (HasFontSize) { |
| 0 | 766 | | output.WriteRawTag(29); |
| 0 | 767 | | output.WriteFloat(FontSize); |
| | 768 | | } |
| 0 | 769 | | if (HasFontAutoSize) { |
| 0 | 770 | | output.WriteRawTag(32); |
| 0 | 771 | | output.WriteBool(FontAutoSize); |
| | 772 | | } |
| 0 | 773 | | if (HasTextAlign) { |
| 0 | 774 | | output.WriteRawTag(40); |
| 0 | 775 | | output.WriteEnum((int) TextAlign); |
| | 776 | | } |
| 0 | 777 | | if (HasWidth) { |
| 0 | 778 | | output.WriteRawTag(53); |
| 0 | 779 | | output.WriteFloat(Width); |
| | 780 | | } |
| 0 | 781 | | if (HasHeight) { |
| 0 | 782 | | output.WriteRawTag(61); |
| 0 | 783 | | output.WriteFloat(Height); |
| | 784 | | } |
| 0 | 785 | | if (HasPaddingTop) { |
| 0 | 786 | | output.WriteRawTag(69); |
| 0 | 787 | | output.WriteFloat(PaddingTop); |
| | 788 | | } |
| 0 | 789 | | if (HasPaddingRight) { |
| 0 | 790 | | output.WriteRawTag(77); |
| 0 | 791 | | output.WriteFloat(PaddingRight); |
| | 792 | | } |
| 0 | 793 | | if (HasPaddingBottom) { |
| 0 | 794 | | output.WriteRawTag(85); |
| 0 | 795 | | output.WriteFloat(PaddingBottom); |
| | 796 | | } |
| 0 | 797 | | if (HasPaddingLeft) { |
| 0 | 798 | | output.WriteRawTag(93); |
| 0 | 799 | | output.WriteFloat(PaddingLeft); |
| | 800 | | } |
| 0 | 801 | | if (HasLineSpacing) { |
| 0 | 802 | | output.WriteRawTag(101); |
| 0 | 803 | | output.WriteFloat(LineSpacing); |
| | 804 | | } |
| 0 | 805 | | if (HasLineCount) { |
| 0 | 806 | | output.WriteRawTag(104); |
| 0 | 807 | | output.WriteInt32(LineCount); |
| | 808 | | } |
| 0 | 809 | | if (HasTextWrapping) { |
| 0 | 810 | | output.WriteRawTag(112); |
| 0 | 811 | | output.WriteBool(TextWrapping); |
| | 812 | | } |
| 0 | 813 | | if (HasShadowBlur) { |
| 0 | 814 | | output.WriteRawTag(125); |
| 0 | 815 | | output.WriteFloat(ShadowBlur); |
| | 816 | | } |
| 0 | 817 | | if (HasShadowOffsetX) { |
| 0 | 818 | | output.WriteRawTag(133, 1); |
| 0 | 819 | | output.WriteFloat(ShadowOffsetX); |
| | 820 | | } |
| 0 | 821 | | if (HasShadowOffsetY) { |
| 0 | 822 | | output.WriteRawTag(141, 1); |
| 0 | 823 | | output.WriteFloat(ShadowOffsetY); |
| | 824 | | } |
| 0 | 825 | | if (HasOutlineWidth) { |
| 0 | 826 | | output.WriteRawTag(149, 1); |
| 0 | 827 | | output.WriteFloat(OutlineWidth); |
| | 828 | | } |
| 0 | 829 | | if (shadowColor_ != null) { |
| 0 | 830 | | output.WriteRawTag(154, 1); |
| 0 | 831 | | output.WriteMessage(ShadowColor); |
| | 832 | | } |
| 0 | 833 | | if (outlineColor_ != null) { |
| 0 | 834 | | output.WriteRawTag(162, 1); |
| 0 | 835 | | output.WriteMessage(OutlineColor); |
| | 836 | | } |
| 0 | 837 | | if (textColor_ != null) { |
| 0 | 838 | | output.WriteRawTag(170, 1); |
| 0 | 839 | | output.WriteMessage(TextColor); |
| | 840 | | } |
| 0 | 841 | | if (_unknownFields != null) { |
| 0 | 842 | | _unknownFields.WriteTo(output); |
| | 843 | | } |
| | 844 | | #endif |
| 0 | 845 | | } |
| | 846 | |
|
| | 847 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 848 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 849 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 850 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 851 | | if (Text.Length != 0) { |
| | 852 | | output.WriteRawTag(10); |
| | 853 | | output.WriteString(Text); |
| | 854 | | } |
| | 855 | | if (HasFont) { |
| | 856 | | output.WriteRawTag(16); |
| | 857 | | output.WriteEnum((int) Font); |
| | 858 | | } |
| | 859 | | if (HasFontSize) { |
| | 860 | | output.WriteRawTag(29); |
| | 861 | | output.WriteFloat(FontSize); |
| | 862 | | } |
| | 863 | | if (HasFontAutoSize) { |
| | 864 | | output.WriteRawTag(32); |
| | 865 | | output.WriteBool(FontAutoSize); |
| | 866 | | } |
| | 867 | | if (HasTextAlign) { |
| | 868 | | output.WriteRawTag(40); |
| | 869 | | output.WriteEnum((int) TextAlign); |
| | 870 | | } |
| | 871 | | if (HasWidth) { |
| | 872 | | output.WriteRawTag(53); |
| | 873 | | output.WriteFloat(Width); |
| | 874 | | } |
| | 875 | | if (HasHeight) { |
| | 876 | | output.WriteRawTag(61); |
| | 877 | | output.WriteFloat(Height); |
| | 878 | | } |
| | 879 | | if (HasPaddingTop) { |
| | 880 | | output.WriteRawTag(69); |
| | 881 | | output.WriteFloat(PaddingTop); |
| | 882 | | } |
| | 883 | | if (HasPaddingRight) { |
| | 884 | | output.WriteRawTag(77); |
| | 885 | | output.WriteFloat(PaddingRight); |
| | 886 | | } |
| | 887 | | if (HasPaddingBottom) { |
| | 888 | | output.WriteRawTag(85); |
| | 889 | | output.WriteFloat(PaddingBottom); |
| | 890 | | } |
| | 891 | | if (HasPaddingLeft) { |
| | 892 | | output.WriteRawTag(93); |
| | 893 | | output.WriteFloat(PaddingLeft); |
| | 894 | | } |
| | 895 | | if (HasLineSpacing) { |
| | 896 | | output.WriteRawTag(101); |
| | 897 | | output.WriteFloat(LineSpacing); |
| | 898 | | } |
| | 899 | | if (HasLineCount) { |
| | 900 | | output.WriteRawTag(104); |
| | 901 | | output.WriteInt32(LineCount); |
| | 902 | | } |
| | 903 | | if (HasTextWrapping) { |
| | 904 | | output.WriteRawTag(112); |
| | 905 | | output.WriteBool(TextWrapping); |
| | 906 | | } |
| | 907 | | if (HasShadowBlur) { |
| | 908 | | output.WriteRawTag(125); |
| | 909 | | output.WriteFloat(ShadowBlur); |
| | 910 | | } |
| | 911 | | if (HasShadowOffsetX) { |
| | 912 | | output.WriteRawTag(133, 1); |
| | 913 | | output.WriteFloat(ShadowOffsetX); |
| | 914 | | } |
| | 915 | | if (HasShadowOffsetY) { |
| | 916 | | output.WriteRawTag(141, 1); |
| | 917 | | output.WriteFloat(ShadowOffsetY); |
| | 918 | | } |
| | 919 | | if (HasOutlineWidth) { |
| | 920 | | output.WriteRawTag(149, 1); |
| | 921 | | output.WriteFloat(OutlineWidth); |
| | 922 | | } |
| | 923 | | if (shadowColor_ != null) { |
| | 924 | | output.WriteRawTag(154, 1); |
| | 925 | | output.WriteMessage(ShadowColor); |
| | 926 | | } |
| | 927 | | if (outlineColor_ != null) { |
| | 928 | | output.WriteRawTag(162, 1); |
| | 929 | | output.WriteMessage(OutlineColor); |
| | 930 | | } |
| | 931 | | if (textColor_ != null) { |
| | 932 | | output.WriteRawTag(170, 1); |
| | 933 | | output.WriteMessage(TextColor); |
| | 934 | | } |
| | 935 | | if (_unknownFields != null) { |
| | 936 | | _unknownFields.WriteTo(ref output); |
| | 937 | | } |
| | 938 | | } |
| | 939 | | #endif |
| | 940 | |
|
| | 941 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 942 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 943 | | public int CalculateSize() { |
| 0 | 944 | | int size = 0; |
| 0 | 945 | | if (Text.Length != 0) { |
| 0 | 946 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); |
| | 947 | | } |
| 0 | 948 | | if (HasFont) { |
| 0 | 949 | | size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Font); |
| | 950 | | } |
| 0 | 951 | | if (HasFontSize) { |
| 0 | 952 | | size += 1 + 4; |
| | 953 | | } |
| 0 | 954 | | if (HasFontAutoSize) { |
| 0 | 955 | | size += 1 + 1; |
| | 956 | | } |
| 0 | 957 | | if (HasTextAlign) { |
| 0 | 958 | | size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TextAlign); |
| | 959 | | } |
| 0 | 960 | | if (HasWidth) { |
| 0 | 961 | | size += 1 + 4; |
| | 962 | | } |
| 0 | 963 | | if (HasHeight) { |
| 0 | 964 | | size += 1 + 4; |
| | 965 | | } |
| 0 | 966 | | if (HasPaddingTop) { |
| 0 | 967 | | size += 1 + 4; |
| | 968 | | } |
| 0 | 969 | | if (HasPaddingRight) { |
| 0 | 970 | | size += 1 + 4; |
| | 971 | | } |
| 0 | 972 | | if (HasPaddingBottom) { |
| 0 | 973 | | size += 1 + 4; |
| | 974 | | } |
| 0 | 975 | | if (HasPaddingLeft) { |
| 0 | 976 | | size += 1 + 4; |
| | 977 | | } |
| 0 | 978 | | if (HasLineSpacing) { |
| 0 | 979 | | size += 1 + 4; |
| | 980 | | } |
| 0 | 981 | | if (HasLineCount) { |
| 0 | 982 | | size += 1 + pb::CodedOutputStream.ComputeInt32Size(LineCount); |
| | 983 | | } |
| 0 | 984 | | if (HasTextWrapping) { |
| 0 | 985 | | size += 1 + 1; |
| | 986 | | } |
| 0 | 987 | | if (HasShadowBlur) { |
| 0 | 988 | | size += 1 + 4; |
| | 989 | | } |
| 0 | 990 | | if (HasShadowOffsetX) { |
| 0 | 991 | | size += 2 + 4; |
| | 992 | | } |
| 0 | 993 | | if (HasShadowOffsetY) { |
| 0 | 994 | | size += 2 + 4; |
| | 995 | | } |
| 0 | 996 | | if (HasOutlineWidth) { |
| 0 | 997 | | size += 2 + 4; |
| | 998 | | } |
| 0 | 999 | | if (shadowColor_ != null) { |
| 0 | 1000 | | size += 2 + pb::CodedOutputStream.ComputeMessageSize(ShadowColor); |
| | 1001 | | } |
| 0 | 1002 | | if (outlineColor_ != null) { |
| 0 | 1003 | | size += 2 + pb::CodedOutputStream.ComputeMessageSize(OutlineColor); |
| | 1004 | | } |
| 0 | 1005 | | if (textColor_ != null) { |
| 0 | 1006 | | size += 2 + pb::CodedOutputStream.ComputeMessageSize(TextColor); |
| | 1007 | | } |
| 0 | 1008 | | if (_unknownFields != null) { |
| 0 | 1009 | | size += _unknownFields.CalculateSize(); |
| | 1010 | | } |
| 0 | 1011 | | return size; |
| | 1012 | | } |
| | 1013 | |
|
| | 1014 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1015 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1016 | | public void MergeFrom(PBTextShape other) { |
| 0 | 1017 | | if (other == null) { |
| 0 | 1018 | | return; |
| | 1019 | | } |
| 0 | 1020 | | if (other.Text.Length != 0) { |
| 0 | 1021 | | Text = other.Text; |
| | 1022 | | } |
| 0 | 1023 | | if (other.HasFont) { |
| 0 | 1024 | | Font = other.Font; |
| | 1025 | | } |
| 0 | 1026 | | if (other.HasFontSize) { |
| 0 | 1027 | | FontSize = other.FontSize; |
| | 1028 | | } |
| 0 | 1029 | | if (other.HasFontAutoSize) { |
| 0 | 1030 | | FontAutoSize = other.FontAutoSize; |
| | 1031 | | } |
| 0 | 1032 | | if (other.HasTextAlign) { |
| 0 | 1033 | | TextAlign = other.TextAlign; |
| | 1034 | | } |
| 0 | 1035 | | if (other.HasWidth) { |
| 0 | 1036 | | Width = other.Width; |
| | 1037 | | } |
| 0 | 1038 | | if (other.HasHeight) { |
| 0 | 1039 | | Height = other.Height; |
| | 1040 | | } |
| 0 | 1041 | | if (other.HasPaddingTop) { |
| 0 | 1042 | | PaddingTop = other.PaddingTop; |
| | 1043 | | } |
| 0 | 1044 | | if (other.HasPaddingRight) { |
| 0 | 1045 | | PaddingRight = other.PaddingRight; |
| | 1046 | | } |
| 0 | 1047 | | if (other.HasPaddingBottom) { |
| 0 | 1048 | | PaddingBottom = other.PaddingBottom; |
| | 1049 | | } |
| 0 | 1050 | | if (other.HasPaddingLeft) { |
| 0 | 1051 | | PaddingLeft = other.PaddingLeft; |
| | 1052 | | } |
| 0 | 1053 | | if (other.HasLineSpacing) { |
| 0 | 1054 | | LineSpacing = other.LineSpacing; |
| | 1055 | | } |
| 0 | 1056 | | if (other.HasLineCount) { |
| 0 | 1057 | | LineCount = other.LineCount; |
| | 1058 | | } |
| 0 | 1059 | | if (other.HasTextWrapping) { |
| 0 | 1060 | | TextWrapping = other.TextWrapping; |
| | 1061 | | } |
| 0 | 1062 | | if (other.HasShadowBlur) { |
| 0 | 1063 | | ShadowBlur = other.ShadowBlur; |
| | 1064 | | } |
| 0 | 1065 | | if (other.HasShadowOffsetX) { |
| 0 | 1066 | | ShadowOffsetX = other.ShadowOffsetX; |
| | 1067 | | } |
| 0 | 1068 | | if (other.HasShadowOffsetY) { |
| 0 | 1069 | | ShadowOffsetY = other.ShadowOffsetY; |
| | 1070 | | } |
| 0 | 1071 | | if (other.HasOutlineWidth) { |
| 0 | 1072 | | OutlineWidth = other.OutlineWidth; |
| | 1073 | | } |
| 0 | 1074 | | if (other.shadowColor_ != null) { |
| 0 | 1075 | | if (shadowColor_ == null) { |
| 0 | 1076 | | ShadowColor = new global::Decentraland.Common.Color3(); |
| | 1077 | | } |
| 0 | 1078 | | ShadowColor.MergeFrom(other.ShadowColor); |
| | 1079 | | } |
| 0 | 1080 | | if (other.outlineColor_ != null) { |
| 0 | 1081 | | if (outlineColor_ == null) { |
| 0 | 1082 | | OutlineColor = new global::Decentraland.Common.Color3(); |
| | 1083 | | } |
| 0 | 1084 | | OutlineColor.MergeFrom(other.OutlineColor); |
| | 1085 | | } |
| 0 | 1086 | | if (other.textColor_ != null) { |
| 0 | 1087 | | if (textColor_ == null) { |
| 0 | 1088 | | TextColor = new global::Decentraland.Common.Color4(); |
| | 1089 | | } |
| 0 | 1090 | | TextColor.MergeFrom(other.TextColor); |
| | 1091 | | } |
| 0 | 1092 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 1093 | | } |
| | 1094 | |
|
| | 1095 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1096 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1097 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 1098 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 1099 | | input.ReadRawMessage(this); |
| | 1100 | | #else |
| | 1101 | | uint tag; |
| 0 | 1102 | | while ((tag = input.ReadTag()) != 0) { |
| | 1103 | | switch(tag) { |
| | 1104 | | default: |
| 0 | 1105 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 1106 | | break; |
| | 1107 | | case 10: { |
| 0 | 1108 | | Text = input.ReadString(); |
| 0 | 1109 | | break; |
| | 1110 | | } |
| | 1111 | | case 16: { |
| 0 | 1112 | | Font = (global::DCL.ECSComponents.Font) input.ReadEnum(); |
| 0 | 1113 | | break; |
| | 1114 | | } |
| | 1115 | | case 29: { |
| 0 | 1116 | | FontSize = input.ReadFloat(); |
| 0 | 1117 | | break; |
| | 1118 | | } |
| | 1119 | | case 32: { |
| 0 | 1120 | | FontAutoSize = input.ReadBool(); |
| 0 | 1121 | | break; |
| | 1122 | | } |
| | 1123 | | case 40: { |
| 0 | 1124 | | TextAlign = (global::DCL.ECSComponents.TextAlignMode) input.ReadEnum(); |
| 0 | 1125 | | break; |
| | 1126 | | } |
| | 1127 | | case 53: { |
| 0 | 1128 | | Width = input.ReadFloat(); |
| 0 | 1129 | | break; |
| | 1130 | | } |
| | 1131 | | case 61: { |
| 0 | 1132 | | Height = input.ReadFloat(); |
| 0 | 1133 | | break; |
| | 1134 | | } |
| | 1135 | | case 69: { |
| 0 | 1136 | | PaddingTop = input.ReadFloat(); |
| 0 | 1137 | | break; |
| | 1138 | | } |
| | 1139 | | case 77: { |
| 0 | 1140 | | PaddingRight = input.ReadFloat(); |
| 0 | 1141 | | break; |
| | 1142 | | } |
| | 1143 | | case 85: { |
| 0 | 1144 | | PaddingBottom = input.ReadFloat(); |
| 0 | 1145 | | break; |
| | 1146 | | } |
| | 1147 | | case 93: { |
| 0 | 1148 | | PaddingLeft = input.ReadFloat(); |
| 0 | 1149 | | break; |
| | 1150 | | } |
| | 1151 | | case 101: { |
| 0 | 1152 | | LineSpacing = input.ReadFloat(); |
| 0 | 1153 | | break; |
| | 1154 | | } |
| | 1155 | | case 104: { |
| 0 | 1156 | | LineCount = input.ReadInt32(); |
| 0 | 1157 | | break; |
| | 1158 | | } |
| | 1159 | | case 112: { |
| 0 | 1160 | | TextWrapping = input.ReadBool(); |
| 0 | 1161 | | break; |
| | 1162 | | } |
| | 1163 | | case 125: { |
| 0 | 1164 | | ShadowBlur = input.ReadFloat(); |
| 0 | 1165 | | break; |
| | 1166 | | } |
| | 1167 | | case 133: { |
| 0 | 1168 | | ShadowOffsetX = input.ReadFloat(); |
| 0 | 1169 | | break; |
| | 1170 | | } |
| | 1171 | | case 141: { |
| 0 | 1172 | | ShadowOffsetY = input.ReadFloat(); |
| 0 | 1173 | | break; |
| | 1174 | | } |
| | 1175 | | case 149: { |
| 0 | 1176 | | OutlineWidth = input.ReadFloat(); |
| 0 | 1177 | | break; |
| | 1178 | | } |
| | 1179 | | case 154: { |
| 0 | 1180 | | if (shadowColor_ == null) { |
| 0 | 1181 | | ShadowColor = new global::Decentraland.Common.Color3(); |
| | 1182 | | } |
| 0 | 1183 | | input.ReadMessage(ShadowColor); |
| 0 | 1184 | | break; |
| | 1185 | | } |
| | 1186 | | case 162: { |
| 0 | 1187 | | if (outlineColor_ == null) { |
| 0 | 1188 | | OutlineColor = new global::Decentraland.Common.Color3(); |
| | 1189 | | } |
| 0 | 1190 | | input.ReadMessage(OutlineColor); |
| 0 | 1191 | | break; |
| | 1192 | | } |
| | 1193 | | case 170: { |
| 0 | 1194 | | if (textColor_ == null) { |
| 0 | 1195 | | TextColor = new global::Decentraland.Common.Color4(); |
| | 1196 | | } |
| 0 | 1197 | | input.ReadMessage(TextColor); |
| | 1198 | | break; |
| | 1199 | | } |
| | 1200 | | } |
| | 1201 | | } |
| | 1202 | | #endif |
| 0 | 1203 | | } |
| | 1204 | |
|
| | 1205 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 1206 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1207 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1208 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 1209 | | uint tag; |
| | 1210 | | while ((tag = input.ReadTag()) != 0) { |
| | 1211 | | switch(tag) { |
| | 1212 | | default: |
| | 1213 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 1214 | | break; |
| | 1215 | | case 10: { |
| | 1216 | | Text = input.ReadString(); |
| | 1217 | | break; |
| | 1218 | | } |
| | 1219 | | case 16: { |
| | 1220 | | Font = (global::DCL.ECSComponents.Font) input.ReadEnum(); |
| | 1221 | | break; |
| | 1222 | | } |
| | 1223 | | case 29: { |
| | 1224 | | FontSize = input.ReadFloat(); |
| | 1225 | | break; |
| | 1226 | | } |
| | 1227 | | case 32: { |
| | 1228 | | FontAutoSize = input.ReadBool(); |
| | 1229 | | break; |
| | 1230 | | } |
| | 1231 | | case 40: { |
| | 1232 | | TextAlign = (global::DCL.ECSComponents.TextAlignMode) input.ReadEnum(); |
| | 1233 | | break; |
| | 1234 | | } |
| | 1235 | | case 53: { |
| | 1236 | | Width = input.ReadFloat(); |
| | 1237 | | break; |
| | 1238 | | } |
| | 1239 | | case 61: { |
| | 1240 | | Height = input.ReadFloat(); |
| | 1241 | | break; |
| | 1242 | | } |
| | 1243 | | case 69: { |
| | 1244 | | PaddingTop = input.ReadFloat(); |
| | 1245 | | break; |
| | 1246 | | } |
| | 1247 | | case 77: { |
| | 1248 | | PaddingRight = input.ReadFloat(); |
| | 1249 | | break; |
| | 1250 | | } |
| | 1251 | | case 85: { |
| | 1252 | | PaddingBottom = input.ReadFloat(); |
| | 1253 | | break; |
| | 1254 | | } |
| | 1255 | | case 93: { |
| | 1256 | | PaddingLeft = input.ReadFloat(); |
| | 1257 | | break; |
| | 1258 | | } |
| | 1259 | | case 101: { |
| | 1260 | | LineSpacing = input.ReadFloat(); |
| | 1261 | | break; |
| | 1262 | | } |
| | 1263 | | case 104: { |
| | 1264 | | LineCount = input.ReadInt32(); |
| | 1265 | | break; |
| | 1266 | | } |
| | 1267 | | case 112: { |
| | 1268 | | TextWrapping = input.ReadBool(); |
| | 1269 | | break; |
| | 1270 | | } |
| | 1271 | | case 125: { |
| | 1272 | | ShadowBlur = input.ReadFloat(); |
| | 1273 | | break; |
| | 1274 | | } |
| | 1275 | | case 133: { |
| | 1276 | | ShadowOffsetX = input.ReadFloat(); |
| | 1277 | | break; |
| | 1278 | | } |
| | 1279 | | case 141: { |
| | 1280 | | ShadowOffsetY = input.ReadFloat(); |
| | 1281 | | break; |
| | 1282 | | } |
| | 1283 | | case 149: { |
| | 1284 | | OutlineWidth = input.ReadFloat(); |
| | 1285 | | break; |
| | 1286 | | } |
| | 1287 | | case 154: { |
| | 1288 | | if (shadowColor_ == null) { |
| | 1289 | | ShadowColor = new global::Decentraland.Common.Color3(); |
| | 1290 | | } |
| | 1291 | | input.ReadMessage(ShadowColor); |
| | 1292 | | break; |
| | 1293 | | } |
| | 1294 | | case 162: { |
| | 1295 | | if (outlineColor_ == null) { |
| | 1296 | | OutlineColor = new global::Decentraland.Common.Color3(); |
| | 1297 | | } |
| | 1298 | | input.ReadMessage(OutlineColor); |
| | 1299 | | break; |
| | 1300 | | } |
| | 1301 | | case 170: { |
| | 1302 | | if (textColor_ == null) { |
| | 1303 | | TextColor = new global::Decentraland.Common.Color4(); |
| | 1304 | | } |
| | 1305 | | input.ReadMessage(TextColor); |
| | 1306 | | break; |
| | 1307 | | } |
| | 1308 | | } |
| | 1309 | | } |
| | 1310 | | } |
| | 1311 | | #endif |
| | 1312 | |
|
| | 1313 | | } |
| | 1314 | |
|
| | 1315 | | #endregion |
| | 1316 | |
|
| | 1317 | | } |
| | 1318 | |
|
| | 1319 | | #endregion Designer generated code |