| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: TextShape.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 TextShape.proto</summary> |
| | 15 | | public static partial class TextShapeReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for TextShape.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 | | "Cg9UZXh0U2hhcGUucHJvdG8SEGRlY2VudHJhbGFuZC5lY3MaE2NvbW1vbi9D", |
| | 28 | | "b2xvcjMucHJvdG8ikwQKC1BCVGV4dFNoYXBlEgwKBHRleHQYASABKAkSDwoH", |
| | 29 | | "dmlzaWJsZRgCIAEoCBIMCgRmb250GAMgASgJEg8KB29wYWNpdHkYBCABKAIS", |
| | 30 | | "EQoJZm9udF9TaXplGAUgASgCEhUKDWZvbnRfYXV0b1NpemUYBiABKAgSFAoM", |
| | 31 | | "aF90ZXh0X2FsaWduGAcgASgJEhQKDHZfdGV4dF9hbGlnbhgIIAEoCRINCgV3", |
| | 32 | | "aWR0aBgJIAEoAhIOCgZoZWlnaHQYCiABKAISEwoLcGFkZGluZ190b3AYCyAB", |
| | 33 | | "KAISFQoNcGFkZGluZ19yaWdodBgMIAEoAhIWCg5wYWRkaW5nX2JvdHRvbRgN", |
| | 34 | | "IAEoAhIUCgxwYWRkaW5nX2xlZnQYDiABKAISFAoMbGluZV9zcGFjaW5nGA8g", |
| | 35 | | "ASgCEhIKCmxpbmVfY291bnQYECABKAUSFQoNdGV4dF93cmFwcGluZxgRIAEo", |
| | 36 | | "CBITCgtzaGFkb3dfYmx1chgSIAEoAhIWCg5zaGFkb3dfb2Zmc2V0WBgTIAEo", |
| | 37 | | "AhIWCg5zaGFkb3dfb2Zmc2V0WRgUIAEoAhIVCg1vdXRsaW5lX3dpZHRoGBUg", |
| | 38 | | "ASgCEh0KDHNoYWRvd19jb2xvchgWIAEoCzIHLkNvbG9yMxIeCg1vdXRsaW5l", |
| | 39 | | "X2NvbG9yGBcgASgLMgcuQ29sb3IzEhsKCnRleHRfY29sb3IYGCABKAsyBy5D", |
| | 40 | | "b2xvcjNCFKoCEURDTC5FQ1NDb21wb25lbnRzYgZwcm90bzM=")); |
| | 41 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 42 | | new pbr::FileDescriptor[] { global::Color3Reflection.Descriptor, }, |
| | 43 | | new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
| | 44 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBTextShape), global::DCL.ECSComponents.PBTex |
| | 45 | | })); |
| | 46 | | } |
| | 47 | | #endregion |
| | 48 | |
|
| | 49 | | } |
| | 50 | | #region Messages |
| | 51 | | public sealed partial class PBTextShape : pb::IMessage<PBTextShape> { |
| 2 | 52 | | private static readonly pb::MessageParser<PBTextShape> _parser = new pb::MessageParser<PBTextShape>(() => new PBText |
| | 53 | | private pb::UnknownFieldSet _unknownFields; |
| | 54 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 0 | 55 | | public static pb::MessageParser<PBTextShape> Parser { get { return _parser; } } |
| | 56 | |
|
| | 57 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 58 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 59 | | get { return global::DCL.ECSComponents.TextShapeReflection.Descriptor.MessageTypes[0]; } |
| | 60 | | } |
| | 61 | |
|
| | 62 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 63 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 64 | | get { return Descriptor; } |
| | 65 | | } |
| | 66 | |
|
| | 67 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 61 | 68 | | public PBTextShape() { |
| | 69 | | OnConstruction(); |
| 61 | 70 | | } |
| | 71 | |
|
| | 72 | | partial void OnConstruction(); |
| | 73 | |
|
| | 74 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 0 | 75 | | public PBTextShape(PBTextShape other) : this() { |
| 0 | 76 | | text_ = other.text_; |
| 0 | 77 | | visible_ = other.visible_; |
| 0 | 78 | | font_ = other.font_; |
| 0 | 79 | | opacity_ = other.opacity_; |
| 0 | 80 | | fontSize_ = other.fontSize_; |
| 0 | 81 | | fontAutoSize_ = other.fontAutoSize_; |
| 0 | 82 | | hTextAlign_ = other.hTextAlign_; |
| 0 | 83 | | vTextAlign_ = other.vTextAlign_; |
| 0 | 84 | | width_ = other.width_; |
| 0 | 85 | | height_ = other.height_; |
| 0 | 86 | | paddingTop_ = other.paddingTop_; |
| 0 | 87 | | paddingRight_ = other.paddingRight_; |
| 0 | 88 | | paddingBottom_ = other.paddingBottom_; |
| 0 | 89 | | paddingLeft_ = other.paddingLeft_; |
| 0 | 90 | | lineSpacing_ = other.lineSpacing_; |
| 0 | 91 | | lineCount_ = other.lineCount_; |
| 0 | 92 | | textWrapping_ = other.textWrapping_; |
| 0 | 93 | | shadowBlur_ = other.shadowBlur_; |
| 0 | 94 | | shadowOffsetX_ = other.shadowOffsetX_; |
| 0 | 95 | | shadowOffsetY_ = other.shadowOffsetY_; |
| 0 | 96 | | outlineWidth_ = other.outlineWidth_; |
| 0 | 97 | | shadowColor_ = other.shadowColor_ != null ? other.shadowColor_.Clone() : null; |
| 0 | 98 | | outlineColor_ = other.outlineColor_ != null ? other.outlineColor_.Clone() : null; |
| 0 | 99 | | textColor_ = other.textColor_ != null ? other.textColor_.Clone() : null; |
| 0 | 100 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 0 | 101 | | } |
| | 102 | |
|
| | 103 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 104 | | public PBTextShape Clone() { |
| 0 | 105 | | return new PBTextShape(this); |
| | 106 | | } |
| | 107 | |
|
| | 108 | | /// <summary>Field number for the "text" field.</summary> |
| | 109 | | public const int TextFieldNumber = 1; |
| 61 | 110 | | private string text_ = ""; |
| | 111 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 112 | | public string Text { |
| 0 | 113 | | get { return text_; } |
| | 114 | | set { |
| 0 | 115 | | text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 0 | 116 | | } |
| | 117 | | } |
| | 118 | |
|
| | 119 | | /// <summary>Field number for the "visible" field.</summary> |
| | 120 | | public const int VisibleFieldNumber = 2; |
| | 121 | | private bool visible_; |
| | 122 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 123 | | public bool Visible { |
| 0 | 124 | | get { return visible_; } |
| | 125 | | set { |
| 0 | 126 | | visible_ = value; |
| 0 | 127 | | } |
| | 128 | | } |
| | 129 | |
|
| | 130 | | /// <summary>Field number for the "font" field.</summary> |
| | 131 | | public const int FontFieldNumber = 3; |
| 61 | 132 | | private string font_ = ""; |
| | 133 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 134 | | public string Font { |
| 0 | 135 | | get { return font_; } |
| | 136 | | set { |
| 60 | 137 | | font_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 60 | 138 | | } |
| | 139 | | } |
| | 140 | |
|
| | 141 | | /// <summary>Field number for the "opacity" field.</summary> |
| | 142 | | public const int OpacityFieldNumber = 4; |
| | 143 | | private float opacity_; |
| | 144 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 145 | | public float Opacity { |
| 0 | 146 | | get { return opacity_; } |
| | 147 | | set { |
| 0 | 148 | | opacity_ = value; |
| 0 | 149 | | } |
| | 150 | | } |
| | 151 | |
|
| | 152 | | /// <summary>Field number for the "font_Size" field.</summary> |
| | 153 | | public const int FontSizeFieldNumber = 5; |
| | 154 | | private float fontSize_; |
| | 155 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 156 | | public float FontSize { |
| 0 | 157 | | get { return fontSize_; } |
| | 158 | | set { |
| 0 | 159 | | fontSize_ = value; |
| 0 | 160 | | } |
| | 161 | | } |
| | 162 | |
|
| | 163 | | /// <summary>Field number for the "font_autoSize" field.</summary> |
| | 164 | | public const int FontAutoSizeFieldNumber = 6; |
| | 165 | | private bool fontAutoSize_; |
| | 166 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 167 | | public bool FontAutoSize { |
| 0 | 168 | | get { return fontAutoSize_; } |
| | 169 | | set { |
| 0 | 170 | | fontAutoSize_ = value; |
| 0 | 171 | | } |
| | 172 | | } |
| | 173 | |
|
| | 174 | | /// <summary>Field number for the "h_text_align" field.</summary> |
| | 175 | | public const int HTextAlignFieldNumber = 7; |
| 61 | 176 | | private string hTextAlign_ = ""; |
| | 177 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 178 | | public string HTextAlign { |
| 0 | 179 | | get { return hTextAlign_; } |
| | 180 | | set { |
| 0 | 181 | | hTextAlign_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 0 | 182 | | } |
| | 183 | | } |
| | 184 | |
|
| | 185 | | /// <summary>Field number for the "v_text_align" field.</summary> |
| | 186 | | public const int VTextAlignFieldNumber = 8; |
| 61 | 187 | | private string vTextAlign_ = ""; |
| | 188 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 189 | | public string VTextAlign { |
| 0 | 190 | | get { return vTextAlign_; } |
| | 191 | | set { |
| 0 | 192 | | vTextAlign_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 0 | 193 | | } |
| | 194 | | } |
| | 195 | |
|
| | 196 | | /// <summary>Field number for the "width" field.</summary> |
| | 197 | | public const int WidthFieldNumber = 9; |
| | 198 | | private float width_; |
| | 199 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 200 | | public float Width { |
| 0 | 201 | | get { return width_; } |
| | 202 | | set { |
| 0 | 203 | | width_ = value; |
| 0 | 204 | | } |
| | 205 | | } |
| | 206 | |
|
| | 207 | | /// <summary>Field number for the "height" field.</summary> |
| | 208 | | public const int HeightFieldNumber = 10; |
| | 209 | | private float height_; |
| | 210 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 211 | | public float Height { |
| 0 | 212 | | get { return height_; } |
| | 213 | | set { |
| 0 | 214 | | height_ = value; |
| 0 | 215 | | } |
| | 216 | | } |
| | 217 | |
|
| | 218 | | /// <summary>Field number for the "padding_top" field.</summary> |
| | 219 | | public const int PaddingTopFieldNumber = 11; |
| | 220 | | private float paddingTop_; |
| | 221 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 222 | | public float PaddingTop { |
| 0 | 223 | | get { return paddingTop_; } |
| | 224 | | set { |
| 0 | 225 | | paddingTop_ = value; |
| 0 | 226 | | } |
| | 227 | | } |
| | 228 | |
|
| | 229 | | /// <summary>Field number for the "padding_right" field.</summary> |
| | 230 | | public const int PaddingRightFieldNumber = 12; |
| | 231 | | private float paddingRight_; |
| | 232 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 233 | | public float PaddingRight { |
| 0 | 234 | | get { return paddingRight_; } |
| | 235 | | set { |
| 0 | 236 | | paddingRight_ = value; |
| 0 | 237 | | } |
| | 238 | | } |
| | 239 | |
|
| | 240 | | /// <summary>Field number for the "padding_bottom" field.</summary> |
| | 241 | | public const int PaddingBottomFieldNumber = 13; |
| | 242 | | private float paddingBottom_; |
| | 243 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 244 | | public float PaddingBottom { |
| 0 | 245 | | get { return paddingBottom_; } |
| | 246 | | set { |
| 0 | 247 | | paddingBottom_ = value; |
| 0 | 248 | | } |
| | 249 | | } |
| | 250 | |
|
| | 251 | | /// <summary>Field number for the "padding_left" field.</summary> |
| | 252 | | public const int PaddingLeftFieldNumber = 14; |
| | 253 | | private float paddingLeft_; |
| | 254 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 255 | | public float PaddingLeft { |
| 0 | 256 | | get { return paddingLeft_; } |
| | 257 | | set { |
| 0 | 258 | | paddingLeft_ = value; |
| 0 | 259 | | } |
| | 260 | | } |
| | 261 | |
|
| | 262 | | /// <summary>Field number for the "line_spacing" field.</summary> |
| | 263 | | public const int LineSpacingFieldNumber = 15; |
| | 264 | | private float lineSpacing_; |
| | 265 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 266 | | public float LineSpacing { |
| 0 | 267 | | get { return lineSpacing_; } |
| | 268 | | set { |
| 0 | 269 | | lineSpacing_ = value; |
| 0 | 270 | | } |
| | 271 | | } |
| | 272 | |
|
| | 273 | | /// <summary>Field number for the "line_count" field.</summary> |
| | 274 | | public const int LineCountFieldNumber = 16; |
| | 275 | | private int lineCount_; |
| | 276 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 277 | | public int LineCount { |
| 0 | 278 | | get { return lineCount_; } |
| | 279 | | set { |
| 0 | 280 | | lineCount_ = value; |
| 0 | 281 | | } |
| | 282 | | } |
| | 283 | |
|
| | 284 | | /// <summary>Field number for the "text_wrapping" field.</summary> |
| | 285 | | public const int TextWrappingFieldNumber = 17; |
| | 286 | | private bool textWrapping_; |
| | 287 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 288 | | public bool TextWrapping { |
| 0 | 289 | | get { return textWrapping_; } |
| | 290 | | set { |
| 0 | 291 | | textWrapping_ = value; |
| 0 | 292 | | } |
| | 293 | | } |
| | 294 | |
|
| | 295 | | /// <summary>Field number for the "shadow_blur" field.</summary> |
| | 296 | | public const int ShadowBlurFieldNumber = 18; |
| | 297 | | private float shadowBlur_; |
| | 298 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 299 | | public float ShadowBlur { |
| 0 | 300 | | get { return shadowBlur_; } |
| | 301 | | set { |
| 0 | 302 | | shadowBlur_ = value; |
| 0 | 303 | | } |
| | 304 | | } |
| | 305 | |
|
| | 306 | | /// <summary>Field number for the "shadow_offsetX" field.</summary> |
| | 307 | | public const int ShadowOffsetXFieldNumber = 19; |
| | 308 | | private float shadowOffsetX_; |
| | 309 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 310 | | public float ShadowOffsetX { |
| 0 | 311 | | get { return shadowOffsetX_; } |
| | 312 | | set { |
| 0 | 313 | | shadowOffsetX_ = value; |
| 0 | 314 | | } |
| | 315 | | } |
| | 316 | |
|
| | 317 | | /// <summary>Field number for the "shadow_offsetY" field.</summary> |
| | 318 | | public const int ShadowOffsetYFieldNumber = 20; |
| | 319 | | private float shadowOffsetY_; |
| | 320 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 321 | | public float ShadowOffsetY { |
| 0 | 322 | | get { return shadowOffsetY_; } |
| | 323 | | set { |
| 0 | 324 | | shadowOffsetY_ = value; |
| 0 | 325 | | } |
| | 326 | | } |
| | 327 | |
|
| | 328 | | /// <summary>Field number for the "outline_width" field.</summary> |
| | 329 | | public const int OutlineWidthFieldNumber = 21; |
| | 330 | | private float outlineWidth_; |
| | 331 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 332 | | public float OutlineWidth { |
| 0 | 333 | | get { return outlineWidth_; } |
| | 334 | | set { |
| 0 | 335 | | outlineWidth_ = value; |
| 0 | 336 | | } |
| | 337 | | } |
| | 338 | |
|
| | 339 | | /// <summary>Field number for the "shadow_color" field.</summary> |
| | 340 | | public const int ShadowColorFieldNumber = 22; |
| | 341 | | private global::Color3 shadowColor_; |
| | 342 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 343 | | public global::Color3 ShadowColor { |
| 0 | 344 | | get { return shadowColor_; } |
| | 345 | | set { |
| 0 | 346 | | shadowColor_ = value; |
| 0 | 347 | | } |
| | 348 | | } |
| | 349 | |
|
| | 350 | | /// <summary>Field number for the "outline_color" field.</summary> |
| | 351 | | public const int OutlineColorFieldNumber = 23; |
| | 352 | | private global::Color3 outlineColor_; |
| | 353 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 354 | | public global::Color3 OutlineColor { |
| 0 | 355 | | get { return outlineColor_; } |
| | 356 | | set { |
| 0 | 357 | | outlineColor_ = value; |
| 0 | 358 | | } |
| | 359 | | } |
| | 360 | |
|
| | 361 | | /// <summary>Field number for the "text_color" field.</summary> |
| | 362 | | public const int TextColorFieldNumber = 24; |
| | 363 | | private global::Color3 textColor_; |
| | 364 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 365 | | public global::Color3 TextColor { |
| 0 | 366 | | get { return textColor_; } |
| | 367 | | set { |
| 0 | 368 | | textColor_ = value; |
| 0 | 369 | | } |
| | 370 | | } |
| | 371 | |
|
| | 372 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 373 | | public override bool Equals(object other) { |
| 111 | 374 | | return Equals(other as PBTextShape); |
| | 375 | | } |
| | 376 | |
|
| | 377 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 378 | | public bool Equals(PBTextShape other) { |
| 169 | 379 | | if (ReferenceEquals(other, null)) { |
| 58 | 380 | | return false; |
| | 381 | | } |
| 111 | 382 | | if (ReferenceEquals(other, this)) { |
| 111 | 383 | | return true; |
| | 384 | | } |
| 0 | 385 | | if (Text != other.Text) return false; |
| 0 | 386 | | if (Visible != other.Visible) return false; |
| 0 | 387 | | if (Font != other.Font) return false; |
| 0 | 388 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Opacity, other.Opacity)) return false; |
| 0 | 389 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(FontSize, other.FontSize)) return false; |
| 0 | 390 | | if (FontAutoSize != other.FontAutoSize) return false; |
| 0 | 391 | | if (HTextAlign != other.HTextAlign) return false; |
| 0 | 392 | | if (VTextAlign != other.VTextAlign) return false; |
| 0 | 393 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Width, other.Width)) return false; |
| 0 | 394 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Height, other.Height)) return false; |
| 0 | 395 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PaddingTop, other.PaddingTop)) return fal |
| 0 | 396 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PaddingRight, other.PaddingRight)) return |
| 0 | 397 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PaddingBottom, other.PaddingBottom)) retu |
| 0 | 398 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PaddingLeft, other.PaddingLeft)) return f |
| 0 | 399 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(LineSpacing, other.LineSpacing)) return f |
| 0 | 400 | | if (LineCount != other.LineCount) return false; |
| 0 | 401 | | if (TextWrapping != other.TextWrapping) return false; |
| 0 | 402 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ShadowBlur, other.ShadowBlur)) return fal |
| 0 | 403 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ShadowOffsetX, other.ShadowOffsetX)) retu |
| 0 | 404 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ShadowOffsetY, other.ShadowOffsetY)) retu |
| 0 | 405 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OutlineWidth, other.OutlineWidth)) return |
| 0 | 406 | | if (!object.Equals(ShadowColor, other.ShadowColor)) return false; |
| 0 | 407 | | if (!object.Equals(OutlineColor, other.OutlineColor)) return false; |
| 0 | 408 | | if (!object.Equals(TextColor, other.TextColor)) return false; |
| 0 | 409 | | return Equals(_unknownFields, other._unknownFields); |
| | 410 | | } |
| | 411 | |
|
| | 412 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 413 | | public override int GetHashCode() { |
| 206 | 414 | | int hash = 1; |
| 207 | 415 | | if (Text.Length != 0) hash ^= Text.GetHashCode(); |
| 206 | 416 | | if (Visible != false) hash ^= Visible.GetHashCode(); |
| 412 | 417 | | if (Font.Length != 0) hash ^= Font.GetHashCode(); |
| 207 | 418 | | if (Opacity != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Opacity); |
| 207 | 419 | | if (FontSize != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(FontSize); |
| 207 | 420 | | if (FontAutoSize != false) hash ^= FontAutoSize.GetHashCode(); |
| 210 | 421 | | if (HTextAlign.Length != 0) hash ^= HTextAlign.GetHashCode(); |
| 210 | 422 | | if (VTextAlign.Length != 0) hash ^= VTextAlign.GetHashCode(); |
| 209 | 423 | | if (Width != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Width); |
| 209 | 424 | | if (Height != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Height); |
| 207 | 425 | | if (PaddingTop != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PaddingTop) |
| 207 | 426 | | if (PaddingRight != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PaddingRi |
| 207 | 427 | | if (PaddingBottom != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PaddingB |
| 207 | 428 | | if (PaddingLeft != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PaddingLef |
| 207 | 429 | | if (LineSpacing != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(LineSpacin |
| 207 | 430 | | if (LineCount != 0) hash ^= LineCount.GetHashCode(); |
| 210 | 431 | | if (TextWrapping != false) hash ^= TextWrapping.GetHashCode(); |
| 206 | 432 | | if (ShadowBlur != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ShadowBlur) |
| 206 | 433 | | if (ShadowOffsetX != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ShadowOf |
| 206 | 434 | | if (ShadowOffsetY != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ShadowOf |
| 207 | 435 | | if (OutlineWidth != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(OutlineWi |
| 206 | 436 | | if (shadowColor_ != null) hash ^= ShadowColor.GetHashCode(); |
| 207 | 437 | | if (outlineColor_ != null) hash ^= OutlineColor.GetHashCode(); |
| 208 | 438 | | if (textColor_ != null) hash ^= TextColor.GetHashCode(); |
| 206 | 439 | | if (_unknownFields != null) { |
| 0 | 440 | | hash ^= _unknownFields.GetHashCode(); |
| | 441 | | } |
| 206 | 442 | | return hash; |
| | 443 | | } |
| | 444 | |
|
| | 445 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 446 | | public override string ToString() { |
| 0 | 447 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 448 | | } |
| | 449 | |
|
| | 450 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 451 | | public void WriteTo(pb::CodedOutputStream output) { |
| 2 | 452 | | if (Text.Length != 0) { |
| 1 | 453 | | output.WriteRawTag(10); |
| 1 | 454 | | output.WriteString(Text); |
| | 455 | | } |
| 2 | 456 | | if (Visible != false) { |
| 1 | 457 | | output.WriteRawTag(16); |
| 1 | 458 | | output.WriteBool(Visible); |
| | 459 | | } |
| 2 | 460 | | if (Font.Length != 0) { |
| 2 | 461 | | output.WriteRawTag(26); |
| 2 | 462 | | output.WriteString(Font); |
| | 463 | | } |
| 2 | 464 | | if (Opacity != 0F) { |
| 0 | 465 | | output.WriteRawTag(37); |
| 0 | 466 | | output.WriteFloat(Opacity); |
| | 467 | | } |
| 2 | 468 | | if (FontSize != 0F) { |
| 1 | 469 | | output.WriteRawTag(45); |
| 1 | 470 | | output.WriteFloat(FontSize); |
| | 471 | | } |
| 2 | 472 | | if (FontAutoSize != false) { |
| 0 | 473 | | output.WriteRawTag(48); |
| 0 | 474 | | output.WriteBool(FontAutoSize); |
| | 475 | | } |
| 2 | 476 | | if (HTextAlign.Length != 0) { |
| 0 | 477 | | output.WriteRawTag(58); |
| 0 | 478 | | output.WriteString(HTextAlign); |
| | 479 | | } |
| 2 | 480 | | if (VTextAlign.Length != 0) { |
| 0 | 481 | | output.WriteRawTag(66); |
| 0 | 482 | | output.WriteString(VTextAlign); |
| | 483 | | } |
| 2 | 484 | | if (Width != 0F) { |
| 0 | 485 | | output.WriteRawTag(77); |
| 0 | 486 | | output.WriteFloat(Width); |
| | 487 | | } |
| 2 | 488 | | if (Height != 0F) { |
| 0 | 489 | | output.WriteRawTag(85); |
| 0 | 490 | | output.WriteFloat(Height); |
| | 491 | | } |
| 2 | 492 | | if (PaddingTop != 0F) { |
| 0 | 493 | | output.WriteRawTag(93); |
| 0 | 494 | | output.WriteFloat(PaddingTop); |
| | 495 | | } |
| 2 | 496 | | if (PaddingRight != 0F) { |
| 0 | 497 | | output.WriteRawTag(101); |
| 0 | 498 | | output.WriteFloat(PaddingRight); |
| | 499 | | } |
| 2 | 500 | | if (PaddingBottom != 0F) { |
| 0 | 501 | | output.WriteRawTag(109); |
| 0 | 502 | | output.WriteFloat(PaddingBottom); |
| | 503 | | } |
| 2 | 504 | | if (PaddingLeft != 0F) { |
| 0 | 505 | | output.WriteRawTag(117); |
| 0 | 506 | | output.WriteFloat(PaddingLeft); |
| | 507 | | } |
| 2 | 508 | | if (LineSpacing != 0F) { |
| 0 | 509 | | output.WriteRawTag(125); |
| 0 | 510 | | output.WriteFloat(LineSpacing); |
| | 511 | | } |
| 2 | 512 | | if (LineCount != 0) { |
| 1 | 513 | | output.WriteRawTag(128, 1); |
| 1 | 514 | | output.WriteInt32(LineCount); |
| | 515 | | } |
| 2 | 516 | | if (TextWrapping != false) { |
| 0 | 517 | | output.WriteRawTag(136, 1); |
| 0 | 518 | | output.WriteBool(TextWrapping); |
| | 519 | | } |
| 2 | 520 | | if (ShadowBlur != 0F) { |
| 0 | 521 | | output.WriteRawTag(149, 1); |
| 0 | 522 | | output.WriteFloat(ShadowBlur); |
| | 523 | | } |
| 2 | 524 | | if (ShadowOffsetX != 0F) { |
| 0 | 525 | | output.WriteRawTag(157, 1); |
| 0 | 526 | | output.WriteFloat(ShadowOffsetX); |
| | 527 | | } |
| 2 | 528 | | if (ShadowOffsetY != 0F) { |
| 0 | 529 | | output.WriteRawTag(165, 1); |
| 0 | 530 | | output.WriteFloat(ShadowOffsetY); |
| | 531 | | } |
| 2 | 532 | | if (OutlineWidth != 0F) { |
| 0 | 533 | | output.WriteRawTag(173, 1); |
| 0 | 534 | | output.WriteFloat(OutlineWidth); |
| | 535 | | } |
| 2 | 536 | | if (shadowColor_ != null) { |
| 0 | 537 | | output.WriteRawTag(178, 1); |
| 0 | 538 | | output.WriteMessage(ShadowColor); |
| | 539 | | } |
| 2 | 540 | | if (outlineColor_ != null) { |
| 0 | 541 | | output.WriteRawTag(186, 1); |
| 0 | 542 | | output.WriteMessage(OutlineColor); |
| | 543 | | } |
| 2 | 544 | | if (textColor_ != null) { |
| 1 | 545 | | output.WriteRawTag(194, 1); |
| 1 | 546 | | output.WriteMessage(TextColor); |
| | 547 | | } |
| 2 | 548 | | if (_unknownFields != null) { |
| 0 | 549 | | _unknownFields.WriteTo(output); |
| | 550 | | } |
| 2 | 551 | | } |
| | 552 | |
|
| | 553 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 554 | | public int CalculateSize() { |
| 2 | 555 | | int size = 0; |
| 2 | 556 | | if (Text.Length != 0) { |
| 1 | 557 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); |
| | 558 | | } |
| 2 | 559 | | if (Visible != false) { |
| 1 | 560 | | size += 1 + 1; |
| | 561 | | } |
| 2 | 562 | | if (Font.Length != 0) { |
| 2 | 563 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(Font); |
| | 564 | | } |
| 2 | 565 | | if (Opacity != 0F) { |
| 0 | 566 | | size += 1 + 4; |
| | 567 | | } |
| 2 | 568 | | if (FontSize != 0F) { |
| 1 | 569 | | size += 1 + 4; |
| | 570 | | } |
| 2 | 571 | | if (FontAutoSize != false) { |
| 0 | 572 | | size += 1 + 1; |
| | 573 | | } |
| 2 | 574 | | if (HTextAlign.Length != 0) { |
| 0 | 575 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(HTextAlign); |
| | 576 | | } |
| 2 | 577 | | if (VTextAlign.Length != 0) { |
| 0 | 578 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(VTextAlign); |
| | 579 | | } |
| 2 | 580 | | if (Width != 0F) { |
| 0 | 581 | | size += 1 + 4; |
| | 582 | | } |
| 2 | 583 | | if (Height != 0F) { |
| 0 | 584 | | size += 1 + 4; |
| | 585 | | } |
| 2 | 586 | | if (PaddingTop != 0F) { |
| 0 | 587 | | size += 1 + 4; |
| | 588 | | } |
| 2 | 589 | | if (PaddingRight != 0F) { |
| 0 | 590 | | size += 1 + 4; |
| | 591 | | } |
| 2 | 592 | | if (PaddingBottom != 0F) { |
| 0 | 593 | | size += 1 + 4; |
| | 594 | | } |
| 2 | 595 | | if (PaddingLeft != 0F) { |
| 0 | 596 | | size += 1 + 4; |
| | 597 | | } |
| 2 | 598 | | if (LineSpacing != 0F) { |
| 0 | 599 | | size += 1 + 4; |
| | 600 | | } |
| 2 | 601 | | if (LineCount != 0) { |
| 1 | 602 | | size += 2 + pb::CodedOutputStream.ComputeInt32Size(LineCount); |
| | 603 | | } |
| 2 | 604 | | if (TextWrapping != false) { |
| 0 | 605 | | size += 2 + 1; |
| | 606 | | } |
| 2 | 607 | | if (ShadowBlur != 0F) { |
| 0 | 608 | | size += 2 + 4; |
| | 609 | | } |
| 2 | 610 | | if (ShadowOffsetX != 0F) { |
| 0 | 611 | | size += 2 + 4; |
| | 612 | | } |
| 2 | 613 | | if (ShadowOffsetY != 0F) { |
| 0 | 614 | | size += 2 + 4; |
| | 615 | | } |
| 2 | 616 | | if (OutlineWidth != 0F) { |
| 0 | 617 | | size += 2 + 4; |
| | 618 | | } |
| 2 | 619 | | if (shadowColor_ != null) { |
| 0 | 620 | | size += 2 + pb::CodedOutputStream.ComputeMessageSize(ShadowColor); |
| | 621 | | } |
| 2 | 622 | | if (outlineColor_ != null) { |
| 0 | 623 | | size += 2 + pb::CodedOutputStream.ComputeMessageSize(OutlineColor); |
| | 624 | | } |
| 2 | 625 | | if (textColor_ != null) { |
| 1 | 626 | | size += 2 + pb::CodedOutputStream.ComputeMessageSize(TextColor); |
| | 627 | | } |
| 2 | 628 | | if (_unknownFields != null) { |
| 0 | 629 | | size += _unknownFields.CalculateSize(); |
| | 630 | | } |
| 2 | 631 | | return size; |
| | 632 | | } |
| | 633 | |
|
| | 634 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 635 | | public void MergeFrom(PBTextShape other) { |
| 0 | 636 | | if (other == null) { |
| 0 | 637 | | return; |
| | 638 | | } |
| 0 | 639 | | if (other.Text.Length != 0) { |
| 0 | 640 | | Text = other.Text; |
| | 641 | | } |
| 0 | 642 | | if (other.Visible != false) { |
| 0 | 643 | | Visible = other.Visible; |
| | 644 | | } |
| 0 | 645 | | if (other.Font.Length != 0) { |
| 0 | 646 | | Font = other.Font; |
| | 647 | | } |
| 0 | 648 | | if (other.Opacity != 0F) { |
| 0 | 649 | | Opacity = other.Opacity; |
| | 650 | | } |
| 0 | 651 | | if (other.FontSize != 0F) { |
| 0 | 652 | | FontSize = other.FontSize; |
| | 653 | | } |
| 0 | 654 | | if (other.FontAutoSize != false) { |
| 0 | 655 | | FontAutoSize = other.FontAutoSize; |
| | 656 | | } |
| 0 | 657 | | if (other.HTextAlign.Length != 0) { |
| 0 | 658 | | HTextAlign = other.HTextAlign; |
| | 659 | | } |
| 0 | 660 | | if (other.VTextAlign.Length != 0) { |
| 0 | 661 | | VTextAlign = other.VTextAlign; |
| | 662 | | } |
| 0 | 663 | | if (other.Width != 0F) { |
| 0 | 664 | | Width = other.Width; |
| | 665 | | } |
| 0 | 666 | | if (other.Height != 0F) { |
| 0 | 667 | | Height = other.Height; |
| | 668 | | } |
| 0 | 669 | | if (other.PaddingTop != 0F) { |
| 0 | 670 | | PaddingTop = other.PaddingTop; |
| | 671 | | } |
| 0 | 672 | | if (other.PaddingRight != 0F) { |
| 0 | 673 | | PaddingRight = other.PaddingRight; |
| | 674 | | } |
| 0 | 675 | | if (other.PaddingBottom != 0F) { |
| 0 | 676 | | PaddingBottom = other.PaddingBottom; |
| | 677 | | } |
| 0 | 678 | | if (other.PaddingLeft != 0F) { |
| 0 | 679 | | PaddingLeft = other.PaddingLeft; |
| | 680 | | } |
| 0 | 681 | | if (other.LineSpacing != 0F) { |
| 0 | 682 | | LineSpacing = other.LineSpacing; |
| | 683 | | } |
| 0 | 684 | | if (other.LineCount != 0) { |
| 0 | 685 | | LineCount = other.LineCount; |
| | 686 | | } |
| 0 | 687 | | if (other.TextWrapping != false) { |
| 0 | 688 | | TextWrapping = other.TextWrapping; |
| | 689 | | } |
| 0 | 690 | | if (other.ShadowBlur != 0F) { |
| 0 | 691 | | ShadowBlur = other.ShadowBlur; |
| | 692 | | } |
| 0 | 693 | | if (other.ShadowOffsetX != 0F) { |
| 0 | 694 | | ShadowOffsetX = other.ShadowOffsetX; |
| | 695 | | } |
| 0 | 696 | | if (other.ShadowOffsetY != 0F) { |
| 0 | 697 | | ShadowOffsetY = other.ShadowOffsetY; |
| | 698 | | } |
| 0 | 699 | | if (other.OutlineWidth != 0F) { |
| 0 | 700 | | OutlineWidth = other.OutlineWidth; |
| | 701 | | } |
| 0 | 702 | | if (other.shadowColor_ != null) { |
| 0 | 703 | | if (shadowColor_ == null) { |
| 0 | 704 | | ShadowColor = new global::Color3(); |
| | 705 | | } |
| 0 | 706 | | ShadowColor.MergeFrom(other.ShadowColor); |
| | 707 | | } |
| 0 | 708 | | if (other.outlineColor_ != null) { |
| 0 | 709 | | if (outlineColor_ == null) { |
| 0 | 710 | | OutlineColor = new global::Color3(); |
| | 711 | | } |
| 0 | 712 | | OutlineColor.MergeFrom(other.OutlineColor); |
| | 713 | | } |
| 0 | 714 | | if (other.textColor_ != null) { |
| 0 | 715 | | if (textColor_ == null) { |
| 0 | 716 | | TextColor = new global::Color3(); |
| | 717 | | } |
| 0 | 718 | | TextColor.MergeFrom(other.TextColor); |
| | 719 | | } |
| 0 | 720 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 721 | | } |
| | 722 | |
|
| | 723 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 724 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 725 | | uint tag; |
| 7 | 726 | | while ((tag = input.ReadTag()) != 0) { |
| | 727 | | switch(tag) { |
| | 728 | | default: |
| 0 | 729 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 730 | | break; |
| | 731 | | case 10: { |
| 1 | 732 | | Text = input.ReadString(); |
| 1 | 733 | | break; |
| | 734 | | } |
| | 735 | | case 16: { |
| 1 | 736 | | Visible = input.ReadBool(); |
| 1 | 737 | | break; |
| | 738 | | } |
| | 739 | | case 26: { |
| 1 | 740 | | Font = input.ReadString(); |
| 1 | 741 | | break; |
| | 742 | | } |
| | 743 | | case 37: { |
| 0 | 744 | | Opacity = input.ReadFloat(); |
| 0 | 745 | | break; |
| | 746 | | } |
| | 747 | | case 45: { |
| 1 | 748 | | FontSize = input.ReadFloat(); |
| 1 | 749 | | break; |
| | 750 | | } |
| | 751 | | case 48: { |
| 0 | 752 | | FontAutoSize = input.ReadBool(); |
| 0 | 753 | | break; |
| | 754 | | } |
| | 755 | | case 58: { |
| 0 | 756 | | HTextAlign = input.ReadString(); |
| 0 | 757 | | break; |
| | 758 | | } |
| | 759 | | case 66: { |
| 0 | 760 | | VTextAlign = input.ReadString(); |
| 0 | 761 | | break; |
| | 762 | | } |
| | 763 | | case 77: { |
| 0 | 764 | | Width = input.ReadFloat(); |
| 0 | 765 | | break; |
| | 766 | | } |
| | 767 | | case 85: { |
| 0 | 768 | | Height = input.ReadFloat(); |
| 0 | 769 | | break; |
| | 770 | | } |
| | 771 | | case 93: { |
| 0 | 772 | | PaddingTop = input.ReadFloat(); |
| 0 | 773 | | break; |
| | 774 | | } |
| | 775 | | case 101: { |
| 0 | 776 | | PaddingRight = input.ReadFloat(); |
| 0 | 777 | | break; |
| | 778 | | } |
| | 779 | | case 109: { |
| 0 | 780 | | PaddingBottom = input.ReadFloat(); |
| 0 | 781 | | break; |
| | 782 | | } |
| | 783 | | case 117: { |
| 0 | 784 | | PaddingLeft = input.ReadFloat(); |
| 0 | 785 | | break; |
| | 786 | | } |
| | 787 | | case 125: { |
| 0 | 788 | | LineSpacing = input.ReadFloat(); |
| 0 | 789 | | break; |
| | 790 | | } |
| | 791 | | case 128: { |
| 1 | 792 | | LineCount = input.ReadInt32(); |
| 1 | 793 | | break; |
| | 794 | | } |
| | 795 | | case 136: { |
| 0 | 796 | | TextWrapping = input.ReadBool(); |
| 0 | 797 | | break; |
| | 798 | | } |
| | 799 | | case 149: { |
| 0 | 800 | | ShadowBlur = input.ReadFloat(); |
| 0 | 801 | | break; |
| | 802 | | } |
| | 803 | | case 157: { |
| 0 | 804 | | ShadowOffsetX = input.ReadFloat(); |
| 0 | 805 | | break; |
| | 806 | | } |
| | 807 | | case 165: { |
| 0 | 808 | | ShadowOffsetY = input.ReadFloat(); |
| 0 | 809 | | break; |
| | 810 | | } |
| | 811 | | case 173: { |
| 0 | 812 | | OutlineWidth = input.ReadFloat(); |
| 0 | 813 | | break; |
| | 814 | | } |
| | 815 | | case 178: { |
| 0 | 816 | | if (shadowColor_ == null) { |
| 0 | 817 | | ShadowColor = new global::Color3(); |
| | 818 | | } |
| 0 | 819 | | input.ReadMessage(ShadowColor); |
| 0 | 820 | | break; |
| | 821 | | } |
| | 822 | | case 186: { |
| 0 | 823 | | if (outlineColor_ == null) { |
| 0 | 824 | | OutlineColor = new global::Color3(); |
| | 825 | | } |
| 0 | 826 | | input.ReadMessage(OutlineColor); |
| 0 | 827 | | break; |
| | 828 | | } |
| | 829 | | case 194: { |
| 1 | 830 | | if (textColor_ == null) { |
| 1 | 831 | | TextColor = new global::Color3(); |
| | 832 | | } |
| 1 | 833 | | input.ReadMessage(TextColor); |
| | 834 | | break; |
| | 835 | | } |
| | 836 | | } |
| | 837 | | } |
| 1 | 838 | | } |
| | 839 | |
|
| | 840 | | } |
| | 841 | |
|
| | 842 | | #endregion |
| | 843 | |
|
| | 844 | | } |
| | 845 | |
|
| | 846 | | #endregion Designer generated code |