| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: CameraModeArea.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 CameraModeArea.proto</summary> |
| | 15 | | public static partial class CameraModeAreaReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for CameraModeArea.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static CameraModeAreaReflection() { |
| | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "ChRDYW1lcmFNb2RlQXJlYS5wcm90bxIQZGVjZW50cmFsYW5kLmVjcxoUY29t", |
| | 28 | | "bW9uL1ZlY3RvcjMucHJvdG8iVgoQUEJDYW1lcmFNb2RlQXJlYRIWCgRhcmVh", |
| | 29 | | "GAEgASgLMgguVmVjdG9yMxIqCgRtb2RlGAIgASgOMhwuZGVjZW50cmFsYW5k", |
| | 30 | | "LmVjcy5DYW1lcmFNb2RlKjAKCkNhbWVyYU1vZGUSEAoMRklSU1RfUEVSU09O", |
| | 31 | | "EAASEAoMVEhJUkRfUEVSU09OEAFCFKoCEURDTC5FQ1NDb21wb25lbnRzYgZw", |
| | 32 | | "cm90bzM=")); |
| | 33 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 34 | | new pbr::FileDescriptor[] { global::Vector3Reflection.Descriptor, }, |
| | 35 | | new pbr::GeneratedClrTypeInfo(new[] {typeof(global::DCL.ECSComponents.CameraMode), }, null, new pbr::Generated |
| | 36 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBCameraModeArea), global::DCL.ECSComponents. |
| | 37 | | })); |
| | 38 | | } |
| | 39 | | #endregion |
| | 40 | |
|
| | 41 | | } |
| | 42 | | #region Enums |
| | 43 | | public enum CameraMode { |
| | 44 | | [pbr::OriginalName("FIRST_PERSON")] FirstPerson = 0, |
| | 45 | | [pbr::OriginalName("THIRD_PERSON")] ThirdPerson = 1, |
| | 46 | | } |
| | 47 | |
|
| | 48 | | #endregion |
| | 49 | |
|
| | 50 | | #region Messages |
| | 51 | | public sealed partial class PBCameraModeArea : pb::IMessage<PBCameraModeArea> { |
| 2 | 52 | | private static readonly pb::MessageParser<PBCameraModeArea> _parser = new pb::MessageParser<PBCameraModeArea>(() => |
| | 53 | | private pb::UnknownFieldSet _unknownFields; |
| | 54 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 0 | 55 | | public static pb::MessageParser<PBCameraModeArea> Parser { get { return _parser; } } |
| | 56 | |
|
| | 57 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 58 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 59 | | get { return global::DCL.ECSComponents.CameraModeAreaReflection.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] |
| 6 | 68 | | public PBCameraModeArea() { |
| | 69 | | OnConstruction(); |
| 6 | 70 | | } |
| | 71 | |
|
| | 72 | | partial void OnConstruction(); |
| | 73 | |
|
| | 74 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 0 | 75 | | public PBCameraModeArea(PBCameraModeArea other) : this() { |
| 0 | 76 | | area_ = other.area_ != null ? other.area_.Clone() : null; |
| 0 | 77 | | mode_ = other.mode_; |
| 0 | 78 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 0 | 79 | | } |
| | 80 | |
|
| | 81 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 82 | | public PBCameraModeArea Clone() { |
| 0 | 83 | | return new PBCameraModeArea(this); |
| | 84 | | } |
| | 85 | |
|
| | 86 | | /// <summary>Field number for the "area" field.</summary> |
| | 87 | | public const int AreaFieldNumber = 1; |
| | 88 | | private global::Vector3 area_; |
| | 89 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 90 | | public global::Vector3 Area { |
| 18 | 91 | | get { return area_; } |
| | 92 | | set { |
| 6 | 93 | | area_ = value; |
| 6 | 94 | | } |
| | 95 | | } |
| | 96 | |
|
| | 97 | | /// <summary>Field number for the "mode" field.</summary> |
| | 98 | | public const int ModeFieldNumber = 2; |
| | 99 | | private global::DCL.ECSComponents.CameraMode mode_ = global::DCL.ECSComponents.CameraMode.FirstPerson; |
| | 100 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 101 | | public global::DCL.ECSComponents.CameraMode Mode { |
| 0 | 102 | | get { return mode_; } |
| | 103 | | set { |
| 6 | 104 | | mode_ = value; |
| 6 | 105 | | } |
| | 106 | | } |
| | 107 | |
|
| | 108 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 109 | | public override bool Equals(object other) { |
| 0 | 110 | | return Equals(other as PBCameraModeArea); |
| | 111 | | } |
| | 112 | |
|
| | 113 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 114 | | public bool Equals(PBCameraModeArea other) { |
| 0 | 115 | | if (ReferenceEquals(other, null)) { |
| 0 | 116 | | return false; |
| | 117 | | } |
| 0 | 118 | | if (ReferenceEquals(other, this)) { |
| 0 | 119 | | return true; |
| | 120 | | } |
| 0 | 121 | | if (!object.Equals(Area, other.Area)) return false; |
| 0 | 122 | | if (Mode != other.Mode) return false; |
| 0 | 123 | | return Equals(_unknownFields, other._unknownFields); |
| | 124 | | } |
| | 125 | |
|
| | 126 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 127 | | public override int GetHashCode() { |
| 0 | 128 | | int hash = 1; |
| 0 | 129 | | if (area_ != null) hash ^= Area.GetHashCode(); |
| 0 | 130 | | if (Mode != global::DCL.ECSComponents.CameraMode.FirstPerson) hash ^= Mode.GetHashCode(); |
| 0 | 131 | | if (_unknownFields != null) { |
| 0 | 132 | | hash ^= _unknownFields.GetHashCode(); |
| | 133 | | } |
| 0 | 134 | | return hash; |
| | 135 | | } |
| | 136 | |
|
| | 137 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 138 | | public override string ToString() { |
| 0 | 139 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 140 | | } |
| | 141 | |
|
| | 142 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 143 | | public void WriteTo(pb::CodedOutputStream output) { |
| 1 | 144 | | if (area_ != null) { |
| 1 | 145 | | output.WriteRawTag(10); |
| 1 | 146 | | output.WriteMessage(Area); |
| | 147 | | } |
| 1 | 148 | | if (Mode != global::DCL.ECSComponents.CameraMode.FirstPerson) { |
| 0 | 149 | | output.WriteRawTag(16); |
| 0 | 150 | | output.WriteEnum((int) Mode); |
| | 151 | | } |
| 1 | 152 | | if (_unknownFields != null) { |
| 0 | 153 | | _unknownFields.WriteTo(output); |
| | 154 | | } |
| 1 | 155 | | } |
| | 156 | |
|
| | 157 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 158 | | public int CalculateSize() { |
| 1 | 159 | | int size = 0; |
| 1 | 160 | | if (area_ != null) { |
| 1 | 161 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Area); |
| | 162 | | } |
| 1 | 163 | | if (Mode != global::DCL.ECSComponents.CameraMode.FirstPerson) { |
| 0 | 164 | | size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Mode); |
| | 165 | | } |
| 1 | 166 | | if (_unknownFields != null) { |
| 0 | 167 | | size += _unknownFields.CalculateSize(); |
| | 168 | | } |
| 1 | 169 | | return size; |
| | 170 | | } |
| | 171 | |
|
| | 172 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 173 | | public void MergeFrom(PBCameraModeArea other) { |
| 0 | 174 | | if (other == null) { |
| 0 | 175 | | return; |
| | 176 | | } |
| 0 | 177 | | if (other.area_ != null) { |
| 0 | 178 | | if (area_ == null) { |
| 0 | 179 | | Area = new global::Vector3(); |
| | 180 | | } |
| 0 | 181 | | Area.MergeFrom(other.Area); |
| | 182 | | } |
| 0 | 183 | | if (other.Mode != global::DCL.ECSComponents.CameraMode.FirstPerson) { |
| 0 | 184 | | Mode = other.Mode; |
| | 185 | | } |
| 0 | 186 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 187 | | } |
| | 188 | |
|
| | 189 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 190 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 191 | | uint tag; |
| 2 | 192 | | while ((tag = input.ReadTag()) != 0) { |
| | 193 | | switch(tag) { |
| | 194 | | default: |
| 0 | 195 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 196 | | break; |
| | 197 | | case 10: { |
| 1 | 198 | | if (area_ == null) { |
| 1 | 199 | | Area = new global::Vector3(); |
| | 200 | | } |
| 1 | 201 | | input.ReadMessage(Area); |
| 1 | 202 | | break; |
| | 203 | | } |
| | 204 | | case 16: { |
| 0 | 205 | | Mode = (global::DCL.ECSComponents.CameraMode) input.ReadEnum(); |
| | 206 | | break; |
| | 207 | | } |
| | 208 | | } |
| | 209 | | } |
| 1 | 210 | | } |
| | 211 | |
|
| | 212 | | } |
| | 213 | |
|
| | 214 | | #endregion |
| | 215 | |
|
| | 216 | | } |
| | 217 | |
|
| | 218 | | #endregion Designer generated code |