|
|
|
@ -26,7 +26,7 @@ namespace Protocol { |
|
|
|
string.Concat( |
|
|
|
"Cg5wcm90b2NvbC5wcm90bxIIcHJvdG9jb2waG2dvb2dsZS9wcm90b2J1Zi9l", |
|
|
|
"bXB0eS5wcm90bxoMY29tbW9uLnByb3RvGhBjb25uZWN0aW9uLnByb3RvGgts", |
|
|
|
"b2JieS5wcm90bxoKZ2FtZS5wcm90byL9BAoSQ2xpZW50U2VydmVyUGFja2V0", |
|
|
|
"b2JieS5wcm90bxoKZ2FtZS5wcm90byKlBQoSQ2xpZW50U2VydmVyUGFja2V0", |
|
|
|
"EisKCXF1ZXJ5TmFtZRgBIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eUgA", |
|
|
|
"Eh8KB2Nvbm5lY3QYAiABKAsyDC5jb21tb24uTmFtZUgAEiwKCmRpc2Nvbm5l", |
|
|
|
"Y3QYAyABKAsyFi5nb29nbGUucHJvdG9idWYuRW1wdHlIABIqCglqb2luTG9i", |
|
|
|
@ -40,25 +40,27 @@ namespace Protocol { |
|
|
|
"ASgLMhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5SAASKAoOcXVlcnlDYXJkSW1h", |
|
|
|
"Z2UYDCABKAsyDi5nYW1lLkNhcmRLaW5kSAASIwoLY2FsbE9uQ2xpY2sYDSAB", |
|
|
|
"KAsyDC5nYW1lLkNhcmRJZEgAEjEKD3F1ZXJ5R2FtZVN0YXR1cxgOIAEoCzIW", |
|
|
|
"Lmdvb2dsZS5wcm90b2J1Zi5FbXB0eUgAQgYKBGRhdGEioQMKElNlcnZlckNs", |
|
|
|
"aWVudFBhY2tldBIiCgpyZXR1cm5OYW1lGAEgASgLMgwuY29tbW9uLk5hbWVI", |
|
|
|
"ABIrCg1yZXR1cm5Db25uZWN0GAIgASgLMhIuY29ubmVjdGlvbi5Vc2VySURI", |
|
|
|
"ABIyChFyZXR1cm5DcmVhdGVMb2JieRgDIAEoCzIVLmNvbm5lY3Rpb24uTG9i", |
|
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dG9jb2wuR2FtZXNIABIz", |
|
|
|
"ChNyZXR1cm5QdWJsaWNMb2JiaWVzGAUgASgLMhQucHJvdG9jb2wuTG9iYnlD", |
|
|
|
"b2Rlc0gAEiYKC3JldHVyblVzZXJzGAYgASgLMg8ucHJvdG9jb2wuTmFtZXNI", |
|
|
|
"ABIpCgtsb2JieVN0YXR1cxgHIAEoCzISLmxvYmJ5LkxvYmJ5U3RhdHVzSAAS", |
|
|
|
"JgoPcmV0dXJuQ2FyZEltYWdlGAggASgLMgsuZ2FtZS5JbWFnZUgAEikKEXJl", |
|
|
|
"dHVybkNhcmRzSW1hZ2VzGAogASgLMgwuZ2FtZS5JbWFnZXNIABImCgpnYW1l", |
|
|
|
"U3RhdHVzGAkgASgLMhAuZ2FtZS5HYW1lU3RhdHVzSABCBgoEZGF0YSIoCgVH", |
|
|
|
"YW1lcxIfCgVnYW1lcxgBIAMoCzIQLmNvbm5lY3Rpb24uR2FtZSI3CgpMb2Ji", |
|
|
|
"eUNvZGVzEikKCmxvYmJ5Q29kZXMYASADKAsyFS5jb25uZWN0aW9uLkxvYmJ5", |
|
|
|
"Q29kZSIkCgVOYW1lcxIbCgVuYW1lcxgBIAMoCzIMLmNvbW1vbi5OYW1lYgZw", |
|
|
|
"cm90bzM=")); |
|
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
|
|
|
new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Common.CommonReflection.Descriptor, global::Connection.ConnectionReflection.Descriptor, global::Lobby.LobbyReflection.Descriptor, global::Game.GameReflection.Descriptor, }, |
|
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Protocol.ClientServerPacket), global::Protocol.ClientServerPacket.Parser, new[]{ "QueryName", "Connect", "Disconnect", "JoinLobby", "CreateLobby", "QueryGames", "QueryPublicLobbies", "QueryUsers", "Vote", "Ready", "Leave", "QueryCardImage", "CallOnClick", "QueryGameStatus" }, new[]{ "Data" }, null, null, null), |
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Protocol.ServerClientPacket), global::Protocol.ServerClientPacket.Parser, new[]{ "ReturnName", "ReturnConnect", "ReturnCreateLobby", "ReturnGames", "ReturnPublicLobbies", "ReturnUsers", "LobbyStatus", "ReturnCardImage", "GameStatus" }, new[]{ "Data" }, null, null, null), |
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Protocol.ClientServerPacket), global::Protocol.ClientServerPacket.Parser, new[]{ "QueryName", "Connect", "Disconnect", "JoinLobby", "CreateLobby", "QueryGames", "QueryPublicLobbies", "QueryUsers", "Vote", "Ready", "Leave", "QueryCardImage", "CallOnClick", "QueryGameStatus", "QueryCardImages" }, new[]{ "Data" }, null, null, null), |
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Protocol.ServerClientPacket), global::Protocol.ServerClientPacket.Parser, new[]{ "ReturnName", "ReturnConnect", "ReturnCreateLobby", "ReturnGames", "ReturnPublicLobbies", "ReturnUsers", "LobbyStatus", "ReturnCardImage", "ReturnCardsImages", "GameStatus" }, new[]{ "Data" }, null, null, null), |
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Protocol.Games), global::Protocol.Games.Parser, new[]{ "Games_" }, null, null, null, null), |
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Protocol.LobbyCodes), global::Protocol.LobbyCodes.Parser, new[]{ "LobbyCodes_" }, null, null, null, null), |
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Protocol.Names), global::Protocol.Names.Parser, new[]{ "Names_" }, null, null, null, null) |
|
|
|
@ -140,6 +142,9 @@ namespace Protocol { |
|
|
|
case DataOneofCase.QueryGameStatus: |
|
|
|
QueryGameStatus = other.QueryGameStatus.Clone(); |
|
|
|
break; |
|
|
|
case DataOneofCase.QueryCardImages: |
|
|
|
QueryCardImages = other.QueryCardImages.Clone(); |
|
|
|
break; |
|
|
|
} |
|
|
|
|
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
|
|
|
@ -313,6 +318,17 @@ namespace Protocol { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>Field number for the "queryCardImages" field.</summary>
|
|
|
|
public const int QueryCardImagesFieldNumber = 15; |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public global::Game.Cards QueryCardImages { |
|
|
|
get { return dataCase_ == DataOneofCase.QueryCardImages ? (global::Game.Cards) data_ : null; } |
|
|
|
set { |
|
|
|
data_ = value; |
|
|
|
dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.QueryCardImages; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private object data_; |
|
|
|
/// <summary>Enum of possible cases for the "data" oneof.</summary>
|
|
|
|
public enum DataOneofCase { |
|
|
|
@ -331,6 +347,7 @@ namespace Protocol { |
|
|
|
QueryCardImage = 12, |
|
|
|
CallOnClick = 13, |
|
|
|
QueryGameStatus = 14, |
|
|
|
QueryCardImages = 15, |
|
|
|
} |
|
|
|
private DataOneofCase dataCase_ = DataOneofCase.None; |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
@ -371,6 +388,7 @@ namespace Protocol { |
|
|
|
if (!object.Equals(QueryCardImage, other.QueryCardImage)) return false; |
|
|
|
if (!object.Equals(CallOnClick, other.CallOnClick)) return false; |
|
|
|
if (!object.Equals(QueryGameStatus, other.QueryGameStatus)) return false; |
|
|
|
if (!object.Equals(QueryCardImages, other.QueryCardImages)) return false; |
|
|
|
if (DataCase != other.DataCase) return false; |
|
|
|
return Equals(_unknownFields, other._unknownFields); |
|
|
|
} |
|
|
|
@ -392,6 +410,7 @@ namespace Protocol { |
|
|
|
if (dataCase_ == DataOneofCase.QueryCardImage) hash ^= QueryCardImage.GetHashCode(); |
|
|
|
if (dataCase_ == DataOneofCase.CallOnClick) hash ^= CallOnClick.GetHashCode(); |
|
|
|
if (dataCase_ == DataOneofCase.QueryGameStatus) hash ^= QueryGameStatus.GetHashCode(); |
|
|
|
if (dataCase_ == DataOneofCase.QueryCardImages) hash ^= QueryCardImages.GetHashCode(); |
|
|
|
hash ^= (int) dataCase_; |
|
|
|
if (_unknownFields != null) { |
|
|
|
hash ^= _unknownFields.GetHashCode(); |
|
|
|
@ -465,6 +484,10 @@ namespace Protocol { |
|
|
|
output.WriteRawTag(114); |
|
|
|
output.WriteMessage(QueryGameStatus); |
|
|
|
} |
|
|
|
if (dataCase_ == DataOneofCase.QueryCardImages) { |
|
|
|
output.WriteRawTag(122); |
|
|
|
output.WriteMessage(QueryCardImages); |
|
|
|
} |
|
|
|
if (_unknownFields != null) { |
|
|
|
_unknownFields.WriteTo(output); |
|
|
|
} |
|
|
|
@ -530,6 +553,10 @@ namespace Protocol { |
|
|
|
output.WriteRawTag(114); |
|
|
|
output.WriteMessage(QueryGameStatus); |
|
|
|
} |
|
|
|
if (dataCase_ == DataOneofCase.QueryCardImages) { |
|
|
|
output.WriteRawTag(122); |
|
|
|
output.WriteMessage(QueryCardImages); |
|
|
|
} |
|
|
|
if (_unknownFields != null) { |
|
|
|
_unknownFields.WriteTo(ref output); |
|
|
|
} |
|
|
|
@ -581,6 +608,9 @@ namespace Protocol { |
|
|
|
if (dataCase_ == DataOneofCase.QueryGameStatus) { |
|
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(QueryGameStatus); |
|
|
|
} |
|
|
|
if (dataCase_ == DataOneofCase.QueryCardImages) { |
|
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(QueryCardImages); |
|
|
|
} |
|
|
|
if (_unknownFields != null) { |
|
|
|
size += _unknownFields.CalculateSize(); |
|
|
|
} |
|
|
|
@ -677,6 +707,12 @@ namespace Protocol { |
|
|
|
} |
|
|
|
QueryGameStatus.MergeFrom(other.QueryGameStatus); |
|
|
|
break; |
|
|
|
case DataOneofCase.QueryCardImages: |
|
|
|
if (QueryCardImages == null) { |
|
|
|
QueryCardImages = new global::Game.Cards(); |
|
|
|
} |
|
|
|
QueryCardImages.MergeFrom(other.QueryCardImages); |
|
|
|
break; |
|
|
|
} |
|
|
|
|
|
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
|
|
|
@ -819,6 +855,15 @@ namespace Protocol { |
|
|
|
QueryGameStatus = subBuilder; |
|
|
|
break; |
|
|
|
} |
|
|
|
case 122: { |
|
|
|
global::Game.Cards subBuilder = new global::Game.Cards(); |
|
|
|
if (dataCase_ == DataOneofCase.QueryCardImages) { |
|
|
|
subBuilder.MergeFrom(QueryCardImages); |
|
|
|
} |
|
|
|
input.ReadMessage(subBuilder); |
|
|
|
QueryCardImages = subBuilder; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
#endif
|
|
|
|
@ -959,6 +1004,15 @@ namespace Protocol { |
|
|
|
QueryGameStatus = subBuilder; |
|
|
|
break; |
|
|
|
} |
|
|
|
case 122: { |
|
|
|
global::Game.Cards subBuilder = new global::Game.Cards(); |
|
|
|
if (dataCase_ == DataOneofCase.QueryCardImages) { |
|
|
|
subBuilder.MergeFrom(QueryCardImages); |
|
|
|
} |
|
|
|
input.ReadMessage(subBuilder); |
|
|
|
QueryCardImages = subBuilder; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -1020,6 +1074,9 @@ namespace Protocol { |
|
|
|
case DataOneofCase.ReturnCardImage: |
|
|
|
ReturnCardImage = other.ReturnCardImage.Clone(); |
|
|
|
break; |
|
|
|
case DataOneofCase.ReturnCardsImages: |
|
|
|
ReturnCardsImages = other.ReturnCardsImages.Clone(); |
|
|
|
break; |
|
|
|
case DataOneofCase.GameStatus: |
|
|
|
GameStatus = other.GameStatus.Clone(); |
|
|
|
break; |
|
|
|
@ -1130,6 +1187,17 @@ namespace Protocol { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>Field number for the "returnCardsImages" field.</summary>
|
|
|
|
public const int ReturnCardsImagesFieldNumber = 10; |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public global::Game.Images ReturnCardsImages { |
|
|
|
get { return dataCase_ == DataOneofCase.ReturnCardsImages ? (global::Game.Images) data_ : null; } |
|
|
|
set { |
|
|
|
data_ = value; |
|
|
|
dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.ReturnCardsImages; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>Field number for the "gameStatus" field.</summary>
|
|
|
|
public const int GameStatusFieldNumber = 9; |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
@ -1153,6 +1221,7 @@ namespace Protocol { |
|
|
|
ReturnUsers = 6, |
|
|
|
LobbyStatus = 7, |
|
|
|
ReturnCardImage = 8, |
|
|
|
ReturnCardsImages = 10, |
|
|
|
GameStatus = 9, |
|
|
|
} |
|
|
|
private DataOneofCase dataCase_ = DataOneofCase.None; |
|
|
|
@ -1188,6 +1257,7 @@ namespace Protocol { |
|
|
|
if (!object.Equals(ReturnUsers, other.ReturnUsers)) return false; |
|
|
|
if (!object.Equals(LobbyStatus, other.LobbyStatus)) return false; |
|
|
|
if (!object.Equals(ReturnCardImage, other.ReturnCardImage)) return false; |
|
|
|
if (!object.Equals(ReturnCardsImages, other.ReturnCardsImages)) return false; |
|
|
|
if (!object.Equals(GameStatus, other.GameStatus)) return false; |
|
|
|
if (DataCase != other.DataCase) return false; |
|
|
|
return Equals(_unknownFields, other._unknownFields); |
|
|
|
@ -1204,6 +1274,7 @@ namespace Protocol { |
|
|
|
if (dataCase_ == DataOneofCase.ReturnUsers) hash ^= ReturnUsers.GetHashCode(); |
|
|
|
if (dataCase_ == DataOneofCase.LobbyStatus) hash ^= LobbyStatus.GetHashCode(); |
|
|
|
if (dataCase_ == DataOneofCase.ReturnCardImage) hash ^= ReturnCardImage.GetHashCode(); |
|
|
|
if (dataCase_ == DataOneofCase.ReturnCardsImages) hash ^= ReturnCardsImages.GetHashCode(); |
|
|
|
if (dataCase_ == DataOneofCase.GameStatus) hash ^= GameStatus.GetHashCode(); |
|
|
|
hash ^= (int) dataCase_; |
|
|
|
if (_unknownFields != null) { |
|
|
|
@ -1258,6 +1329,10 @@ namespace Protocol { |
|
|
|
output.WriteRawTag(74); |
|
|
|
output.WriteMessage(GameStatus); |
|
|
|
} |
|
|
|
if (dataCase_ == DataOneofCase.ReturnCardsImages) { |
|
|
|
output.WriteRawTag(82); |
|
|
|
output.WriteMessage(ReturnCardsImages); |
|
|
|
} |
|
|
|
if (_unknownFields != null) { |
|
|
|
_unknownFields.WriteTo(output); |
|
|
|
} |
|
|
|
@ -1303,6 +1378,10 @@ namespace Protocol { |
|
|
|
output.WriteRawTag(74); |
|
|
|
output.WriteMessage(GameStatus); |
|
|
|
} |
|
|
|
if (dataCase_ == DataOneofCase.ReturnCardsImages) { |
|
|
|
output.WriteRawTag(82); |
|
|
|
output.WriteMessage(ReturnCardsImages); |
|
|
|
} |
|
|
|
if (_unknownFields != null) { |
|
|
|
_unknownFields.WriteTo(ref output); |
|
|
|
} |
|
|
|
@ -1336,6 +1415,9 @@ namespace Protocol { |
|
|
|
if (dataCase_ == DataOneofCase.ReturnCardImage) { |
|
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReturnCardImage); |
|
|
|
} |
|
|
|
if (dataCase_ == DataOneofCase.ReturnCardsImages) { |
|
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReturnCardsImages); |
|
|
|
} |
|
|
|
if (dataCase_ == DataOneofCase.GameStatus) { |
|
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameStatus); |
|
|
|
} |
|
|
|
@ -1399,6 +1481,12 @@ namespace Protocol { |
|
|
|
} |
|
|
|
ReturnCardImage.MergeFrom(other.ReturnCardImage); |
|
|
|
break; |
|
|
|
case DataOneofCase.ReturnCardsImages: |
|
|
|
if (ReturnCardsImages == null) { |
|
|
|
ReturnCardsImages = new global::Game.Images(); |
|
|
|
} |
|
|
|
ReturnCardsImages.MergeFrom(other.ReturnCardsImages); |
|
|
|
break; |
|
|
|
case DataOneofCase.GameStatus: |
|
|
|
if (GameStatus == null) { |
|
|
|
GameStatus = new global::Game.GameStatus(); |
|
|
|
@ -1502,6 +1590,15 @@ namespace Protocol { |
|
|
|
GameStatus = subBuilder; |
|
|
|
break; |
|
|
|
} |
|
|
|
case 82: { |
|
|
|
global::Game.Images subBuilder = new global::Game.Images(); |
|
|
|
if (dataCase_ == DataOneofCase.ReturnCardsImages) { |
|
|
|
subBuilder.MergeFrom(ReturnCardsImages); |
|
|
|
} |
|
|
|
input.ReadMessage(subBuilder); |
|
|
|
ReturnCardsImages = subBuilder; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
#endif
|
|
|
|
@ -1597,6 +1694,15 @@ namespace Protocol { |
|
|
|
GameStatus = subBuilder; |
|
|
|
break; |
|
|
|
} |
|
|
|
case 82: { |
|
|
|
global::Game.Images subBuilder = new global::Game.Images(); |
|
|
|
if (dataCase_ == DataOneofCase.ReturnCardsImages) { |
|
|
|
subBuilder.MergeFrom(ReturnCardsImages); |
|
|
|
} |
|
|
|
input.ReadMessage(subBuilder); |
|
|
|
ReturnCardsImages = subBuilder; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|