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WxlOgI4AWIGcHJvdG8z")); |
|
|
|
"ASgNEhMKC2hhc0ZpbmlzaGVkGAUgASgIEjAKBGluZm8YBiABKAsyIi5nYW1l", |
|
|
|
"LkdhbWVTdGF0dXMuQ3VzdG9tSW5mb01lc3NhZ2UaQwoEQ2FyZBIcCgRraW5k", |
|
|
|
"GAEgASgLMg4uZ2FtZS5DYXJkS2luZBIPCgd2aXNpYmxlGAIgASgIEgwKBHV1", |
|
|
|
"aWQYAyABKAkaXQoEUGlsZRIkCgVjYXJkcxgBIAMoCzIVLmdhbWUuR2FtZVN0", |
|
|
|
"YXR1cy5DYXJkEhAKCGZhY2VEb3duGAIgASgIEg8KB3Zpc2libGUYAyABKAgS", |
|
|
|
"DAoEbmFtZRgEIAEoCRp+CgVQaWxlcxIwCgVwaWxlcxgBIAMoCzIhLmdhbWUu", |
|
|
|
"R2FtZVN0YXR1cy5QaWxlcy5QaWxlc0VudHJ5GkMKClBpbGVzRW50cnkSCwoD", |
|
|
|
"a2V5GAEgASgJEiQKBXZhbHVlGAIgASgLMhUuZ2FtZS5HYW1lU3RhdHVzLlBp", |
|
|
|
"bGU6AjgBGi0KEUN1c3RvbUluZm9NZXNzYWdlEg0KBXRpdGxlGAEgASgJEgkK", |
|
|
|
"AW0YAiABKAliBnByb3RvMw==")); |
|
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
|
|
|
new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Common.CommonReflection.Descriptor, }, |
|
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
|
|
|
@ -52,9 +55,10 @@ namespace Game { |
|
|
|
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.GameStatus), global::Game.GameStatus.Parser, new[]{ "CommonPiles", "PlayerPiles", "Names", "CurrentTurn" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Game.GameStatus.Types.Card), global::Game.GameStatus.Types.Card.Parser, new[]{ "Kind", "Visible", "Uuid" }, null, null, null, null), |
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Game.GameStatus), global::Game.GameStatus.Parser, new[]{ "CommonPiles", "PlayerPiles", "Names", "CurrentTurn", "HasFinished", "Info" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Game.GameStatus.Types.Card), global::Game.GameStatus.Types.Card.Parser, new[]{ "Kind", "Visible", "Uuid" }, null, null, null, null), |
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Game.GameStatus.Types.Pile), global::Game.GameStatus.Types.Pile.Parser, new[]{ "Cards", "FaceDown", "Visible", "Name" }, null, null, null, null), |
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Game.GameStatus.Types.Piles), global::Game.GameStatus.Types.Piles.Parser, new[]{ "Piles_" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, })}) |
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Game.GameStatus.Types.Piles), global::Game.GameStatus.Types.Piles.Parser, new[]{ "Piles_" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), |
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Game.GameStatus.Types.CustomInfoMessage), global::Game.GameStatus.Types.CustomInfoMessage.Parser, new[]{ "Title", "M" }, null, null, null, null)}) |
|
|
|
})); |
|
|
|
} |
|
|
|
#endregion
|
|
|
|
@ -1328,6 +1332,8 @@ namespace Game { |
|
|
|
playerPiles_ = other.playerPiles_.Clone(); |
|
|
|
names_ = other.names_.Clone(); |
|
|
|
currentTurn_ = other.currentTurn_; |
|
|
|
hasFinished_ = other.hasFinished_; |
|
|
|
info_ = other.info_ != null ? other.info_.Clone() : null; |
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
|
|
|
} |
|
|
|
|
|
|
|
@ -1384,6 +1390,28 @@ namespace Game { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>Field number for the "hasFinished" field.</summary>
|
|
|
|
public const int HasFinishedFieldNumber = 5; |
|
|
|
private bool hasFinished_; |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public bool HasFinished { |
|
|
|
get { return hasFinished_; } |
|
|
|
set { |
|
|
|
hasFinished_ = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>Field number for the "info" field.</summary>
|
|
|
|
public const int InfoFieldNumber = 6; |
|
|
|
private global::Game.GameStatus.Types.CustomInfoMessage info_; |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public global::Game.GameStatus.Types.CustomInfoMessage Info { |
|
|
|
get { return info_; } |
|
|
|
set { |
|
|
|
info_ = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public override bool Equals(object other) { |
|
|
|
return Equals(other as GameStatus); |
|
|
|
@ -1401,6 +1429,8 @@ namespace Game { |
|
|
|
if(!playerPiles_.Equals(other.playerPiles_)) return false; |
|
|
|
if(!names_.Equals(other.names_)) return false; |
|
|
|
if (CurrentTurn != other.CurrentTurn) return false; |
|
|
|
if (HasFinished != other.HasFinished) return false; |
|
|
|
if (!object.Equals(Info, other.Info)) return false; |
|
|
|
return Equals(_unknownFields, other._unknownFields); |
|
|
|
} |
|
|
|
|
|
|
|
@ -1411,6 +1441,8 @@ namespace Game { |
|
|
|
hash ^= playerPiles_.GetHashCode(); |
|
|
|
hash ^= names_.GetHashCode(); |
|
|
|
if (CurrentTurn != 0) hash ^= CurrentTurn.GetHashCode(); |
|
|
|
if (HasFinished != false) hash ^= HasFinished.GetHashCode(); |
|
|
|
if (info_ != null) hash ^= Info.GetHashCode(); |
|
|
|
if (_unknownFields != null) { |
|
|
|
hash ^= _unknownFields.GetHashCode(); |
|
|
|
} |
|
|
|
@ -1437,6 +1469,14 @@ namespace Game { |
|
|
|
output.WriteRawTag(32); |
|
|
|
output.WriteUInt32(CurrentTurn); |
|
|
|
} |
|
|
|
if (HasFinished != false) { |
|
|
|
output.WriteRawTag(40); |
|
|
|
output.WriteBool(HasFinished); |
|
|
|
} |
|
|
|
if (info_ != null) { |
|
|
|
output.WriteRawTag(50); |
|
|
|
output.WriteMessage(Info); |
|
|
|
} |
|
|
|
if (_unknownFields != null) { |
|
|
|
_unknownFields.WriteTo(output); |
|
|
|
} |
|
|
|
@ -1456,6 +1496,14 @@ namespace Game { |
|
|
|
output.WriteRawTag(32); |
|
|
|
output.WriteUInt32(CurrentTurn); |
|
|
|
} |
|
|
|
if (HasFinished != false) { |
|
|
|
output.WriteRawTag(40); |
|
|
|
output.WriteBool(HasFinished); |
|
|
|
} |
|
|
|
if (info_ != null) { |
|
|
|
output.WriteRawTag(50); |
|
|
|
output.WriteMessage(Info); |
|
|
|
} |
|
|
|
if (_unknownFields != null) { |
|
|
|
_unknownFields.WriteTo(ref output); |
|
|
|
} |
|
|
|
@ -1473,6 +1521,12 @@ namespace Game { |
|
|
|
if (CurrentTurn != 0) { |
|
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurrentTurn); |
|
|
|
} |
|
|
|
if (HasFinished != false) { |
|
|
|
size += 1 + 1; |
|
|
|
} |
|
|
|
if (info_ != null) { |
|
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info); |
|
|
|
} |
|
|
|
if (_unknownFields != null) { |
|
|
|
size += _unknownFields.CalculateSize(); |
|
|
|
} |
|
|
|
@ -1495,6 +1549,15 @@ namespace Game { |
|
|
|
if (other.CurrentTurn != 0) { |
|
|
|
CurrentTurn = other.CurrentTurn; |
|
|
|
} |
|
|
|
if (other.HasFinished != false) { |
|
|
|
HasFinished = other.HasFinished; |
|
|
|
} |
|
|
|
if (other.info_ != null) { |
|
|
|
if (info_ == null) { |
|
|
|
Info = new global::Game.GameStatus.Types.CustomInfoMessage(); |
|
|
|
} |
|
|
|
Info.MergeFrom(other.Info); |
|
|
|
} |
|
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
|
|
|
} |
|
|
|
|
|
|
|
@ -1528,6 +1591,17 @@ namespace Game { |
|
|
|
CurrentTurn = input.ReadUInt32(); |
|
|
|
break; |
|
|
|
} |
|
|
|
case 40: { |
|
|
|
HasFinished = input.ReadBool(); |
|
|
|
break; |
|
|
|
} |
|
|
|
case 50: { |
|
|
|
if (info_ == null) { |
|
|
|
Info = new global::Game.GameStatus.Types.CustomInfoMessage(); |
|
|
|
} |
|
|
|
input.ReadMessage(Info); |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
#endif
|
|
|
|
@ -1561,6 +1635,17 @@ namespace Game { |
|
|
|
CurrentTurn = input.ReadUInt32(); |
|
|
|
break; |
|
|
|
} |
|
|
|
case 40: { |
|
|
|
HasFinished = input.ReadBool(); |
|
|
|
break; |
|
|
|
} |
|
|
|
case 50: { |
|
|
|
if (info_ == null) { |
|
|
|
Info = new global::Game.GameStatus.Types.CustomInfoMessage(); |
|
|
|
} |
|
|
|
input.ReadMessage(Info); |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -2253,6 +2338,214 @@ namespace Game { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public sealed partial class CustomInfoMessage : pb::IMessage<CustomInfoMessage> |
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
|
, pb::IBufferMessage |
|
|
|
#endif
|
|
|
|
{ |
|
|
|
private static readonly pb::MessageParser<CustomInfoMessage> _parser = new pb::MessageParser<CustomInfoMessage>(() => new CustomInfoMessage()); |
|
|
|
private pb::UnknownFieldSet _unknownFields; |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public static pb::MessageParser<CustomInfoMessage> Parser { get { return _parser; } } |
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public static pbr::MessageDescriptor Descriptor { |
|
|
|
get { return global::Game.GameStatus.Descriptor.NestedTypes[3]; } |
|
|
|
} |
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor { |
|
|
|
get { return Descriptor; } |
|
|
|
} |
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public CustomInfoMessage() { |
|
|
|
OnConstruction(); |
|
|
|
} |
|
|
|
|
|
|
|
partial void OnConstruction(); |
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public CustomInfoMessage(CustomInfoMessage other) : this() { |
|
|
|
title_ = other.title_; |
|
|
|
m_ = other.m_; |
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
|
|
|
} |
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public CustomInfoMessage Clone() { |
|
|
|
return new CustomInfoMessage(this); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>Field number for the "title" field.</summary>
|
|
|
|
public const int TitleFieldNumber = 1; |
|
|
|
private string title_ = ""; |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public string Title { |
|
|
|
get { return title_; } |
|
|
|
set { |
|
|
|
title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>Field number for the "m" field.</summary>
|
|
|
|
public const int MFieldNumber = 2; |
|
|
|
private string m_ = ""; |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public string M { |
|
|
|
get { return m_; } |
|
|
|
set { |
|
|
|
m_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public override bool Equals(object other) { |
|
|
|
return Equals(other as CustomInfoMessage); |
|
|
|
} |
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public bool Equals(CustomInfoMessage other) { |
|
|
|
if (ReferenceEquals(other, null)) { |
|
|
|
return false; |
|
|
|
} |
|
|
|
if (ReferenceEquals(other, this)) { |
|
|
|
return true; |
|
|
|
} |
|
|
|
if (Title != other.Title) return false; |
|
|
|
if (M != other.M) return false; |
|
|
|
return Equals(_unknownFields, other._unknownFields); |
|
|
|
} |
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public override int GetHashCode() { |
|
|
|
int hash = 1; |
|
|
|
if (Title.Length != 0) hash ^= Title.GetHashCode(); |
|
|
|
if (M.Length != 0) hash ^= M.GetHashCode(); |
|
|
|
if (_unknownFields != null) { |
|
|
|
hash ^= _unknownFields.GetHashCode(); |
|
|
|
} |
|
|
|
return hash; |
|
|
|
} |
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public override string ToString() { |
|
|
|
return pb::JsonFormatter.ToDiagnosticString(this); |
|
|
|
} |
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public void WriteTo(pb::CodedOutputStream output) { |
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
|
output.WriteRawMessage(this); |
|
|
|
#else
|
|
|
|
if (Title.Length != 0) { |
|
|
|
output.WriteRawTag(10); |
|
|
|
output.WriteString(Title); |
|
|
|
} |
|
|
|
if (M.Length != 0) { |
|
|
|
output.WriteRawTag(18); |
|
|
|
output.WriteString(M); |
|
|
|
} |
|
|
|
if (_unknownFields != null) { |
|
|
|
_unknownFields.WriteTo(output); |
|
|
|
} |
|
|
|
#endif
|
|
|
|
} |
|
|
|
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
|
|
|
if (Title.Length != 0) { |
|
|
|
output.WriteRawTag(10); |
|
|
|
output.WriteString(Title); |
|
|
|
} |
|
|
|
if (M.Length != 0) { |
|
|
|
output.WriteRawTag(18); |
|
|
|
output.WriteString(M); |
|
|
|
} |
|
|
|
if (_unknownFields != null) { |
|
|
|
_unknownFields.WriteTo(ref output); |
|
|
|
} |
|
|
|
} |
|
|
|
#endif
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public int CalculateSize() { |
|
|
|
int size = 0; |
|
|
|
if (Title.Length != 0) { |
|
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); |
|
|
|
} |
|
|
|
if (M.Length != 0) { |
|
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(M); |
|
|
|
} |
|
|
|
if (_unknownFields != null) { |
|
|
|
size += _unknownFields.CalculateSize(); |
|
|
|
} |
|
|
|
return size; |
|
|
|
} |
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public void MergeFrom(CustomInfoMessage other) { |
|
|
|
if (other == null) { |
|
|
|
return; |
|
|
|
} |
|
|
|
if (other.Title.Length != 0) { |
|
|
|
Title = other.Title; |
|
|
|
} |
|
|
|
if (other.M.Length != 0) { |
|
|
|
M = other.M; |
|
|
|
} |
|
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
|
|
|
} |
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
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: { |
|
|
|
Title = input.ReadString(); |
|
|
|
break; |
|
|
|
} |
|
|
|
case 18: { |
|
|
|
M = input.ReadString(); |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
#endif
|
|
|
|
} |
|
|
|
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
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: { |
|
|
|
Title = input.ReadString(); |
|
|
|
break; |
|
|
|
} |
|
|
|
case 18: { |
|
|
|
M = input.ReadString(); |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
#endif
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
#endregion
|
|
|
|
|
|
|
|
|