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KBFBpbGUSJAoFY2FyZHMY", |
|
|
|
"ASADKAsyFS5nYW1lLkdhbWVTdGF0dXMuQ2FyZBIQCghmYWNlRG93bhgCIAEo", |
|
|
|
"CBp+CgVQaWxlcxIwCgVwaWxlcxgBIAMoCzIhLmdhbWUuR2FtZVN0YXR1cy5Q", |
|
|
|
"aWxlcy5QaWxlc0VudHJ5GkMKClBpbGVzRW50cnkSCwoDa2V5GAEgASgJEiQK", |
|
|
|
"BXZhbHVlGAIgASgLMhUuZ2FtZS5HYW1lU3RhdHVzLlBpbGU6AjgBYgZwcm90", |
|
|
|
"bzM=")); |
|
|
|
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,7 +53,7 @@ namespace Game { |
|
|
|
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.Types.Pile), global::Game.GameStatus.Types.Pile.Parser, new[]{ "Cards" }, null, null, null, null), |
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Game.GameStatus.Types.Pile), global::Game.GameStatus.Types.Pile.Parser, new[]{ "Cards", "FaceDown" }, 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, })}) |
|
|
|
})); |
|
|
|
} |
|
|
|
@ -1852,6 +1853,7 @@ namespace Game { |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public Pile(Pile other) : this() { |
|
|
|
cards_ = other.cards_.Clone(); |
|
|
|
faceDown_ = other.faceDown_; |
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
|
|
|
} |
|
|
|
|
|
|
|
@ -1870,6 +1872,17 @@ namespace Game { |
|
|
|
get { return cards_; } |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>Field number for the "faceDown" field.</summary>
|
|
|
|
public const int FaceDownFieldNumber = 2; |
|
|
|
private bool faceDown_; |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public bool FaceDown { |
|
|
|
get { return faceDown_; } |
|
|
|
set { |
|
|
|
faceDown_ = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public override bool Equals(object other) { |
|
|
|
return Equals(other as Pile); |
|
|
|
@ -1884,6 +1897,7 @@ namespace Game { |
|
|
|
return true; |
|
|
|
} |
|
|
|
if(!cards_.Equals(other.cards_)) return false; |
|
|
|
if (FaceDown != other.FaceDown) return false; |
|
|
|
return Equals(_unknownFields, other._unknownFields); |
|
|
|
} |
|
|
|
|
|
|
|
@ -1891,6 +1905,7 @@ namespace Game { |
|
|
|
public override int GetHashCode() { |
|
|
|
int hash = 1; |
|
|
|
hash ^= cards_.GetHashCode(); |
|
|
|
if (FaceDown != false) hash ^= FaceDown.GetHashCode(); |
|
|
|
if (_unknownFields != null) { |
|
|
|
hash ^= _unknownFields.GetHashCode(); |
|
|
|
} |
|
|
|
@ -1908,6 +1923,10 @@ namespace Game { |
|
|
|
output.WriteRawMessage(this); |
|
|
|
#else
|
|
|
|
cards_.WriteTo(output, _repeated_cards_codec); |
|
|
|
if (FaceDown != false) { |
|
|
|
output.WriteRawTag(16); |
|
|
|
output.WriteBool(FaceDown); |
|
|
|
} |
|
|
|
if (_unknownFields != null) { |
|
|
|
_unknownFields.WriteTo(output); |
|
|
|
} |
|
|
|
@ -1918,6 +1937,10 @@ namespace Game { |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
|
|
|
cards_.WriteTo(ref output, _repeated_cards_codec); |
|
|
|
if (FaceDown != false) { |
|
|
|
output.WriteRawTag(16); |
|
|
|
output.WriteBool(FaceDown); |
|
|
|
} |
|
|
|
if (_unknownFields != null) { |
|
|
|
_unknownFields.WriteTo(ref output); |
|
|
|
} |
|
|
|
@ -1928,6 +1951,9 @@ namespace Game { |
|
|
|
public int CalculateSize() { |
|
|
|
int size = 0; |
|
|
|
size += cards_.CalculateSize(_repeated_cards_codec); |
|
|
|
if (FaceDown != false) { |
|
|
|
size += 1 + 1; |
|
|
|
} |
|
|
|
if (_unknownFields != null) { |
|
|
|
size += _unknownFields.CalculateSize(); |
|
|
|
} |
|
|
|
@ -1940,6 +1966,9 @@ namespace Game { |
|
|
|
return; |
|
|
|
} |
|
|
|
cards_.Add(other.cards_); |
|
|
|
if (other.FaceDown != false) { |
|
|
|
FaceDown = other.FaceDown; |
|
|
|
} |
|
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
|
|
|
} |
|
|
|
|
|
|
|
@ -1958,6 +1987,10 @@ namespace Game { |
|
|
|
cards_.AddEntriesFrom(input, _repeated_cards_codec); |
|
|
|
break; |
|
|
|
} |
|
|
|
case 16: { |
|
|
|
FaceDown = input.ReadBool(); |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
#endif
|
|
|
|
@ -1976,6 +2009,10 @@ namespace Game { |
|
|
|
cards_.AddEntriesFrom(ref input, _repeated_cards_codec); |
|
|
|
break; |
|
|
|
} |
|
|
|
case 16: { |
|
|
|
FaceDown = input.ReadBool(); |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|