초기커밋
This commit is contained in:
388
Protocol/out-Proto/GameProtocol.cs
Normal file
388
Protocol/out-Proto/GameProtocol.cs
Normal file
@@ -0,0 +1,388 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Game_Protocol.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021, 8981
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
/// <summary>Holder for reflection information generated from Game_Protocol.proto</summary>
|
||||
public static partial class GameProtocolReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for Game_Protocol.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static GameProtocolReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"ChNHYW1lX1Byb3RvY29sLnByb3RvGhpHYW1lX1Byb3RvY29sX0RlZmluZS5w",
|
||||
"cm90byKKAQoMR2FtZVByb3RvY29sEiUKCXJlcVBhY2tldBgBIAEoCzIQLkMy",
|
||||
"R1NfUkVRX1BBQ0tFVEgAEiUKCWFja1BhY2tldBgCIAEoCzIQLkdTMkNfQUNL",
|
||||
"X1BBQ0tFVEgAEiUKCW50ZlBhY2tldBgDIAEoCzIQLkdDMkNfTlRGX1BBQ0tF",
|
||||
"VEgAQgUKA21zZ2IGcHJvdG8z"));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::GameProtocolDefineReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::GameProtocol), global::GameProtocol.Parser, new[]{ "ReqPacket", "AckPacket", "NtfPacket" }, new[]{ "Msg" }, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
/// <summary>
|
||||
///===============================================================================================
|
||||
/// <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ѵ<EFBFBD>.
|
||||
/// <20>ϴ<EFBFBD> MS5 <20><><EFBFBD><EFBFBD> Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 1<><31>(REQ, ACK, NTF) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݸ<EFBFBD> <20>߰<EFBFBD><DFB0><EFBFBD> <20><><EFBFBD><EFBFBD>. - kangms
|
||||
///===============================================================================================
|
||||
/// </summary>
|
||||
[global::System.SerializableAttribute]
|
||||
public sealed partial class GameProtocol : pb::IMessage<GameProtocol>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<GameProtocol> _parser = new pb::MessageParser<GameProtocol>(() => new GameProtocol());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<GameProtocol> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::GameProtocolReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public GameProtocol() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public GameProtocol(GameProtocol other) : this() {
|
||||
switch (other.MsgCase) {
|
||||
case MsgOneofCase.ReqPacket:
|
||||
ReqPacket = other.ReqPacket.Clone();
|
||||
break;
|
||||
case MsgOneofCase.AckPacket:
|
||||
AckPacket = other.AckPacket.Clone();
|
||||
break;
|
||||
case MsgOneofCase.NtfPacket:
|
||||
NtfPacket = other.NtfPacket.Clone();
|
||||
break;
|
||||
}
|
||||
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public GameProtocol Clone() {
|
||||
return new GameProtocol(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "reqPacket" field.</summary>
|
||||
public const int ReqPacketFieldNumber = 1;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::C2GS_REQ_PACKET ReqPacket {
|
||||
get { return msgCase_ == MsgOneofCase.ReqPacket ? (global::C2GS_REQ_PACKET) msg_ : null; }
|
||||
set {
|
||||
msg_ = value;
|
||||
msgCase_ = value == null ? MsgOneofCase.None : MsgOneofCase.ReqPacket;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "ackPacket" field.</summary>
|
||||
public const int AckPacketFieldNumber = 2;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::GS2C_ACK_PACKET AckPacket {
|
||||
get { return msgCase_ == MsgOneofCase.AckPacket ? (global::GS2C_ACK_PACKET) msg_ : null; }
|
||||
set {
|
||||
msg_ = value;
|
||||
msgCase_ = value == null ? MsgOneofCase.None : MsgOneofCase.AckPacket;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "ntfPacket" field.</summary>
|
||||
public const int NtfPacketFieldNumber = 3;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::GC2C_NTF_PACKET NtfPacket {
|
||||
get { return msgCase_ == MsgOneofCase.NtfPacket ? (global::GC2C_NTF_PACKET) msg_ : null; }
|
||||
set {
|
||||
msg_ = value;
|
||||
msgCase_ = value == null ? MsgOneofCase.None : MsgOneofCase.NtfPacket;
|
||||
}
|
||||
}
|
||||
|
||||
private object msg_;
|
||||
/// <summary>Enum of possible cases for the "msg" oneof.</summary>
|
||||
public enum MsgOneofCase {
|
||||
None = 0,
|
||||
ReqPacket = 1,
|
||||
AckPacket = 2,
|
||||
NtfPacket = 3,
|
||||
}
|
||||
private MsgOneofCase msgCase_ = MsgOneofCase.None;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public MsgOneofCase MsgCase {
|
||||
get { return msgCase_; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearMsg() {
|
||||
msgCase_ = MsgOneofCase.None;
|
||||
msg_ = null;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as GameProtocol);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(GameProtocol other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!object.Equals(ReqPacket, other.ReqPacket)) return false;
|
||||
if (!object.Equals(AckPacket, other.AckPacket)) return false;
|
||||
if (!object.Equals(NtfPacket, other.NtfPacket)) return false;
|
||||
if (MsgCase != other.MsgCase) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (msgCase_ == MsgOneofCase.ReqPacket) hash ^= ReqPacket.GetHashCode();
|
||||
if (msgCase_ == MsgOneofCase.AckPacket) hash ^= AckPacket.GetHashCode();
|
||||
if (msgCase_ == MsgOneofCase.NtfPacket) hash ^= NtfPacket.GetHashCode();
|
||||
hash ^= (int) msgCase_;
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (msgCase_ == MsgOneofCase.ReqPacket) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(ReqPacket);
|
||||
}
|
||||
if (msgCase_ == MsgOneofCase.AckPacket) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteMessage(AckPacket);
|
||||
}
|
||||
if (msgCase_ == MsgOneofCase.NtfPacket) {
|
||||
output.WriteRawTag(26);
|
||||
output.WriteMessage(NtfPacket);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (msgCase_ == MsgOneofCase.ReqPacket) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(ReqPacket);
|
||||
}
|
||||
if (msgCase_ == MsgOneofCase.AckPacket) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteMessage(AckPacket);
|
||||
}
|
||||
if (msgCase_ == MsgOneofCase.NtfPacket) {
|
||||
output.WriteRawTag(26);
|
||||
output.WriteMessage(NtfPacket);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (msgCase_ == MsgOneofCase.ReqPacket) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReqPacket);
|
||||
}
|
||||
if (msgCase_ == MsgOneofCase.AckPacket) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AckPacket);
|
||||
}
|
||||
if (msgCase_ == MsgOneofCase.NtfPacket) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(NtfPacket);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(GameProtocol other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
switch (other.MsgCase) {
|
||||
case MsgOneofCase.ReqPacket:
|
||||
if (ReqPacket == null) {
|
||||
ReqPacket = new global::C2GS_REQ_PACKET();
|
||||
}
|
||||
ReqPacket.MergeFrom(other.ReqPacket);
|
||||
break;
|
||||
case MsgOneofCase.AckPacket:
|
||||
if (AckPacket == null) {
|
||||
AckPacket = new global::GS2C_ACK_PACKET();
|
||||
}
|
||||
AckPacket.MergeFrom(other.AckPacket);
|
||||
break;
|
||||
case MsgOneofCase.NtfPacket:
|
||||
if (NtfPacket == null) {
|
||||
NtfPacket = new global::GC2C_NTF_PACKET();
|
||||
}
|
||||
NtfPacket.MergeFrom(other.NtfPacket);
|
||||
break;
|
||||
}
|
||||
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 10: {
|
||||
global::C2GS_REQ_PACKET subBuilder = new global::C2GS_REQ_PACKET();
|
||||
if (msgCase_ == MsgOneofCase.ReqPacket) {
|
||||
subBuilder.MergeFrom(ReqPacket);
|
||||
}
|
||||
input.ReadMessage(subBuilder);
|
||||
ReqPacket = subBuilder;
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
global::GS2C_ACK_PACKET subBuilder = new global::GS2C_ACK_PACKET();
|
||||
if (msgCase_ == MsgOneofCase.AckPacket) {
|
||||
subBuilder.MergeFrom(AckPacket);
|
||||
}
|
||||
input.ReadMessage(subBuilder);
|
||||
AckPacket = subBuilder;
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
global::GC2C_NTF_PACKET subBuilder = new global::GC2C_NTF_PACKET();
|
||||
if (msgCase_ == MsgOneofCase.NtfPacket) {
|
||||
subBuilder.MergeFrom(NtfPacket);
|
||||
}
|
||||
input.ReadMessage(subBuilder);
|
||||
NtfPacket = subBuilder;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 10: {
|
||||
global::C2GS_REQ_PACKET subBuilder = new global::C2GS_REQ_PACKET();
|
||||
if (msgCase_ == MsgOneofCase.ReqPacket) {
|
||||
subBuilder.MergeFrom(ReqPacket);
|
||||
}
|
||||
input.ReadMessage(subBuilder);
|
||||
ReqPacket = subBuilder;
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
global::GS2C_ACK_PACKET subBuilder = new global::GS2C_ACK_PACKET();
|
||||
if (msgCase_ == MsgOneofCase.AckPacket) {
|
||||
subBuilder.MergeFrom(AckPacket);
|
||||
}
|
||||
input.ReadMessage(subBuilder);
|
||||
AckPacket = subBuilder;
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
global::GC2C_NTF_PACKET subBuilder = new global::GC2C_NTF_PACKET();
|
||||
if (msgCase_ == MsgOneofCase.NtfPacket) {
|
||||
subBuilder.MergeFrom(NtfPacket);
|
||||
}
|
||||
input.ReadMessage(subBuilder);
|
||||
NtfPacket = subBuilder;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#endregion Designer generated code
|
||||
Reference in New Issue
Block a user