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FsdWUYAiABKAsyFS5nYW1lLkdhbWVTdGF0", |
|
|
|
"dXMuUGlsZToCOAFiBnByb3RvMw==")); |
|
|
|
"CBIPCgd2aXNpYmxlGAMgASgIEgwKBG5hbWUYBCABKAkafgoFUGlsZXMSMAoF", |
|
|
|
"cGlsZXMYASADKAsyIS5nYW1lLkdhbWVTdGF0dXMuUGlsZXMuUGlsZXNFbnRy", |
|
|
|
"eRpDCgpQaWxlc0VudHJ5EgsKA2tleRgBIAEoCRIkCgV2YWx1ZRgCIAEoCzIV", |
|
|
|
"LmdhbWUuR2FtZVN0YXR1cy5QaWxlOgI4AWIGcHJvdG8z")); |
|
|
|
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[] { |
|
|
|
@ -53,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", "FaceDown", "Visible" }, 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, })}) |
|
|
|
})); |
|
|
|
} |
|
|
|
@ -1855,6 +1855,7 @@ namespace Game { |
|
|
|
cards_ = other.cards_.Clone(); |
|
|
|
faceDown_ = other.faceDown_; |
|
|
|
visible_ = other.visible_; |
|
|
|
name_ = other.name_; |
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
|
|
|
} |
|
|
|
|
|
|
|
@ -1895,6 +1896,17 @@ namespace Game { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>Field number for the "name" field.</summary>
|
|
|
|
public const int NameFieldNumber = 4; |
|
|
|
private string name_ = ""; |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public string Name { |
|
|
|
get { return name_; } |
|
|
|
set { |
|
|
|
name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public override bool Equals(object other) { |
|
|
|
return Equals(other as Pile); |
|
|
|
@ -1911,6 +1923,7 @@ namespace Game { |
|
|
|
if(!cards_.Equals(other.cards_)) return false; |
|
|
|
if (FaceDown != other.FaceDown) return false; |
|
|
|
if (Visible != other.Visible) return false; |
|
|
|
if (Name != other.Name) return false; |
|
|
|
return Equals(_unknownFields, other._unknownFields); |
|
|
|
} |
|
|
|
|
|
|
|
@ -1920,6 +1933,7 @@ namespace Game { |
|
|
|
hash ^= cards_.GetHashCode(); |
|
|
|
if (FaceDown != false) hash ^= FaceDown.GetHashCode(); |
|
|
|
if (Visible != false) hash ^= Visible.GetHashCode(); |
|
|
|
if (Name.Length != 0) hash ^= Name.GetHashCode(); |
|
|
|
if (_unknownFields != null) { |
|
|
|
hash ^= _unknownFields.GetHashCode(); |
|
|
|
} |
|
|
|
@ -1945,6 +1959,10 @@ namespace Game { |
|
|
|
output.WriteRawTag(24); |
|
|
|
output.WriteBool(Visible); |
|
|
|
} |
|
|
|
if (Name.Length != 0) { |
|
|
|
output.WriteRawTag(34); |
|
|
|
output.WriteString(Name); |
|
|
|
} |
|
|
|
if (_unknownFields != null) { |
|
|
|
_unknownFields.WriteTo(output); |
|
|
|
} |
|
|
|
@ -1963,6 +1981,10 @@ namespace Game { |
|
|
|
output.WriteRawTag(24); |
|
|
|
output.WriteBool(Visible); |
|
|
|
} |
|
|
|
if (Name.Length != 0) { |
|
|
|
output.WriteRawTag(34); |
|
|
|
output.WriteString(Name); |
|
|
|
} |
|
|
|
if (_unknownFields != null) { |
|
|
|
_unknownFields.WriteTo(ref output); |
|
|
|
} |
|
|
|
@ -1979,6 +2001,9 @@ namespace Game { |
|
|
|
if (Visible != false) { |
|
|
|
size += 1 + 1; |
|
|
|
} |
|
|
|
if (Name.Length != 0) { |
|
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); |
|
|
|
} |
|
|
|
if (_unknownFields != null) { |
|
|
|
size += _unknownFields.CalculateSize(); |
|
|
|
} |
|
|
|
@ -1997,6 +2022,9 @@ namespace Game { |
|
|
|
if (other.Visible != false) { |
|
|
|
Visible = other.Visible; |
|
|
|
} |
|
|
|
if (other.Name.Length != 0) { |
|
|
|
Name = other.Name; |
|
|
|
} |
|
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
|
|
|
} |
|
|
|
|
|
|
|
@ -2023,6 +2051,10 @@ namespace Game { |
|
|
|
Visible = input.ReadBool(); |
|
|
|
break; |
|
|
|
} |
|
|
|
case 34: { |
|
|
|
Name = input.ReadString(); |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
#endif
|
|
|
|
@ -2049,6 +2081,10 @@ namespace Game { |
|
|
|
Visible = input.ReadBool(); |
|
|
|
break; |
|
|
|
} |
|
|
|
case 34: { |
|
|
|
Name = input.ReadString(); |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|