| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: decentraland/sdk/components/mesh_collider.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/mesh_collider.proto</summary |
| | 15 | | public static partial class MeshColliderReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for decentraland/sdk/components/mesh_collider.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static MeshColliderReflection() { |
| | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "Ci9kZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvbWVzaF9jb2xsaWRlci5w", |
| | 28 | | "cm90bxIbZGVjZW50cmFsYW5kLnNkay5jb21wb25lbnRzIvgDCg5QQk1lc2hD", |
| | 29 | | "b2xsaWRlchIbCg5jb2xsaXNpb25fbWFzaxgBIAEoDUgBiAEBEkIKA2JveBgC", |
| | 30 | | "IAEoCzIzLmRlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cy5QQk1lc2hDb2xs", |
| | 31 | | "aWRlci5Cb3hNZXNoSAASSAoGc3BoZXJlGAMgASgLMjYuZGVjZW50cmFsYW5k", |
| | 32 | | "LnNkay5jb21wb25lbnRzLlBCTWVzaENvbGxpZGVyLlNwaGVyZU1lc2hIABJM", |
| | 33 | | "CghjeWxpbmRlchgEIAEoCzI4LmRlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50", |
| | 34 | | "cy5QQk1lc2hDb2xsaWRlci5DeWxpbmRlck1lc2hIABJGCgVwbGFuZRgFIAEo", |
| | 35 | | "CzI1LmRlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cy5QQk1lc2hDb2xsaWRl", |
| | 36 | | "ci5QbGFuZU1lc2hIABoJCgdCb3hNZXNoGmQKDEN5bGluZGVyTWVzaBIXCgpy", |
| | 37 | | "YWRpdXNfdG9wGAEgASgCSACIAQESGgoNcmFkaXVzX2JvdHRvbRgCIAEoAkgB", |
| | 38 | | "iAEBQg0KC19yYWRpdXNfdG9wQhAKDl9yYWRpdXNfYm90dG9tGgsKCVBsYW5l", |
| | 39 | | "TWVzaBoMCgpTcGhlcmVNZXNoQgYKBG1lc2hCEQoPX2NvbGxpc2lvbl9tYXNr", |
| | 40 | | "KrMCCg1Db2xsaWRlckxheWVyEgsKB0NMX05PTkUQABIOCgpDTF9QT0lOVEVS", |
| | 41 | | "EAESDgoKQ0xfUEhZU0lDUxACEhAKDENMX1JFU0VSVkVEMRAEEhAKDENMX1JF", |
| | 42 | | "U0VSVkVEMhAIEhAKDENMX1JFU0VSVkVEMxAQEhAKDENMX1JFU0VSVkVENBAg", |
| | 43 | | "EhAKDENMX1JFU0VSVkVENRBAEhEKDENMX1JFU0VSVkVENhCAARIPCgpDTF9D", |
| | 44 | | "VVNUT00xEIACEg8KCkNMX0NVU1RPTTIQgAQSDwoKQ0xfQ1VTVE9NMxCACBIP", |
| | 45 | | "CgpDTF9DVVNUT000EIAQEg8KCkNMX0NVU1RPTTUQgCASDwoKQ0xfQ1VTVE9N", |
| | 46 | | "NhCAQBIQCgpDTF9DVVNUT003EICAARIQCgpDTF9DVVNUT004EICAAkIUqgIR", |
| | 47 | | "RENMLkVDU0NvbXBvbmVudHNiBnByb3RvMw==")); |
| | 48 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 49 | | new pbr::FileDescriptor[] { }, |
| | 50 | | new pbr::GeneratedClrTypeInfo(new[] {typeof(global::DCL.ECSComponents.ColliderLayer), }, null, new pbr::Genera |
| | 51 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBMeshCollider), global::DCL.ECSComponents.PB |
| | 52 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBMeshCollider.Types.CylinderMesh), global::D |
| | 53 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBMeshCollider.Types.PlaneMesh), global::DCL. |
| | 54 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBMeshCollider.Types.SphereMesh), global::DCL |
| | 55 | | })); |
| | 56 | | } |
| | 57 | | #endregion |
| | 58 | |
|
| | 59 | | } |
| | 60 | | #region Enums |
| | 61 | | /// <summary> |
| | 62 | | /// ColliderLayer determines the kind of collision to detect, in OR-able bit flag form. |
| | 63 | | /// </summary> |
| | 64 | | public enum ColliderLayer { |
| | 65 | | /// <summary> |
| | 66 | | /// no collisions |
| | 67 | | /// </summary> |
| | 68 | | [pbr::OriginalName("CL_NONE")] ClNone = 0, |
| | 69 | | /// <summary> |
| | 70 | | /// collisions with the player's pointer ray (e.g. mouse cursor hovering) |
| | 71 | | /// </summary> |
| | 72 | | [pbr::OriginalName("CL_POINTER")] ClPointer = 1, |
| | 73 | | /// <summary> |
| | 74 | | /// collision affecting your player's physics i.e. walls, floor, moving platfroms |
| | 75 | | /// </summary> |
| | 76 | | [pbr::OriginalName("CL_PHYSICS")] ClPhysics = 2, |
| | 77 | | [pbr::OriginalName("CL_RESERVED1")] ClReserved1 = 4, |
| | 78 | | [pbr::OriginalName("CL_RESERVED2")] ClReserved2 = 8, |
| | 79 | | [pbr::OriginalName("CL_RESERVED3")] ClReserved3 = 16, |
| | 80 | | [pbr::OriginalName("CL_RESERVED4")] ClReserved4 = 32, |
| | 81 | | [pbr::OriginalName("CL_RESERVED5")] ClReserved5 = 64, |
| | 82 | | [pbr::OriginalName("CL_RESERVED6")] ClReserved6 = 128, |
| | 83 | | [pbr::OriginalName("CL_CUSTOM1")] ClCustom1 = 256, |
| | 84 | | [pbr::OriginalName("CL_CUSTOM2")] ClCustom2 = 512, |
| | 85 | | [pbr::OriginalName("CL_CUSTOM3")] ClCustom3 = 1024, |
| | 86 | | [pbr::OriginalName("CL_CUSTOM4")] ClCustom4 = 2048, |
| | 87 | | [pbr::OriginalName("CL_CUSTOM5")] ClCustom5 = 4096, |
| | 88 | | [pbr::OriginalName("CL_CUSTOM6")] ClCustom6 = 8192, |
| | 89 | | [pbr::OriginalName("CL_CUSTOM7")] ClCustom7 = 16384, |
| | 90 | | [pbr::OriginalName("CL_CUSTOM8")] ClCustom8 = 32768, |
| | 91 | | } |
| | 92 | |
|
| | 93 | | #endregion |
| | 94 | |
|
| | 95 | | #region Messages |
| | 96 | | /// <summary> |
| | 97 | | /// The MeshCollider component provides basic collision detection between Entities and Avatars. It |
| | 98 | | /// can behave like a cube, a plane, a sphere or a cylinder. |
| | 99 | | /// |
| | 100 | | /// The Entity's Transform affects the MeshCollider, scaling it and rotating it appropriately. If |
| | 101 | | /// the Transform for the collision mesh must be different than the Transform for rendering the Entity, |
| | 102 | | /// two different Entities must be used. |
| | 103 | | /// |
| | 104 | | /// More complex shapes require the use of a `GltfContainer` component. |
| | 105 | | /// </summary> |
| | 106 | | public sealed partial class PBMeshCollider : pb::IMessage<PBMeshCollider> |
| | 107 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 108 | | , pb::IBufferMessage |
| | 109 | | #endif |
| | 110 | | { |
| 1 | 111 | | private static readonly pb::MessageParser<PBMeshCollider> _parser = new pb::MessageParser<PBMeshCollider>(() => new |
| | 112 | | private pb::UnknownFieldSet _unknownFields; |
| | 113 | | private int _hasBits0; |
| | 114 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 115 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 116 | | public static pb::MessageParser<PBMeshCollider> Parser { get { return _parser; } } |
| | 117 | |
|
| | 118 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 119 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 120 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 121 | | get { return global::DCL.ECSComponents.MeshColliderReflection.Descriptor.MessageTypes[0]; } |
| | 122 | | } |
| | 123 | |
|
| | 124 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 125 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 126 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 127 | | get { return Descriptor; } |
| | 128 | | } |
| | 129 | |
|
| | 130 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 131 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 14 | 132 | | public PBMeshCollider() { |
| | 133 | | OnConstruction(); |
| 14 | 134 | | } |
| | 135 | |
|
| | 136 | | partial void OnConstruction(); |
| | 137 | |
|
| | 138 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 139 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 140 | | public PBMeshCollider(PBMeshCollider other) : this() { |
| 0 | 141 | | _hasBits0 = other._hasBits0; |
| 0 | 142 | | collisionMask_ = other.collisionMask_; |
| 0 | 143 | | switch (other.MeshCase) { |
| | 144 | | case MeshOneofCase.Box: |
| 0 | 145 | | Box = other.Box.Clone(); |
| 0 | 146 | | break; |
| | 147 | | case MeshOneofCase.Sphere: |
| 0 | 148 | | Sphere = other.Sphere.Clone(); |
| 0 | 149 | | break; |
| | 150 | | case MeshOneofCase.Cylinder: |
| 0 | 151 | | Cylinder = other.Cylinder.Clone(); |
| 0 | 152 | | break; |
| | 153 | | case MeshOneofCase.Plane: |
| 0 | 154 | | Plane = other.Plane.Clone(); |
| | 155 | | break; |
| | 156 | | } |
| | 157 | |
|
| 0 | 158 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 0 | 159 | | } |
| | 160 | |
|
| | 161 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 162 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 163 | | public PBMeshCollider Clone() { |
| 0 | 164 | | return new PBMeshCollider(this); |
| | 165 | | } |
| | 166 | |
|
| | 167 | | /// <summary>Field number for the "collision_mask" field.</summary> |
| | 168 | | public const int CollisionMaskFieldNumber = 1; |
| | 169 | | private uint collisionMask_; |
| | 170 | | /// <summary> |
| | 171 | | /// enabled ColliderLayers (default CL_POINTER | CL_PHYSICS) |
| | 172 | | /// </summary> |
| | 173 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 174 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 175 | | public uint CollisionMask { |
| 56 | 176 | | get { if ((_hasBits0 & 1) != 0) { return collisionMask_; } else { return 0; } } |
| | 177 | | set { |
| 7 | 178 | | _hasBits0 |= 1; |
| 7 | 179 | | collisionMask_ = value; |
| 7 | 180 | | } |
| | 181 | | } |
| | 182 | | /// <summary>Gets whether the "collision_mask" field is set</summary> |
| | 183 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 184 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 185 | | public bool HasCollisionMask { |
| 28 | 186 | | get { return (_hasBits0 & 1) != 0; } |
| | 187 | | } |
| | 188 | | /// <summary>Clears the value of the "collision_mask" field</summary> |
| | 189 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 190 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 191 | | public void ClearCollisionMask() { |
| 0 | 192 | | _hasBits0 &= ~1; |
| 0 | 193 | | } |
| | 194 | |
|
| | 195 | | /// <summary>Field number for the "box" field.</summary> |
| | 196 | | public const int BoxFieldNumber = 2; |
| | 197 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 198 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 199 | | public global::DCL.ECSComponents.PBMeshCollider.Types.BoxMesh Box { |
| 2 | 200 | | get { return meshCase_ == MeshOneofCase.Box ? (global::DCL.ECSComponents.PBMeshCollider.Types.BoxMesh) mesh_ : nul |
| | 201 | | set { |
| 6 | 202 | | mesh_ = value; |
| 6 | 203 | | meshCase_ = value == null ? MeshOneofCase.None : MeshOneofCase.Box; |
| 6 | 204 | | } |
| | 205 | | } |
| | 206 | |
|
| | 207 | | /// <summary>Field number for the "sphere" field.</summary> |
| | 208 | | public const int SphereFieldNumber = 3; |
| | 209 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 210 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 211 | | public global::DCL.ECSComponents.PBMeshCollider.Types.SphereMesh Sphere { |
| 2 | 212 | | get { return meshCase_ == MeshOneofCase.Sphere ? (global::DCL.ECSComponents.PBMeshCollider.Types.SphereMesh) mesh_ |
| | 213 | | set { |
| 1 | 214 | | mesh_ = value; |
| 1 | 215 | | meshCase_ = value == null ? MeshOneofCase.None : MeshOneofCase.Sphere; |
| 1 | 216 | | } |
| | 217 | | } |
| | 218 | |
|
| | 219 | | /// <summary>Field number for the "cylinder" field.</summary> |
| | 220 | | public const int CylinderFieldNumber = 4; |
| | 221 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 222 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 223 | | public global::DCL.ECSComponents.PBMeshCollider.Types.CylinderMesh Cylinder { |
| 10 | 224 | | get { return meshCase_ == MeshOneofCase.Cylinder ? (global::DCL.ECSComponents.PBMeshCollider.Types.CylinderMesh) m |
| | 225 | | set { |
| 3 | 226 | | mesh_ = value; |
| 3 | 227 | | meshCase_ = value == null ? MeshOneofCase.None : MeshOneofCase.Cylinder; |
| 3 | 228 | | } |
| | 229 | | } |
| | 230 | |
|
| | 231 | | /// <summary>Field number for the "plane" field.</summary> |
| | 232 | | public const int PlaneFieldNumber = 5; |
| | 233 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 234 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 235 | | public global::DCL.ECSComponents.PBMeshCollider.Types.PlaneMesh Plane { |
| 0 | 236 | | get { return meshCase_ == MeshOneofCase.Plane ? (global::DCL.ECSComponents.PBMeshCollider.Types.PlaneMesh) mesh_ : |
| | 237 | | set { |
| 4 | 238 | | mesh_ = value; |
| 4 | 239 | | meshCase_ = value == null ? MeshOneofCase.None : MeshOneofCase.Plane; |
| 4 | 240 | | } |
| | 241 | | } |
| | 242 | |
|
| | 243 | | private object mesh_; |
| | 244 | | /// <summary>Enum of possible cases for the "mesh" oneof.</summary> |
| | 245 | | public enum MeshOneofCase { |
| | 246 | | None = 0, |
| | 247 | | Box = 2, |
| | 248 | | Sphere = 3, |
| | 249 | | Cylinder = 4, |
| | 250 | | Plane = 5, |
| | 251 | | } |
| | 252 | | private MeshOneofCase meshCase_ = MeshOneofCase.None; |
| | 253 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 254 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 255 | | public MeshOneofCase MeshCase { |
| 36 | 256 | | get { return meshCase_; } |
| | 257 | | } |
| | 258 | |
|
| | 259 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 260 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 261 | | public void ClearMesh() { |
| 0 | 262 | | meshCase_ = MeshOneofCase.None; |
| 0 | 263 | | mesh_ = null; |
| 0 | 264 | | } |
| | 265 | |
|
| | 266 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 267 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 268 | | public override bool Equals(object other) { |
| 0 | 269 | | return Equals(other as PBMeshCollider); |
| | 270 | | } |
| | 271 | |
|
| | 272 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 273 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 274 | | public bool Equals(PBMeshCollider other) { |
| 7 | 275 | | if (ReferenceEquals(other, null)) { |
| 0 | 276 | | return false; |
| | 277 | | } |
| 7 | 278 | | if (ReferenceEquals(other, this)) { |
| 0 | 279 | | return true; |
| | 280 | | } |
| 13 | 281 | | if (CollisionMask != other.CollisionMask) return false; |
| 1 | 282 | | if (!object.Equals(Box, other.Box)) return false; |
| 1 | 283 | | if (!object.Equals(Sphere, other.Sphere)) return false; |
| 2 | 284 | | if (!object.Equals(Cylinder, other.Cylinder)) return false; |
| 0 | 285 | | if (!object.Equals(Plane, other.Plane)) return false; |
| 0 | 286 | | if (MeshCase != other.MeshCase) return false; |
| 0 | 287 | | return Equals(_unknownFields, other._unknownFields); |
| | 288 | | } |
| | 289 | |
|
| | 290 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 291 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 292 | | public override int GetHashCode() { |
| 0 | 293 | | int hash = 1; |
| 0 | 294 | | if (HasCollisionMask) hash ^= CollisionMask.GetHashCode(); |
| 0 | 295 | | if (meshCase_ == MeshOneofCase.Box) hash ^= Box.GetHashCode(); |
| 0 | 296 | | if (meshCase_ == MeshOneofCase.Sphere) hash ^= Sphere.GetHashCode(); |
| 0 | 297 | | if (meshCase_ == MeshOneofCase.Cylinder) hash ^= Cylinder.GetHashCode(); |
| 0 | 298 | | if (meshCase_ == MeshOneofCase.Plane) hash ^= Plane.GetHashCode(); |
| 0 | 299 | | hash ^= (int) meshCase_; |
| 0 | 300 | | if (_unknownFields != null) { |
| 0 | 301 | | hash ^= _unknownFields.GetHashCode(); |
| | 302 | | } |
| 0 | 303 | | return hash; |
| | 304 | | } |
| | 305 | |
|
| | 306 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 307 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 308 | | public override string ToString() { |
| 0 | 309 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 310 | | } |
| | 311 | |
|
| | 312 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 313 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 314 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 315 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 316 | | output.WriteRawMessage(this); |
| | 317 | | #else |
| 0 | 318 | | if (HasCollisionMask) { |
| 0 | 319 | | output.WriteRawTag(8); |
| 0 | 320 | | output.WriteUInt32(CollisionMask); |
| | 321 | | } |
| 0 | 322 | | if (meshCase_ == MeshOneofCase.Box) { |
| 0 | 323 | | output.WriteRawTag(18); |
| 0 | 324 | | output.WriteMessage(Box); |
| | 325 | | } |
| 0 | 326 | | if (meshCase_ == MeshOneofCase.Sphere) { |
| 0 | 327 | | output.WriteRawTag(26); |
| 0 | 328 | | output.WriteMessage(Sphere); |
| | 329 | | } |
| 0 | 330 | | if (meshCase_ == MeshOneofCase.Cylinder) { |
| 0 | 331 | | output.WriteRawTag(34); |
| 0 | 332 | | output.WriteMessage(Cylinder); |
| | 333 | | } |
| 0 | 334 | | if (meshCase_ == MeshOneofCase.Plane) { |
| 0 | 335 | | output.WriteRawTag(42); |
| 0 | 336 | | output.WriteMessage(Plane); |
| | 337 | | } |
| 0 | 338 | | if (_unknownFields != null) { |
| 0 | 339 | | _unknownFields.WriteTo(output); |
| | 340 | | } |
| | 341 | | #endif |
| 0 | 342 | | } |
| | 343 | |
|
| | 344 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 345 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 346 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 347 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 348 | | if (HasCollisionMask) { |
| | 349 | | output.WriteRawTag(8); |
| | 350 | | output.WriteUInt32(CollisionMask); |
| | 351 | | } |
| | 352 | | if (meshCase_ == MeshOneofCase.Box) { |
| | 353 | | output.WriteRawTag(18); |
| | 354 | | output.WriteMessage(Box); |
| | 355 | | } |
| | 356 | | if (meshCase_ == MeshOneofCase.Sphere) { |
| | 357 | | output.WriteRawTag(26); |
| | 358 | | output.WriteMessage(Sphere); |
| | 359 | | } |
| | 360 | | if (meshCase_ == MeshOneofCase.Cylinder) { |
| | 361 | | output.WriteRawTag(34); |
| | 362 | | output.WriteMessage(Cylinder); |
| | 363 | | } |
| | 364 | | if (meshCase_ == MeshOneofCase.Plane) { |
| | 365 | | output.WriteRawTag(42); |
| | 366 | | output.WriteMessage(Plane); |
| | 367 | | } |
| | 368 | | if (_unknownFields != null) { |
| | 369 | | _unknownFields.WriteTo(ref output); |
| | 370 | | } |
| | 371 | | } |
| | 372 | | #endif |
| | 373 | |
|
| | 374 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 375 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 376 | | public int CalculateSize() { |
| 0 | 377 | | int size = 0; |
| 0 | 378 | | if (HasCollisionMask) { |
| 0 | 379 | | size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CollisionMask); |
| | 380 | | } |
| 0 | 381 | | if (meshCase_ == MeshOneofCase.Box) { |
| 0 | 382 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Box); |
| | 383 | | } |
| 0 | 384 | | if (meshCase_ == MeshOneofCase.Sphere) { |
| 0 | 385 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sphere); |
| | 386 | | } |
| 0 | 387 | | if (meshCase_ == MeshOneofCase.Cylinder) { |
| 0 | 388 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Cylinder); |
| | 389 | | } |
| 0 | 390 | | if (meshCase_ == MeshOneofCase.Plane) { |
| 0 | 391 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Plane); |
| | 392 | | } |
| 0 | 393 | | if (_unknownFields != null) { |
| 0 | 394 | | size += _unknownFields.CalculateSize(); |
| | 395 | | } |
| 0 | 396 | | return size; |
| | 397 | | } |
| | 398 | |
|
| | 399 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 400 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 401 | | public void MergeFrom(PBMeshCollider other) { |
| 0 | 402 | | if (other == null) { |
| 0 | 403 | | return; |
| | 404 | | } |
| 0 | 405 | | if (other.HasCollisionMask) { |
| 0 | 406 | | CollisionMask = other.CollisionMask; |
| | 407 | | } |
| 0 | 408 | | switch (other.MeshCase) { |
| | 409 | | case MeshOneofCase.Box: |
| 0 | 410 | | if (Box == null) { |
| 0 | 411 | | Box = new global::DCL.ECSComponents.PBMeshCollider.Types.BoxMesh(); |
| | 412 | | } |
| 0 | 413 | | Box.MergeFrom(other.Box); |
| 0 | 414 | | break; |
| | 415 | | case MeshOneofCase.Sphere: |
| 0 | 416 | | if (Sphere == null) { |
| 0 | 417 | | Sphere = new global::DCL.ECSComponents.PBMeshCollider.Types.SphereMesh(); |
| | 418 | | } |
| 0 | 419 | | Sphere.MergeFrom(other.Sphere); |
| 0 | 420 | | break; |
| | 421 | | case MeshOneofCase.Cylinder: |
| 0 | 422 | | if (Cylinder == null) { |
| 0 | 423 | | Cylinder = new global::DCL.ECSComponents.PBMeshCollider.Types.CylinderMesh(); |
| | 424 | | } |
| 0 | 425 | | Cylinder.MergeFrom(other.Cylinder); |
| 0 | 426 | | break; |
| | 427 | | case MeshOneofCase.Plane: |
| 0 | 428 | | if (Plane == null) { |
| 0 | 429 | | Plane = new global::DCL.ECSComponents.PBMeshCollider.Types.PlaneMesh(); |
| | 430 | | } |
| 0 | 431 | | Plane.MergeFrom(other.Plane); |
| | 432 | | break; |
| | 433 | | } |
| | 434 | |
|
| 0 | 435 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 436 | | } |
| | 437 | |
|
| | 438 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 439 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 440 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 441 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 442 | | input.ReadRawMessage(this); |
| | 443 | | #else |
| | 444 | | uint tag; |
| 0 | 445 | | while ((tag = input.ReadTag()) != 0) { |
| | 446 | | switch(tag) { |
| | 447 | | default: |
| 0 | 448 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 449 | | break; |
| | 450 | | case 8: { |
| 0 | 451 | | CollisionMask = input.ReadUInt32(); |
| 0 | 452 | | break; |
| | 453 | | } |
| | 454 | | case 18: { |
| 0 | 455 | | global::DCL.ECSComponents.PBMeshCollider.Types.BoxMesh subBuilder = new global::DCL.ECSComponents.PBMeshColl |
| 0 | 456 | | if (meshCase_ == MeshOneofCase.Box) { |
| 0 | 457 | | subBuilder.MergeFrom(Box); |
| | 458 | | } |
| 0 | 459 | | input.ReadMessage(subBuilder); |
| 0 | 460 | | Box = subBuilder; |
| 0 | 461 | | break; |
| | 462 | | } |
| | 463 | | case 26: { |
| 0 | 464 | | global::DCL.ECSComponents.PBMeshCollider.Types.SphereMesh subBuilder = new global::DCL.ECSComponents.PBMeshC |
| 0 | 465 | | if (meshCase_ == MeshOneofCase.Sphere) { |
| 0 | 466 | | subBuilder.MergeFrom(Sphere); |
| | 467 | | } |
| 0 | 468 | | input.ReadMessage(subBuilder); |
| 0 | 469 | | Sphere = subBuilder; |
| 0 | 470 | | break; |
| | 471 | | } |
| | 472 | | case 34: { |
| 0 | 473 | | global::DCL.ECSComponents.PBMeshCollider.Types.CylinderMesh subBuilder = new global::DCL.ECSComponents.PBMes |
| 0 | 474 | | if (meshCase_ == MeshOneofCase.Cylinder) { |
| 0 | 475 | | subBuilder.MergeFrom(Cylinder); |
| | 476 | | } |
| 0 | 477 | | input.ReadMessage(subBuilder); |
| 0 | 478 | | Cylinder = subBuilder; |
| 0 | 479 | | break; |
| | 480 | | } |
| | 481 | | case 42: { |
| 0 | 482 | | global::DCL.ECSComponents.PBMeshCollider.Types.PlaneMesh subBuilder = new global::DCL.ECSComponents.PBMeshCo |
| 0 | 483 | | if (meshCase_ == MeshOneofCase.Plane) { |
| 0 | 484 | | subBuilder.MergeFrom(Plane); |
| | 485 | | } |
| 0 | 486 | | input.ReadMessage(subBuilder); |
| 0 | 487 | | Plane = subBuilder; |
| | 488 | | break; |
| | 489 | | } |
| | 490 | | } |
| | 491 | | } |
| | 492 | | #endif |
| 0 | 493 | | } |
| | 494 | |
|
| | 495 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 496 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 497 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 498 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 499 | | uint tag; |
| | 500 | | while ((tag = input.ReadTag()) != 0) { |
| | 501 | | switch(tag) { |
| | 502 | | default: |
| | 503 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 504 | | break; |
| | 505 | | case 8: { |
| | 506 | | CollisionMask = input.ReadUInt32(); |
| | 507 | | break; |
| | 508 | | } |
| | 509 | | case 18: { |
| | 510 | | global::DCL.ECSComponents.PBMeshCollider.Types.BoxMesh subBuilder = new global::DCL.ECSComponents.PBMeshColl |
| | 511 | | if (meshCase_ == MeshOneofCase.Box) { |
| | 512 | | subBuilder.MergeFrom(Box); |
| | 513 | | } |
| | 514 | | input.ReadMessage(subBuilder); |
| | 515 | | Box = subBuilder; |
| | 516 | | break; |
| | 517 | | } |
| | 518 | | case 26: { |
| | 519 | | global::DCL.ECSComponents.PBMeshCollider.Types.SphereMesh subBuilder = new global::DCL.ECSComponents.PBMeshC |
| | 520 | | if (meshCase_ == MeshOneofCase.Sphere) { |
| | 521 | | subBuilder.MergeFrom(Sphere); |
| | 522 | | } |
| | 523 | | input.ReadMessage(subBuilder); |
| | 524 | | Sphere = subBuilder; |
| | 525 | | break; |
| | 526 | | } |
| | 527 | | case 34: { |
| | 528 | | global::DCL.ECSComponents.PBMeshCollider.Types.CylinderMesh subBuilder = new global::DCL.ECSComponents.PBMes |
| | 529 | | if (meshCase_ == MeshOneofCase.Cylinder) { |
| | 530 | | subBuilder.MergeFrom(Cylinder); |
| | 531 | | } |
| | 532 | | input.ReadMessage(subBuilder); |
| | 533 | | Cylinder = subBuilder; |
| | 534 | | break; |
| | 535 | | } |
| | 536 | | case 42: { |
| | 537 | | global::DCL.ECSComponents.PBMeshCollider.Types.PlaneMesh subBuilder = new global::DCL.ECSComponents.PBMeshCo |
| | 538 | | if (meshCase_ == MeshOneofCase.Plane) { |
| | 539 | | subBuilder.MergeFrom(Plane); |
| | 540 | | } |
| | 541 | | input.ReadMessage(subBuilder); |
| | 542 | | Plane = subBuilder; |
| | 543 | | break; |
| | 544 | | } |
| | 545 | | } |
| | 546 | | } |
| | 547 | | } |
| | 548 | | #endif |
| | 549 | |
|
| | 550 | | #region Nested types |
| | 551 | | /// <summary>Container for nested types declared in the PBMeshCollider message type.</summary> |
| | 552 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 553 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 554 | | public static partial class Types { |
| | 555 | | /// <summary> |
| | 556 | | /// BoxMesh is a prism shape that contains the Entity. |
| | 557 | | /// </summary> |
| | 558 | | public sealed partial class BoxMesh : pb::IMessage<BoxMesh> |
| | 559 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 560 | | , pb::IBufferMessage |
| | 561 | | #endif |
| | 562 | | { |
| 1 | 563 | | private static readonly pb::MessageParser<BoxMesh> _parser = new pb::MessageParser<BoxMesh>(() => new BoxMesh()) |
| | 564 | | private pb::UnknownFieldSet _unknownFields; |
| | 565 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 566 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 567 | | public static pb::MessageParser<BoxMesh> Parser { get { return _parser; } } |
| | 568 | |
|
| | 569 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 570 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 571 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 572 | | get { return global::DCL.ECSComponents.PBMeshCollider.Descriptor.NestedTypes[0]; } |
| | 573 | | } |
| | 574 | |
|
| | 575 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 576 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 577 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 578 | | get { return Descriptor; } |
| | 579 | | } |
| | 580 | |
|
| | 581 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 582 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 6 | 583 | | public BoxMesh() { |
| | 584 | | OnConstruction(); |
| 6 | 585 | | } |
| | 586 | |
|
| | 587 | | partial void OnConstruction(); |
| | 588 | |
|
| | 589 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 590 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 591 | | public BoxMesh(BoxMesh other) : this() { |
| 0 | 592 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 0 | 593 | | } |
| | 594 | |
|
| | 595 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 596 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 597 | | public BoxMesh Clone() { |
| 0 | 598 | | return new BoxMesh(this); |
| | 599 | | } |
| | 600 | |
|
| | 601 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 602 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 603 | | public override bool Equals(object other) { |
| 0 | 604 | | return Equals(other as BoxMesh); |
| | 605 | | } |
| | 606 | |
|
| | 607 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 608 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 609 | | public bool Equals(BoxMesh other) { |
| 0 | 610 | | if (ReferenceEquals(other, null)) { |
| 0 | 611 | | return false; |
| | 612 | | } |
| 0 | 613 | | if (ReferenceEquals(other, this)) { |
| 0 | 614 | | return true; |
| | 615 | | } |
| 0 | 616 | | return Equals(_unknownFields, other._unknownFields); |
| | 617 | | } |
| | 618 | |
|
| | 619 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 620 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 621 | | public override int GetHashCode() { |
| 0 | 622 | | int hash = 1; |
| 0 | 623 | | if (_unknownFields != null) { |
| 0 | 624 | | hash ^= _unknownFields.GetHashCode(); |
| | 625 | | } |
| 0 | 626 | | return hash; |
| | 627 | | } |
| | 628 | |
|
| | 629 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 630 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 631 | | public override string ToString() { |
| 0 | 632 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 633 | | } |
| | 634 | |
|
| | 635 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 636 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 637 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 638 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 639 | | output.WriteRawMessage(this); |
| | 640 | | #else |
| 0 | 641 | | if (_unknownFields != null) { |
| 0 | 642 | | _unknownFields.WriteTo(output); |
| | 643 | | } |
| | 644 | | #endif |
| 0 | 645 | | } |
| | 646 | |
|
| | 647 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 648 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 649 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 650 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 651 | | if (_unknownFields != null) { |
| | 652 | | _unknownFields.WriteTo(ref output); |
| | 653 | | } |
| | 654 | | } |
| | 655 | | #endif |
| | 656 | |
|
| | 657 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 658 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 659 | | public int CalculateSize() { |
| 0 | 660 | | int size = 0; |
| 0 | 661 | | if (_unknownFields != null) { |
| 0 | 662 | | size += _unknownFields.CalculateSize(); |
| | 663 | | } |
| 0 | 664 | | return size; |
| | 665 | | } |
| | 666 | |
|
| | 667 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 668 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 669 | | public void MergeFrom(BoxMesh other) { |
| 0 | 670 | | if (other == null) { |
| 0 | 671 | | return; |
| | 672 | | } |
| 0 | 673 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 674 | | } |
| | 675 | |
|
| | 676 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 677 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 678 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 679 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 680 | | input.ReadRawMessage(this); |
| | 681 | | #else |
| | 682 | | uint tag; |
| 0 | 683 | | while ((tag = input.ReadTag()) != 0) { |
| | 684 | | switch(tag) { |
| | 685 | | default: |
| 0 | 686 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | 687 | | break; |
| | 688 | | } |
| | 689 | | } |
| | 690 | | #endif |
| 0 | 691 | | } |
| | 692 | |
|
| | 693 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 694 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 695 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 696 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 697 | | uint tag; |
| | 698 | | while ((tag = input.ReadTag()) != 0) { |
| | 699 | | switch(tag) { |
| | 700 | | default: |
| | 701 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 702 | | break; |
| | 703 | | } |
| | 704 | | } |
| | 705 | | } |
| | 706 | | #endif |
| | 707 | |
|
| | 708 | | } |
| | 709 | |
|
| | 710 | | /// <summary> |
| | 711 | | /// CylinderMesh is a truncated cone shape that contains the Entity. |
| | 712 | | /// </summary> |
| | 713 | | public sealed partial class CylinderMesh : pb::IMessage<CylinderMesh> |
| | 714 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 715 | | , pb::IBufferMessage |
| | 716 | | #endif |
| | 717 | | { |
| 1 | 718 | | private static readonly pb::MessageParser<CylinderMesh> _parser = new pb::MessageParser<CylinderMesh>(() => new |
| | 719 | | private pb::UnknownFieldSet _unknownFields; |
| | 720 | | private int _hasBits0; |
| | 721 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 722 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 723 | | public static pb::MessageParser<CylinderMesh> Parser { get { return _parser; } } |
| | 724 | |
|
| | 725 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 726 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 727 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 728 | | get { return global::DCL.ECSComponents.PBMeshCollider.Descriptor.NestedTypes[1]; } |
| | 729 | | } |
| | 730 | |
|
| | 731 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 732 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 733 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 734 | | get { return Descriptor; } |
| | 735 | | } |
| | 736 | |
|
| | 737 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 738 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 3 | 739 | | public CylinderMesh() { |
| | 740 | | OnConstruction(); |
| 3 | 741 | | } |
| | 742 | |
|
| | 743 | | partial void OnConstruction(); |
| | 744 | |
|
| | 745 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 746 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 747 | | public CylinderMesh(CylinderMesh other) : this() { |
| 0 | 748 | | _hasBits0 = other._hasBits0; |
| 0 | 749 | | radiusTop_ = other.radiusTop_; |
| 0 | 750 | | radiusBottom_ = other.radiusBottom_; |
| 0 | 751 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 0 | 752 | | } |
| | 753 | |
|
| | 754 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 755 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 756 | | public CylinderMesh Clone() { |
| 0 | 757 | | return new CylinderMesh(this); |
| | 758 | | } |
| | 759 | |
|
| | 760 | | /// <summary>Field number for the "radius_top" field.</summary> |
| | 761 | | public const int RadiusTopFieldNumber = 1; |
| | 762 | | private float radiusTop_; |
| | 763 | | /// <summary> |
| | 764 | | /// (default 0.5) |
| | 765 | | /// </summary> |
| | 766 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 767 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 768 | | public float RadiusTop { |
| 8 | 769 | | get { if ((_hasBits0 & 1) != 0) { return radiusTop_; } else { return 0F; } } |
| | 770 | | set { |
| 0 | 771 | | _hasBits0 |= 1; |
| 0 | 772 | | radiusTop_ = value; |
| 0 | 773 | | } |
| | 774 | | } |
| | 775 | | /// <summary>Gets whether the "radius_top" field is set</summary> |
| | 776 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 777 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 778 | | public bool HasRadiusTop { |
| 3 | 779 | | get { return (_hasBits0 & 1) != 0; } |
| | 780 | | } |
| | 781 | | /// <summary>Clears the value of the "radius_top" field</summary> |
| | 782 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 783 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 784 | | public void ClearRadiusTop() { |
| 0 | 785 | | _hasBits0 &= ~1; |
| 0 | 786 | | } |
| | 787 | |
|
| | 788 | | /// <summary>Field number for the "radius_bottom" field.</summary> |
| | 789 | | public const int RadiusBottomFieldNumber = 2; |
| | 790 | | private float radiusBottom_; |
| | 791 | | /// <summary> |
| | 792 | | /// (default 0.5) |
| | 793 | | /// </summary> |
| | 794 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 795 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 796 | | public float RadiusBottom { |
| 10 | 797 | | get { if ((_hasBits0 & 2) != 0) { return radiusBottom_; } else { return 0F; } } |
| | 798 | | set { |
| 1 | 799 | | _hasBits0 |= 2; |
| 1 | 800 | | radiusBottom_ = value; |
| 1 | 801 | | } |
| | 802 | | } |
| | 803 | | /// <summary>Gets whether the "radius_bottom" field is set</summary> |
| | 804 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 805 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 806 | | public bool HasRadiusBottom { |
| 3 | 807 | | get { return (_hasBits0 & 2) != 0; } |
| | 808 | | } |
| | 809 | | /// <summary>Clears the value of the "radius_bottom" field</summary> |
| | 810 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 811 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 812 | | public void ClearRadiusBottom() { |
| 0 | 813 | | _hasBits0 &= ~2; |
| 0 | 814 | | } |
| | 815 | |
|
| | 816 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 817 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 818 | | public override bool Equals(object other) { |
| 1 | 819 | | return Equals(other as CylinderMesh); |
| | 820 | | } |
| | 821 | |
|
| | 822 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 823 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 824 | | public bool Equals(CylinderMesh other) { |
| 2 | 825 | | if (ReferenceEquals(other, null)) { |
| 0 | 826 | | return false; |
| | 827 | | } |
| 2 | 828 | | if (ReferenceEquals(other, this)) { |
| 0 | 829 | | return true; |
| | 830 | | } |
| 2 | 831 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(RadiusTop, other.RadiusTop)) return f |
| 4 | 832 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(RadiusBottom, other.RadiusBottom)) re |
| 0 | 833 | | return Equals(_unknownFields, other._unknownFields); |
| | 834 | | } |
| | 835 | |
|
| | 836 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 837 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 838 | | public override int GetHashCode() { |
| 0 | 839 | | int hash = 1; |
| 0 | 840 | | if (HasRadiusTop) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(RadiusTop); |
| 0 | 841 | | if (HasRadiusBottom) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(RadiusBo |
| 0 | 842 | | if (_unknownFields != null) { |
| 0 | 843 | | hash ^= _unknownFields.GetHashCode(); |
| | 844 | | } |
| 0 | 845 | | return hash; |
| | 846 | | } |
| | 847 | |
|
| | 848 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 849 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 850 | | public override string ToString() { |
| 0 | 851 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 852 | | } |
| | 853 | |
|
| | 854 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 855 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 856 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 857 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 858 | | output.WriteRawMessage(this); |
| | 859 | | #else |
| 0 | 860 | | if (HasRadiusTop) { |
| 0 | 861 | | output.WriteRawTag(13); |
| 0 | 862 | | output.WriteFloat(RadiusTop); |
| | 863 | | } |
| 0 | 864 | | if (HasRadiusBottom) { |
| 0 | 865 | | output.WriteRawTag(21); |
| 0 | 866 | | output.WriteFloat(RadiusBottom); |
| | 867 | | } |
| 0 | 868 | | if (_unknownFields != null) { |
| 0 | 869 | | _unknownFields.WriteTo(output); |
| | 870 | | } |
| | 871 | | #endif |
| 0 | 872 | | } |
| | 873 | |
|
| | 874 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 875 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 876 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 877 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 878 | | if (HasRadiusTop) { |
| | 879 | | output.WriteRawTag(13); |
| | 880 | | output.WriteFloat(RadiusTop); |
| | 881 | | } |
| | 882 | | if (HasRadiusBottom) { |
| | 883 | | output.WriteRawTag(21); |
| | 884 | | output.WriteFloat(RadiusBottom); |
| | 885 | | } |
| | 886 | | if (_unknownFields != null) { |
| | 887 | | _unknownFields.WriteTo(ref output); |
| | 888 | | } |
| | 889 | | } |
| | 890 | | #endif |
| | 891 | |
|
| | 892 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 893 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 894 | | public int CalculateSize() { |
| 0 | 895 | | int size = 0; |
| 0 | 896 | | if (HasRadiusTop) { |
| 0 | 897 | | size += 1 + 4; |
| | 898 | | } |
| 0 | 899 | | if (HasRadiusBottom) { |
| 0 | 900 | | size += 1 + 4; |
| | 901 | | } |
| 0 | 902 | | if (_unknownFields != null) { |
| 0 | 903 | | size += _unknownFields.CalculateSize(); |
| | 904 | | } |
| 0 | 905 | | return size; |
| | 906 | | } |
| | 907 | |
|
| | 908 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 909 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 910 | | public void MergeFrom(CylinderMesh other) { |
| 0 | 911 | | if (other == null) { |
| 0 | 912 | | return; |
| | 913 | | } |
| 0 | 914 | | if (other.HasRadiusTop) { |
| 0 | 915 | | RadiusTop = other.RadiusTop; |
| | 916 | | } |
| 0 | 917 | | if (other.HasRadiusBottom) { |
| 0 | 918 | | RadiusBottom = other.RadiusBottom; |
| | 919 | | } |
| 0 | 920 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 921 | | } |
| | 922 | |
|
| | 923 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 924 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 925 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 926 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 927 | | input.ReadRawMessage(this); |
| | 928 | | #else |
| | 929 | | uint tag; |
| 0 | 930 | | while ((tag = input.ReadTag()) != 0) { |
| | 931 | | switch(tag) { |
| | 932 | | default: |
| 0 | 933 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 934 | | break; |
| | 935 | | case 13: { |
| 0 | 936 | | RadiusTop = input.ReadFloat(); |
| 0 | 937 | | break; |
| | 938 | | } |
| | 939 | | case 21: { |
| 0 | 940 | | RadiusBottom = input.ReadFloat(); |
| | 941 | | break; |
| | 942 | | } |
| | 943 | | } |
| | 944 | | } |
| | 945 | | #endif |
| 0 | 946 | | } |
| | 947 | |
|
| | 948 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 949 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 950 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 951 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 952 | | uint tag; |
| | 953 | | while ((tag = input.ReadTag()) != 0) { |
| | 954 | | switch(tag) { |
| | 955 | | default: |
| | 956 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 957 | | break; |
| | 958 | | case 13: { |
| | 959 | | RadiusTop = input.ReadFloat(); |
| | 960 | | break; |
| | 961 | | } |
| | 962 | | case 21: { |
| | 963 | | RadiusBottom = input.ReadFloat(); |
| | 964 | | break; |
| | 965 | | } |
| | 966 | | } |
| | 967 | | } |
| | 968 | | } |
| | 969 | | #endif |
| | 970 | |
|
| | 971 | | } |
| | 972 | |
|
| | 973 | | /// <summary> |
| | 974 | | /// PlaneMesh is a 2D rectangle described by the Entity's Transform. |
| | 975 | | /// </summary> |
| | 976 | | public sealed partial class PlaneMesh : pb::IMessage<PlaneMesh> |
| | 977 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 978 | | , pb::IBufferMessage |
| | 979 | | #endif |
| | 980 | | { |
| 1 | 981 | | private static readonly pb::MessageParser<PlaneMesh> _parser = new pb::MessageParser<PlaneMesh>(() => new PlaneM |
| | 982 | | private pb::UnknownFieldSet _unknownFields; |
| | 983 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 984 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 985 | | public static pb::MessageParser<PlaneMesh> Parser { get { return _parser; } } |
| | 986 | |
|
| | 987 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 988 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 989 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 990 | | get { return global::DCL.ECSComponents.PBMeshCollider.Descriptor.NestedTypes[2]; } |
| | 991 | | } |
| | 992 | |
|
| | 993 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 994 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 995 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 996 | | get { return Descriptor; } |
| | 997 | | } |
| | 998 | |
|
| | 999 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1000 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 4 | 1001 | | public PlaneMesh() { |
| | 1002 | | OnConstruction(); |
| 4 | 1003 | | } |
| | 1004 | |
|
| | 1005 | | partial void OnConstruction(); |
| | 1006 | |
|
| | 1007 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1008 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 1009 | | public PlaneMesh(PlaneMesh other) : this() { |
| 0 | 1010 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 0 | 1011 | | } |
| | 1012 | |
|
| | 1013 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1014 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1015 | | public PlaneMesh Clone() { |
| 0 | 1016 | | return new PlaneMesh(this); |
| | 1017 | | } |
| | 1018 | |
|
| | 1019 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1020 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1021 | | public override bool Equals(object other) { |
| 0 | 1022 | | return Equals(other as PlaneMesh); |
| | 1023 | | } |
| | 1024 | |
|
| | 1025 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1026 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1027 | | public bool Equals(PlaneMesh other) { |
| 0 | 1028 | | if (ReferenceEquals(other, null)) { |
| 0 | 1029 | | return false; |
| | 1030 | | } |
| 0 | 1031 | | if (ReferenceEquals(other, this)) { |
| 0 | 1032 | | return true; |
| | 1033 | | } |
| 0 | 1034 | | return Equals(_unknownFields, other._unknownFields); |
| | 1035 | | } |
| | 1036 | |
|
| | 1037 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1038 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1039 | | public override int GetHashCode() { |
| 0 | 1040 | | int hash = 1; |
| 0 | 1041 | | if (_unknownFields != null) { |
| 0 | 1042 | | hash ^= _unknownFields.GetHashCode(); |
| | 1043 | | } |
| 0 | 1044 | | return hash; |
| | 1045 | | } |
| | 1046 | |
|
| | 1047 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1048 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1049 | | public override string ToString() { |
| 0 | 1050 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 1051 | | } |
| | 1052 | |
|
| | 1053 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1054 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1055 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 1056 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 1057 | | output.WriteRawMessage(this); |
| | 1058 | | #else |
| 0 | 1059 | | if (_unknownFields != null) { |
| 0 | 1060 | | _unknownFields.WriteTo(output); |
| | 1061 | | } |
| | 1062 | | #endif |
| 0 | 1063 | | } |
| | 1064 | |
|
| | 1065 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 1066 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1067 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1068 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 1069 | | if (_unknownFields != null) { |
| | 1070 | | _unknownFields.WriteTo(ref output); |
| | 1071 | | } |
| | 1072 | | } |
| | 1073 | | #endif |
| | 1074 | |
|
| | 1075 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1076 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1077 | | public int CalculateSize() { |
| 0 | 1078 | | int size = 0; |
| 0 | 1079 | | if (_unknownFields != null) { |
| 0 | 1080 | | size += _unknownFields.CalculateSize(); |
| | 1081 | | } |
| 0 | 1082 | | return size; |
| | 1083 | | } |
| | 1084 | |
|
| | 1085 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1086 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1087 | | public void MergeFrom(PlaneMesh other) { |
| 0 | 1088 | | if (other == null) { |
| 0 | 1089 | | return; |
| | 1090 | | } |
| 0 | 1091 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 1092 | | } |
| | 1093 | |
|
| | 1094 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1095 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1096 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 1097 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 1098 | | input.ReadRawMessage(this); |
| | 1099 | | #else |
| | 1100 | | uint tag; |
| 0 | 1101 | | while ((tag = input.ReadTag()) != 0) { |
| | 1102 | | switch(tag) { |
| | 1103 | | default: |
| 0 | 1104 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | 1105 | | break; |
| | 1106 | | } |
| | 1107 | | } |
| | 1108 | | #endif |
| 0 | 1109 | | } |
| | 1110 | |
|
| | 1111 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 1112 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1113 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1114 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 1115 | | uint tag; |
| | 1116 | | while ((tag = input.ReadTag()) != 0) { |
| | 1117 | | switch(tag) { |
| | 1118 | | default: |
| | 1119 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 1120 | | break; |
| | 1121 | | } |
| | 1122 | | } |
| | 1123 | | } |
| | 1124 | | #endif |
| | 1125 | |
|
| | 1126 | | } |
| | 1127 | |
|
| | 1128 | | /// <summary> |
| | 1129 | | /// SphereMesh is a sphere shape that contains the Entity. |
| | 1130 | | /// </summary> |
| | 1131 | | public sealed partial class SphereMesh : pb::IMessage<SphereMesh> |
| | 1132 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 1133 | | , pb::IBufferMessage |
| | 1134 | | #endif |
| | 1135 | | { |
| 1 | 1136 | | private static readonly pb::MessageParser<SphereMesh> _parser = new pb::MessageParser<SphereMesh>(() => new Sphe |
| | 1137 | | private pb::UnknownFieldSet _unknownFields; |
| | 1138 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1139 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 1140 | | public static pb::MessageParser<SphereMesh> Parser { get { return _parser; } } |
| | 1141 | |
|
| | 1142 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1143 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1144 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 1145 | | get { return global::DCL.ECSComponents.PBMeshCollider.Descriptor.NestedTypes[3]; } |
| | 1146 | | } |
| | 1147 | |
|
| | 1148 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1149 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1150 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 1151 | | get { return Descriptor; } |
| | 1152 | | } |
| | 1153 | |
|
| | 1154 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1155 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 1 | 1156 | | public SphereMesh() { |
| | 1157 | | OnConstruction(); |
| 1 | 1158 | | } |
| | 1159 | |
|
| | 1160 | | partial void OnConstruction(); |
| | 1161 | |
|
| | 1162 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1163 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 1164 | | public SphereMesh(SphereMesh other) : this() { |
| 0 | 1165 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 0 | 1166 | | } |
| | 1167 | |
|
| | 1168 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1169 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1170 | | public SphereMesh Clone() { |
| 0 | 1171 | | return new SphereMesh(this); |
| | 1172 | | } |
| | 1173 | |
|
| | 1174 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1175 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1176 | | public override bool Equals(object other) { |
| 0 | 1177 | | return Equals(other as SphereMesh); |
| | 1178 | | } |
| | 1179 | |
|
| | 1180 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1181 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1182 | | public bool Equals(SphereMesh other) { |
| 0 | 1183 | | if (ReferenceEquals(other, null)) { |
| 0 | 1184 | | return false; |
| | 1185 | | } |
| 0 | 1186 | | if (ReferenceEquals(other, this)) { |
| 0 | 1187 | | return true; |
| | 1188 | | } |
| 0 | 1189 | | return Equals(_unknownFields, other._unknownFields); |
| | 1190 | | } |
| | 1191 | |
|
| | 1192 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1193 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1194 | | public override int GetHashCode() { |
| 0 | 1195 | | int hash = 1; |
| 0 | 1196 | | if (_unknownFields != null) { |
| 0 | 1197 | | hash ^= _unknownFields.GetHashCode(); |
| | 1198 | | } |
| 0 | 1199 | | return hash; |
| | 1200 | | } |
| | 1201 | |
|
| | 1202 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1203 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1204 | | public override string ToString() { |
| 0 | 1205 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 1206 | | } |
| | 1207 | |
|
| | 1208 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1209 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1210 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 1211 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 1212 | | output.WriteRawMessage(this); |
| | 1213 | | #else |
| 0 | 1214 | | if (_unknownFields != null) { |
| 0 | 1215 | | _unknownFields.WriteTo(output); |
| | 1216 | | } |
| | 1217 | | #endif |
| 0 | 1218 | | } |
| | 1219 | |
|
| | 1220 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 1221 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1222 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1223 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 1224 | | if (_unknownFields != null) { |
| | 1225 | | _unknownFields.WriteTo(ref output); |
| | 1226 | | } |
| | 1227 | | } |
| | 1228 | | #endif |
| | 1229 | |
|
| | 1230 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1231 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1232 | | public int CalculateSize() { |
| 0 | 1233 | | int size = 0; |
| 0 | 1234 | | if (_unknownFields != null) { |
| 0 | 1235 | | size += _unknownFields.CalculateSize(); |
| | 1236 | | } |
| 0 | 1237 | | return size; |
| | 1238 | | } |
| | 1239 | |
|
| | 1240 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1241 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1242 | | public void MergeFrom(SphereMesh other) { |
| 0 | 1243 | | if (other == null) { |
| 0 | 1244 | | return; |
| | 1245 | | } |
| 0 | 1246 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 1247 | | } |
| | 1248 | |
|
| | 1249 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1250 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1251 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 1252 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 1253 | | input.ReadRawMessage(this); |
| | 1254 | | #else |
| | 1255 | | uint tag; |
| 0 | 1256 | | while ((tag = input.ReadTag()) != 0) { |
| | 1257 | | switch(tag) { |
| | 1258 | | default: |
| 0 | 1259 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | 1260 | | break; |
| | 1261 | | } |
| | 1262 | | } |
| | 1263 | | #endif |
| 0 | 1264 | | } |
| | 1265 | |
|
| | 1266 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 1267 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1268 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1269 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 1270 | | uint tag; |
| | 1271 | | while ((tag = input.ReadTag()) != 0) { |
| | 1272 | | switch(tag) { |
| | 1273 | | default: |
| | 1274 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 1275 | | break; |
| | 1276 | | } |
| | 1277 | | } |
| | 1278 | | } |
| | 1279 | | #endif |
| | 1280 | |
|
| | 1281 | | } |
| | 1282 | |
|
| | 1283 | | } |
| | 1284 | | #endregion |
| | 1285 | |
|
| | 1286 | | } |
| | 1287 | |
|
| | 1288 | | #endregion |
| | 1289 | |
|
| | 1290 | | } |
| | 1291 | |
|
| | 1292 | | #endregion Designer generated code |