| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: BoxShape.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 BoxShape.proto</summary> |
| | 15 | | public static partial class BoxShapeReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for BoxShape.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static BoxShapeReflection() { |
| | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "Cg5Cb3hTaGFwZS5wcm90bxIQZGVjZW50cmFsYW5kLmVjcyJfCgpQQkJveFNo", |
| | 28 | | "YXBlEhcKD3dpdGhfY29sbGlzaW9ucxgBIAEoCBIaChJpc19wb2ludGVyX2Js", |
| | 29 | | "b2NrZXIYAiABKAgSDwoHdmlzaWJsZRgDIAEoCBILCgN1dnMYBCADKAJCFKoC", |
| | 30 | | "EURDTC5FQ1NDb21wb25lbnRzYgZwcm90bzM=")); |
| | 31 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 32 | | new pbr::FileDescriptor[] { }, |
| | 33 | | new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
| | 34 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBBoxShape), global::DCL.ECSComponents.PBBoxS |
| | 35 | | })); |
| | 36 | | } |
| | 37 | | #endregion |
| | 38 | |
|
| | 39 | | } |
| | 40 | | #region Messages |
| | 41 | | public sealed partial class PBBoxShape : pb::IMessage<PBBoxShape> { |
| 4 | 42 | | private static readonly pb::MessageParser<PBBoxShape> _parser = new pb::MessageParser<PBBoxShape>(() => new PBBoxSha |
| | 43 | | private pb::UnknownFieldSet _unknownFields; |
| | 44 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 0 | 45 | | public static pb::MessageParser<PBBoxShape> Parser { get { return _parser; } } |
| | 46 | |
|
| | 47 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 48 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 49 | | get { return global::DCL.ECSComponents.BoxShapeReflection.Descriptor.MessageTypes[0]; } |
| | 50 | | } |
| | 51 | |
|
| | 52 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 53 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 54 | | get { return Descriptor; } |
| | 55 | | } |
| | 56 | |
|
| | 57 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1 | 58 | | public PBBoxShape() { |
| | 59 | | OnConstruction(); |
| 1 | 60 | | } |
| | 61 | |
|
| | 62 | | partial void OnConstruction(); |
| | 63 | |
|
| | 64 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 0 | 65 | | public PBBoxShape(PBBoxShape other) : this() { |
| 0 | 66 | | withCollisions_ = other.withCollisions_; |
| 0 | 67 | | isPointerBlocker_ = other.isPointerBlocker_; |
| 0 | 68 | | visible_ = other.visible_; |
| 0 | 69 | | uvs_ = other.uvs_.Clone(); |
| 0 | 70 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 0 | 71 | | } |
| | 72 | |
|
| | 73 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 74 | | public PBBoxShape Clone() { |
| 0 | 75 | | return new PBBoxShape(this); |
| | 76 | | } |
| | 77 | |
|
| | 78 | | /// <summary>Field number for the "with_collisions" field.</summary> |
| | 79 | | public const int WithCollisionsFieldNumber = 1; |
| | 80 | | private bool withCollisions_; |
| | 81 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 82 | | public bool WithCollisions { |
| 0 | 83 | | get { return withCollisions_; } |
| | 84 | | set { |
| 0 | 85 | | withCollisions_ = value; |
| 0 | 86 | | } |
| | 87 | | } |
| | 88 | |
|
| | 89 | | /// <summary>Field number for the "is_pointer_blocker" field.</summary> |
| | 90 | | public const int IsPointerBlockerFieldNumber = 2; |
| | 91 | | private bool isPointerBlocker_; |
| | 92 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 93 | | public bool IsPointerBlocker { |
| 0 | 94 | | get { return isPointerBlocker_; } |
| | 95 | | set { |
| 0 | 96 | | isPointerBlocker_ = value; |
| 0 | 97 | | } |
| | 98 | | } |
| | 99 | |
|
| | 100 | | /// <summary>Field number for the "visible" field.</summary> |
| | 101 | | public const int VisibleFieldNumber = 3; |
| | 102 | | private bool visible_; |
| | 103 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 104 | | public bool Visible { |
| 0 | 105 | | get { return visible_; } |
| | 106 | | set { |
| 0 | 107 | | visible_ = value; |
| 0 | 108 | | } |
| | 109 | | } |
| | 110 | |
|
| | 111 | | /// <summary>Field number for the "uvs" field.</summary> |
| | 112 | | public const int UvsFieldNumber = 4; |
| 1 | 113 | | private static readonly pb::FieldCodec<float> _repeated_uvs_codec |
| | 114 | | = pb::FieldCodec.ForFloat(34); |
| 1 | 115 | | private readonly pbc::RepeatedField<float> uvs_ = new pbc::RepeatedField<float>(); |
| | 116 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 117 | | public pbc::RepeatedField<float> Uvs { |
| 0 | 118 | | get { return uvs_; } |
| | 119 | | } |
| | 120 | |
|
| | 121 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 122 | | public override bool Equals(object other) { |
| 30 | 123 | | return Equals(other as PBBoxShape); |
| | 124 | | } |
| | 125 | |
|
| | 126 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 127 | | public bool Equals(PBBoxShape other) { |
| 30 | 128 | | if (ReferenceEquals(other, null)) { |
| 0 | 129 | | return false; |
| | 130 | | } |
| 30 | 131 | | if (ReferenceEquals(other, this)) { |
| 30 | 132 | | return true; |
| | 133 | | } |
| 0 | 134 | | if (WithCollisions != other.WithCollisions) return false; |
| 0 | 135 | | if (IsPointerBlocker != other.IsPointerBlocker) return false; |
| 0 | 136 | | if (Visible != other.Visible) return false; |
| 0 | 137 | | if(!uvs_.Equals(other.uvs_)) return false; |
| 0 | 138 | | return Equals(_unknownFields, other._unknownFields); |
| | 139 | | } |
| | 140 | |
|
| | 141 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 142 | | public override int GetHashCode() { |
| 48 | 143 | | int hash = 1; |
| 48 | 144 | | if (WithCollisions != false) hash ^= WithCollisions.GetHashCode(); |
| 48 | 145 | | if (IsPointerBlocker != false) hash ^= IsPointerBlocker.GetHashCode(); |
| 48 | 146 | | if (Visible != false) hash ^= Visible.GetHashCode(); |
| 48 | 147 | | hash ^= uvs_.GetHashCode(); |
| 48 | 148 | | if (_unknownFields != null) { |
| 0 | 149 | | hash ^= _unknownFields.GetHashCode(); |
| | 150 | | } |
| 48 | 151 | | return hash; |
| | 152 | | } |
| | 153 | |
|
| | 154 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 155 | | public override string ToString() { |
| 0 | 156 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 157 | | } |
| | 158 | |
|
| | 159 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 160 | | public void WriteTo(pb::CodedOutputStream output) { |
| 4 | 161 | | if (WithCollisions != false) { |
| 1 | 162 | | output.WriteRawTag(8); |
| 1 | 163 | | output.WriteBool(WithCollisions); |
| | 164 | | } |
| 4 | 165 | | if (IsPointerBlocker != false) { |
| 1 | 166 | | output.WriteRawTag(16); |
| 1 | 167 | | output.WriteBool(IsPointerBlocker); |
| | 168 | | } |
| 4 | 169 | | if (Visible != false) { |
| 0 | 170 | | output.WriteRawTag(24); |
| 0 | 171 | | output.WriteBool(Visible); |
| | 172 | | } |
| 4 | 173 | | uvs_.WriteTo(output, _repeated_uvs_codec); |
| 4 | 174 | | if (_unknownFields != null) { |
| 0 | 175 | | _unknownFields.WriteTo(output); |
| | 176 | | } |
| 4 | 177 | | } |
| | 178 | |
|
| | 179 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 180 | | public int CalculateSize() { |
| 0 | 181 | | int size = 0; |
| 0 | 182 | | if (WithCollisions != false) { |
| 0 | 183 | | size += 1 + 1; |
| | 184 | | } |
| 0 | 185 | | if (IsPointerBlocker != false) { |
| 0 | 186 | | size += 1 + 1; |
| | 187 | | } |
| 0 | 188 | | if (Visible != false) { |
| 0 | 189 | | size += 1 + 1; |
| | 190 | | } |
| 0 | 191 | | size += uvs_.CalculateSize(_repeated_uvs_codec); |
| 0 | 192 | | if (_unknownFields != null) { |
| 0 | 193 | | size += _unknownFields.CalculateSize(); |
| | 194 | | } |
| 0 | 195 | | return size; |
| | 196 | | } |
| | 197 | |
|
| | 198 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 199 | | public void MergeFrom(PBBoxShape other) { |
| 0 | 200 | | if (other == null) { |
| 0 | 201 | | return; |
| | 202 | | } |
| 0 | 203 | | if (other.WithCollisions != false) { |
| 0 | 204 | | WithCollisions = other.WithCollisions; |
| | 205 | | } |
| 0 | 206 | | if (other.IsPointerBlocker != false) { |
| 0 | 207 | | IsPointerBlocker = other.IsPointerBlocker; |
| | 208 | | } |
| 0 | 209 | | if (other.Visible != false) { |
| 0 | 210 | | Visible = other.Visible; |
| | 211 | | } |
| 0 | 212 | | uvs_.Add(other.uvs_); |
| 0 | 213 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 214 | | } |
| | 215 | |
|
| | 216 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 217 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 218 | | uint tag; |
| 8 | 219 | | while ((tag = input.ReadTag()) != 0) { |
| | 220 | | switch(tag) { |
| | 221 | | default: |
| 0 | 222 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 223 | | break; |
| | 224 | | case 8: { |
| 1 | 225 | | WithCollisions = input.ReadBool(); |
| 1 | 226 | | break; |
| | 227 | | } |
| | 228 | | case 16: { |
| 1 | 229 | | IsPointerBlocker = input.ReadBool(); |
| 1 | 230 | | break; |
| | 231 | | } |
| | 232 | | case 24: { |
| 0 | 233 | | Visible = input.ReadBool(); |
| 0 | 234 | | break; |
| | 235 | | } |
| | 236 | | case 34: |
| | 237 | | case 37: { |
| 3 | 238 | | uvs_.AddEntriesFrom(input, _repeated_uvs_codec); |
| | 239 | | break; |
| | 240 | | } |
| | 241 | | } |
| | 242 | | } |
| 3 | 243 | | } |
| | 244 | |
|
| | 245 | | } |
| | 246 | |
|
| | 247 | | #endregion |
| | 248 | |
|
| | 249 | | } |
| | 250 | |
|
| | 251 | | #endregion Designer generated code |