|
|
|
@ -25,35 +25,36 @@ namespace Game { |
|
|
|
byte[] descriptorData = global::System.Convert.FromBase64String( |
|
|
|
string.Concat( |
|
|
|
"CgpnYW1lLnByb3RvEgRnYW1lGhtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJv", |
|
|
|
"dG8iGAoIQ2FyZEtpbmQSDAoEa2luZBgBIAEoCSIjCgVJbWFnZRIMCgRmYWNl", |
|
|
|
"GAEgASgMEgwKBGJhY2sYAiABKAwidAoJQ2FyZEluZGV4Eg8KBWluZGV4GAEg", |
|
|
|
"ASgNSAASJQoDdG9wGAIgASgLMhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5SAAS", |
|
|
|
"KAoGYm90dG9tGAMgASgLMhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5SABCBQoD", |
|
|
|
"cG9zIk0KCFBpbGVLaW5kEg8KBW93bmVkGAEgASgNSAASKAoGY29tbW9uGAIg", |
|
|
|
"ASgLMhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5SABCBgoEa2luZCJgCgZDYXJk", |
|
|
|
"SWQSIAoIcGlsZUtpbmQYASABKAsyDi5nYW1lLlBpbGVLaW5kEhAKCHBpbGVO", |
|
|
|
"YW1lGAIgASgJEiIKCWNhcmRJbmRleBgDIAEoCzIPLmdhbWUuQ2FyZEluZGV4", |
|
|
|
"IvMCCg1NZXNzYWdlU3RhdHVzEi4KC2NvbW1vblBpbGVzGAEgASgLMhkuZ2Ft", |
|
|
|
"ZS5NZXNzYWdlU3RhdHVzLlBpbGVzEi4KC3BsYXllclBpbGVzGAIgAygLMhku", |
|
|
|
"Z2FtZS5NZXNzYWdlU3RhdHVzLlBpbGVzEhMKC2N1cnJlbnRUdXJuGAMgASgN", |
|
|
|
"GjUKBENhcmQSHAoEa2luZBgBIAEoCzIOLmdhbWUuQ2FyZEtpbmQSDwoHdmlz", |
|
|
|
"aWJsZRgCIAEoCBovCgRQaWxlEicKBWNhcmRzGAEgAygLMhguZ2FtZS5NZXNz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z2FtZS5DYXJkSW5kZXgikAMKDU1lc3NhZ2VTdGF0dXMSLgoLY29tbW9uUGls", |
|
|
|
"ZXMYASABKAsyGS5nYW1lLk1lc3NhZ2VTdGF0dXMuUGlsZXMSLgoLcGxheWVy", |
|
|
|
"UGlsZXMYAiADKAsyGS5nYW1lLk1lc3NhZ2VTdGF0dXMuUGlsZXMSGwoFbmFt", |
|
|
|
"ZXMYAyADKAsyDC5jb21tb24uTmFtZRITCgtjdXJyZW50VHVybhgEIAEoDRo1", |
|
|
|
"CgRDYXJkEhwKBGtpbmQYASABKAsyDi5nYW1lLkNhcmRLaW5kEg8KB3Zpc2li", |
|
|
|
"bGUYAiABKAgaLwoEUGlsZRInCgVjYXJkcxgBIAMoCzIYLmdhbWUuTWVzc2Fn", |
|
|
|
"ZVN0YXR1cy5DYXJkGoQBCgVQaWxlcxIzCgVwaWxlcxgBIAMoCzIkLmdhbWUu", |
|
|
|
"TWVzc2FnZVN0YXR1cy5QaWxlcy5QaWxlc0VudHJ5GkYKClBpbGVzRW50cnkS", |
|
|
|
"CwoDa2V5GAEgASgJEicKBXZhbHVlGAIgASgLMhguZ2FtZS5NZXNzYWdlU3Rh", |
|
|
|
"dHVzLlBpbGU6AjgBMpsBCgRHYW1lEisKDGdldENhcmRJbWFnZRIOLmdhbWUu", |
|
|
|
"Q2FyZEtpbmQaCy5nYW1lLkltYWdlEi8KB29uQ2xpY2sSDC5nYW1lLkNhcmRJ", |
|
|
|
"ZBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRI1CgZzdGF0dXMSFi5nb29nbGUu", |
|
|
|
"cHJvdG9idWYuRW1wdHkaEy5nYW1lLk1lc3NhZ2VTdGF0dXNiBnByb3RvMw==")); |
|
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
|
|
|
new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, }, |
|
|
|
new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Common.CommonReflection.Descriptor, }, |
|
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Game.CardKind), global::Game.CardKind.Parser, new[]{ "Kind" }, null, null, null, null), |
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Game.Image), global::Game.Image.Parser, new[]{ "Face", "Back" }, null, null, null, null), |
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Game.CardIndex), global::Game.CardIndex.Parser, new[]{ "Index", "Top", "Bottom" }, new[]{ "Pos" }, null, null, null), |
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Game.PileKind), global::Game.PileKind.Parser, new[]{ "Owned", "Common" }, new[]{ "Kind" }, null, null, null), |
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Game.CardId), global::Game.CardId.Parser, new[]{ "PileKind", "PileName", "CardIndex" }, null, null, null, null), |
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Game.MessageStatus), global::Game.MessageStatus.Parser, new[]{ "CommonPiles", "PlayerPiles", "CurrentTurn" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Game.MessageStatus.Types.Card), global::Game.MessageStatus.Types.Card.Parser, new[]{ "Kind", "Visible" }, null, null, null, null), |
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Game.MessageStatus), global::Game.MessageStatus.Parser, new[]{ "CommonPiles", "PlayerPiles", "Names", "CurrentTurn" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Game.MessageStatus.Types.Card), global::Game.MessageStatus.Types.Card.Parser, new[]{ "Kind", "Visible" }, null, null, null, null), |
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Game.MessageStatus.Types.Pile), global::Game.MessageStatus.Types.Pile.Parser, new[]{ "Cards" }, null, null, null, null), |
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Game.MessageStatus.Types.Piles), global::Game.MessageStatus.Types.Piles.Parser, new[]{ "Piles_" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, })}) |
|
|
|
})); |
|
|
|
@ -1291,6 +1292,7 @@ namespace Game { |
|
|
|
public MessageStatus(MessageStatus other) : this() { |
|
|
|
commonPiles_ = other.commonPiles_ != null ? other.commonPiles_.Clone() : null; |
|
|
|
playerPiles_ = other.playerPiles_.Clone(); |
|
|
|
names_ = other.names_.Clone(); |
|
|
|
currentTurn_ = other.currentTurn_; |
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
|
|
|
} |
|
|
|
@ -1303,6 +1305,9 @@ namespace Game { |
|
|
|
/// <summary>Field number for the "commonPiles" field.</summary>
|
|
|
|
public const int CommonPilesFieldNumber = 1; |
|
|
|
private global::Game.MessageStatus.Types.Piles commonPiles_; |
|
|
|
/// <summary>
|
|
|
|
/// {a: [""], b:[""]}
|
|
|
|
/// </summary>
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public global::Game.MessageStatus.Types.Piles CommonPiles { |
|
|
|
get { return commonPiles_; } |
|
|
|
@ -1316,13 +1321,26 @@ namespace Game { |
|
|
|
private static readonly pb::FieldCodec<global::Game.MessageStatus.Types.Piles> _repeated_playerPiles_codec |
|
|
|
= pb::FieldCodec.ForMessage(18, global::Game.MessageStatus.Types.Piles.Parser); |
|
|
|
private readonly pbc::RepeatedField<global::Game.MessageStatus.Types.Piles> playerPiles_ = new pbc::RepeatedField<global::Game.MessageStatus.Types.Piles>(); |
|
|
|
/// <summary>
|
|
|
|
/// [{...}, {...}]
|
|
|
|
/// </summary>
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public pbc::RepeatedField<global::Game.MessageStatus.Types.Piles> PlayerPiles { |
|
|
|
get { return playerPiles_; } |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>Field number for the "names" field.</summary>
|
|
|
|
public const int NamesFieldNumber = 3; |
|
|
|
private static readonly pb::FieldCodec<global::Common.Name> _repeated_names_codec |
|
|
|
= pb::FieldCodec.ForMessage(26, global::Common.Name.Parser); |
|
|
|
private readonly pbc::RepeatedField<global::Common.Name> names_ = new pbc::RepeatedField<global::Common.Name>(); |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public pbc::RepeatedField<global::Common.Name> Names { |
|
|
|
get { return names_; } |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>Field number for the "currentTurn" field.</summary>
|
|
|
|
public const int CurrentTurnFieldNumber = 3; |
|
|
|
public const int CurrentTurnFieldNumber = 4; |
|
|
|
private uint currentTurn_; |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public uint CurrentTurn { |
|
|
|
@ -1347,6 +1365,7 @@ namespace Game { |
|
|
|
} |
|
|
|
if (!object.Equals(CommonPiles, other.CommonPiles)) return false; |
|
|
|
if(!playerPiles_.Equals(other.playerPiles_)) return false; |
|
|
|
if(!names_.Equals(other.names_)) return false; |
|
|
|
if (CurrentTurn != other.CurrentTurn) return false; |
|
|
|
return Equals(_unknownFields, other._unknownFields); |
|
|
|
} |
|
|
|
@ -1356,6 +1375,7 @@ namespace Game { |
|
|
|
int hash = 1; |
|
|
|
if (commonPiles_ != null) hash ^= CommonPiles.GetHashCode(); |
|
|
|
hash ^= playerPiles_.GetHashCode(); |
|
|
|
hash ^= names_.GetHashCode(); |
|
|
|
if (CurrentTurn != 0) hash ^= CurrentTurn.GetHashCode(); |
|
|
|
if (_unknownFields != null) { |
|
|
|
hash ^= _unknownFields.GetHashCode(); |
|
|
|
@ -1378,8 +1398,9 @@ namespace Game { |
|
|
|
output.WriteMessage(CommonPiles); |
|
|
|
} |
|
|
|
playerPiles_.WriteTo(output, _repeated_playerPiles_codec); |
|
|
|
names_.WriteTo(output, _repeated_names_codec); |
|
|
|
if (CurrentTurn != 0) { |
|
|
|
output.WriteRawTag(24); |
|
|
|
output.WriteRawTag(32); |
|
|
|
output.WriteUInt32(CurrentTurn); |
|
|
|
} |
|
|
|
if (_unknownFields != null) { |
|
|
|
@ -1396,8 +1417,9 @@ namespace Game { |
|
|
|
output.WriteMessage(CommonPiles); |
|
|
|
} |
|
|
|
playerPiles_.WriteTo(ref output, _repeated_playerPiles_codec); |
|
|
|
names_.WriteTo(ref output, _repeated_names_codec); |
|
|
|
if (CurrentTurn != 0) { |
|
|
|
output.WriteRawTag(24); |
|
|
|
output.WriteRawTag(32); |
|
|
|
output.WriteUInt32(CurrentTurn); |
|
|
|
} |
|
|
|
if (_unknownFields != null) { |
|
|
|
@ -1413,6 +1435,7 @@ namespace Game { |
|
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(CommonPiles); |
|
|
|
} |
|
|
|
size += playerPiles_.CalculateSize(_repeated_playerPiles_codec); |
|
|
|
size += names_.CalculateSize(_repeated_names_codec); |
|
|
|
if (CurrentTurn != 0) { |
|
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurrentTurn); |
|
|
|
} |
|
|
|
@ -1434,6 +1457,7 @@ namespace Game { |
|
|
|
CommonPiles.MergeFrom(other.CommonPiles); |
|
|
|
} |
|
|
|
playerPiles_.Add(other.playerPiles_); |
|
|
|
names_.Add(other.names_); |
|
|
|
if (other.CurrentTurn != 0) { |
|
|
|
CurrentTurn = other.CurrentTurn; |
|
|
|
} |
|
|
|
@ -1462,7 +1486,11 @@ namespace Game { |
|
|
|
playerPiles_.AddEntriesFrom(input, _repeated_playerPiles_codec); |
|
|
|
break; |
|
|
|
} |
|
|
|
case 24: { |
|
|
|
case 26: { |
|
|
|
names_.AddEntriesFrom(input, _repeated_names_codec); |
|
|
|
break; |
|
|
|
} |
|
|
|
case 32: { |
|
|
|
CurrentTurn = input.ReadUInt32(); |
|
|
|
break; |
|
|
|
} |
|
|
|
@ -1491,7 +1519,11 @@ namespace Game { |
|
|
|
playerPiles_.AddEntriesFrom(ref input, _repeated_playerPiles_codec); |
|
|
|
break; |
|
|
|
} |
|
|
|
case 24: { |
|
|
|
case 26: { |
|
|
|
names_.AddEntriesFrom(ref input, _repeated_names_codec); |
|
|
|
break; |
|
|
|
} |
|
|
|
case 32: { |
|
|
|
CurrentTurn = input.ReadUInt32(); |
|
|
|
break; |
|
|
|
} |
|
|
|
|