Browse Source

Update c# protobuf

new_protocol
ThePerkinrex 5 years ago
parent
commit
8004c6953c
No known key found for this signature in database GPG Key ID: FD81DE6D75E20917
  1. 52
      unity/Assets/Scripts/grpc/Game.cs

52
unity/Assets/Scripts/grpc/Game.cs

@ -33,16 +33,16 @@ namespace Game {
"CgVvd25lZBgBIAEoDUgAEigKBmNvbW1vbhgCIAEoCzIWLmdvb2dsZS5wcm90",
"b2J1Zi5FbXB0eUgAQgYKBGtpbmQiYAoGQ2FyZElkEiAKCHBpbGVLaW5kGAEg",
"ASgLMg4uZ2FtZS5QaWxlS2luZBIQCghwaWxlTmFtZRgCIAEoCRIiCgljYXJk",
"SW5kZXgYAyABKAsyDy5nYW1lLkNhcmRJbmRleCL9AgoKR2FtZVN0YXR1cxIr",
"SW5kZXgYAyABKAsyDy5nYW1lLkNhcmRJbmRleCKLAwoKR2FtZVN0YXR1cxIr",
"Cgtjb21tb25QaWxlcxgBIAEoCzIWLmdhbWUuR2FtZVN0YXR1cy5QaWxlcxIr",
"CgtwbGF5ZXJQaWxlcxgCIAMoCzIWLmdhbWUuR2FtZVN0YXR1cy5QaWxlcxIb",
"CgVuYW1lcxgDIAMoCzIMLmNvbW1vbi5OYW1lEhMKC2N1cnJlbnRUdXJuGAQg",
"ASgNGjUKBENhcmQSHAoEa2luZBgBIAEoCzIOLmdhbWUuQ2FyZEtpbmQSDwoH",
"dmlzaWJsZRgCIAEoCBosCgRQaWxlEiQKBWNhcmRzGAEgAygLMhUuZ2FtZS5H",
"YW1lU3RhdHVzLkNhcmQafgoFUGlsZXMSMAoFcGlsZXMYASADKAsyIS5nYW1l",
"LkdhbWVTdGF0dXMuUGlsZXMuUGlsZXNFbnRyeRpDCgpQaWxlc0VudHJ5EgsK",
"A2tleRgBIAEoCRIkCgV2YWx1ZRgCIAEoCzIVLmdhbWUuR2FtZVN0YXR1cy5Q",
"aWxlOgI4AWIGcHJvdG8z"));
"ASgNGkMKBENhcmQSHAoEa2luZBgBIAEoCzIOLmdhbWUuQ2FyZEtpbmQSDwoH",
"dmlzaWJsZRgCIAEoCBIMCgR1dWlkGAMgASgJGiwKBFBpbGUSJAoFY2FyZHMY",
"ASADKAsyFS5nYW1lLkdhbWVTdGF0dXMuQ2FyZBp+CgVQaWxlcxIwCgVwaWxl",
"cxgBIAMoCzIhLmdhbWUuR2FtZVN0YXR1cy5QaWxlcy5QaWxlc0VudHJ5GkMK",
"ClBpbGVzRW50cnkSCwoDa2V5GAEgASgJEiQKBXZhbHVlGAIgASgLMhUuZ2Ft",
"ZS5HYW1lU3RhdHVzLlBpbGU6AjgBYgZwcm90bzM="));
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[] {
@ -51,7 +51,7 @@ 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" }, 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.Piles), global::Game.GameStatus.Types.Piles.Parser, new[]{ "Piles_" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, })})
}));
@ -1600,6 +1600,7 @@ namespace Game {
public Card(Card other) : this() {
kind_ = other.kind_ != null ? other.kind_.Clone() : null;
visible_ = other.visible_;
uuid_ = other.uuid_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
@ -1630,6 +1631,17 @@ namespace Game {
}
}
/// <summary>Field number for the "uuid" field.</summary>
public const int UuidFieldNumber = 3;
private string uuid_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Uuid {
get { return uuid_; }
set {
uuid_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as Card);
@ -1645,6 +1657,7 @@ namespace Game {
}
if (!object.Equals(Kind, other.Kind)) return false;
if (Visible != other.Visible) return false;
if (Uuid != other.Uuid) return false;
return Equals(_unknownFields, other._unknownFields);
}
@ -1653,6 +1666,7 @@ namespace Game {
int hash = 1;
if (kind_ != null) hash ^= Kind.GetHashCode();
if (Visible != false) hash ^= Visible.GetHashCode();
if (Uuid.Length != 0) hash ^= Uuid.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@ -1677,6 +1691,10 @@ namespace Game {
output.WriteRawTag(16);
output.WriteBool(Visible);
}
if (Uuid.Length != 0) {
output.WriteRawTag(26);
output.WriteString(Uuid);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
@ -1694,6 +1712,10 @@ namespace Game {
output.WriteRawTag(16);
output.WriteBool(Visible);
}
if (Uuid.Length != 0) {
output.WriteRawTag(26);
output.WriteString(Uuid);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
@ -1709,6 +1731,9 @@ namespace Game {
if (Visible != false) {
size += 1 + 1;
}
if (Uuid.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Uuid);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
@ -1729,6 +1754,9 @@ namespace Game {
if (other.Visible != false) {
Visible = other.Visible;
}
if (other.Uuid.Length != 0) {
Uuid = other.Uuid;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@ -1754,6 +1782,10 @@ namespace Game {
Visible = input.ReadBool();
break;
}
case 26: {
Uuid = input.ReadString();
break;
}
}
}
#endif
@ -1779,6 +1811,10 @@ namespace Game {
Visible = input.ReadBool();
break;
}
case 26: {
Uuid = input.ReadString();
break;
}
}
}
}

Loading…
Cancel
Save