|
|
@ -25,28 +25,30 @@ namespace Game { |
|
|
byte[] descriptorData = global::System.Convert.FromBase64String( |
|
|
byte[] descriptorData = global::System.Convert.FromBase64String( |
|
|
string.Concat( |
|
|
string.Concat( |
|
|
"CgpnYW1lLnByb3RvEgRnYW1lIhQKBlVzZXJJRBIKCgJpZBgBIAEoCSIUCgRO", |
|
|
"CgpnYW1lLnByb3RvEgRnYW1lIhQKBlVzZXJJRBIKCgJpZBgBIAEoCSIUCgRO", |
|
|
"YW1lEgwKBG5hbWUYASABKAkiBgoETnVsbCIoCgZDYXJkSUQSDgoGZ2FtZUlk", |
|
|
"YW1lEgwKBG5hbWUYASABKAkiHQoLTG9iYnlDb25maWcSDgoGcHVibGljGAEg", |
|
|
"GAEgASgEEg4KBmNhcmRJZBgCIAEoCSIYCgVJbWFnZRIPCgdjb250ZW50GAEg", |
|
|
"ASgIIgYKBE51bGwiKAoGQ2FyZElEEg4KBmdhbWVJZBgBIAEoDRIOCgZjYXJk", |
|
|
"ASgMIhkKCUxvYmJ5Q29kZRIMCgRjb2RlGAEgASgNIkIKBEdhbWUSDAoEbmFt", |
|
|
"SWQYAiABKAkiGAoFSW1hZ2USDwoHY29udGVudBgBIAEoDCIZCglMb2JieUNv", |
|
|
"ZRgBIAEoCRIPCgd2ZXJzaW9uGAIgASgJEg8KB2F1dGhvcnMYAyADKAkSCgoC", |
|
|
"ZGUSDAoEY29kZRgBIAEoDSJCCgRHYW1lEgwKBG5hbWUYASABKAkSDwoHdmVy", |
|
|
"aWQYBCABKAQiEgoEVm90ZRIKCgJpZBgBIAEoBCJZCgtMb2JieVN0YXR1cxIZ", |
|
|
"c2lvbhgCIAEoCRIPCgdhdXRob3JzGAMgAygJEgoKAmlkGAQgASgNIhIKBFZv", |
|
|
"CgV2b3RlcxgBIAMoCzIKLmdhbWUuVm90ZRIbCgVyZWFkeRgCIAMoCzIMLmdh", |
|
|
"dGUSCgoCaWQYASABKAQiWQoLTG9iYnlTdGF0dXMSGQoFdm90ZXMYASADKAsy", |
|
|
"bWUuUGxheWVyEhIKCmlzU3RhcnRpbmcYAyABKAgiIgoGUGxheWVyEgwKBG5h", |
|
|
"Ci5nYW1lLlZvdGUSGwoFcmVhZHkYAiADKAsyDC5nYW1lLlBsYXllchISCgpp", |
|
|
"bWUYASABKAkSCgoCaWQYAiABKAQyuAEKCkNvbm5lY3Rpb24SHgoEbmFtZRIK", |
|
|
"c1N0YXJ0aW5nGAMgASgIIiIKBlBsYXllchIMCgRuYW1lGAEgASgJEgoKAmlk", |
|
|
"LmdhbWUuTnVsbBoKLmdhbWUuTmFtZRIjCgdjb25uZWN0EgouZ2FtZS5OYW1l", |
|
|
"GAIgASgNMo8CCgpDb25uZWN0aW9uEh4KBG5hbWUSCi5nYW1lLk51bGwaCi5n", |
|
|
"GgwuZ2FtZS5Vc2VySUQSMAoRam9pbkxvYmJ5V2l0aENvZGUSDy5nYW1lLkxv", |
|
|
"YW1lLk5hbWUSIwoHY29ubmVjdBIKLmdhbWUuTmFtZRoMLmdhbWUuVXNlcklE", |
|
|
"YmJ5Q29kZRoKLmdhbWUuTnVsbBIzChRqb2luTG9iYnlXaXRob3V0Q29kZRIK", |
|
|
"EjAKEWpvaW5Mb2JieVdpdGhDb2RlEg8uZ2FtZS5Mb2JieUNvZGUaCi5nYW1l", |
|
|
"LmdhbWUuTnVsbBoPLmdhbWUuTG9iYnlDb2RlMsIBCgVMb2JieRIkCghnZXRH", |
|
|
"Lk51bGwSMQoLY3JlYXRlTG9iYnkSES5nYW1lLkxvYmJ5Q29uZmlnGg8uZ2Ft", |
|
|
"YW1lcxIKLmdhbWUuTnVsbBoKLmdhbWUuR2FtZTABEikKDGdldENhcmRJbWFn", |
|
|
"ZS5Mb2JieUNvZGUSJAoIZ2V0R2FtZXMSCi5nYW1lLk51bGwaCi5nYW1lLkdh", |
|
|
"ZRIMLmdhbWUuQ2FyZElEGgsuZ2FtZS5JbWFnZRIeCgR2b3RlEgouZ2FtZS5W", |
|
|
"bWUwARIxChBnZXRQdWJsaWNMb2JiaWVzEgouZ2FtZS5OdWxsGg8uZ2FtZS5M", |
|
|
"b3RlGgouZ2FtZS5OdWxsEh8KBXJlYWR5EgouZ2FtZS5OdWxsGgouZ2FtZS5O", |
|
|
"b2JieUNvZGUwATKcAQoFTG9iYnkSKQoMZ2V0Q2FyZEltYWdlEgwuZ2FtZS5D", |
|
|
"dWxsEicKBnN0YXR1cxIKLmdhbWUuTnVsbBoRLmdhbWUuTG9iYnlTdGF0dXNi", |
|
|
"YXJkSUQaCy5nYW1lLkltYWdlEh4KBHZvdGUSCi5nYW1lLlZvdGUaCi5nYW1l", |
|
|
"BnByb3RvMw==")); |
|
|
"Lk51bGwSHwoFcmVhZHkSCi5nYW1lLk51bGwaCi5nYW1lLk51bGwSJwoGc3Rh", |
|
|
|
|
|
"dHVzEgouZ2FtZS5OdWxsGhEuZ2FtZS5Mb2JieVN0YXR1c2IGcHJvdG8z")); |
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
|
|
new pbr::FileDescriptor[] { }, |
|
|
new pbr::FileDescriptor[] { }, |
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Game.UserID), global::Game.UserID.Parser, new[]{ "Id" }, null, null, null, null), |
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Game.UserID), global::Game.UserID.Parser, new[]{ "Id" }, null, null, null, null), |
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Game.Name), global::Game.Name.Parser, new[]{ "Name_" }, null, null, null, null), |
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Game.Name), global::Game.Name.Parser, new[]{ "Name_" }, null, null, null, null), |
|
|
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Game.LobbyConfig), global::Game.LobbyConfig.Parser, new[]{ "Public" }, null, null, null, null), |
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Game.Null), global::Game.Null.Parser, null, null, null, null, null), |
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Game.Null), global::Game.Null.Parser, null, null, null, null, null), |
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Game.CardID), global::Game.CardID.Parser, new[]{ "GameId", "CardId" }, null, null, null, null), |
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Game.CardID), global::Game.CardID.Parser, new[]{ "GameId", "CardId" }, null, null, null, null), |
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Game.Image), global::Game.Image.Parser, new[]{ "Content" }, null, null, null, null), |
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Game.Image), global::Game.Image.Parser, new[]{ "Content" }, null, null, null, null), |
|
|
@ -405,6 +407,181 @@ namespace Game { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public sealed partial class LobbyConfig : pb::IMessage<LobbyConfig> |
|
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
|
|
|
, pb::IBufferMessage |
|
|
|
|
|
#endif
|
|
|
|
|
|
{ |
|
|
|
|
|
private static readonly pb::MessageParser<LobbyConfig> _parser = new pb::MessageParser<LobbyConfig>(() => new LobbyConfig()); |
|
|
|
|
|
private pb::UnknownFieldSet _unknownFields; |
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
|
|
public static pb::MessageParser<LobbyConfig> Parser { get { return _parser; } } |
|
|
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
|
|
public static pbr::MessageDescriptor Descriptor { |
|
|
|
|
|
get { return global::Game.GameReflection.Descriptor.MessageTypes[2]; } |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor { |
|
|
|
|
|
get { return Descriptor; } |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
|
|
public LobbyConfig() { |
|
|
|
|
|
OnConstruction(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
partial void OnConstruction(); |
|
|
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
|
|
public LobbyConfig(LobbyConfig other) : this() { |
|
|
|
|
|
public_ = other.public_; |
|
|
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
|
|
public LobbyConfig Clone() { |
|
|
|
|
|
return new LobbyConfig(this); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>Field number for the "public" field.</summary>
|
|
|
|
|
|
public const int PublicFieldNumber = 1; |
|
|
|
|
|
private bool public_; |
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// repeated uint32 allowed_games = 2;
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
|
|
public bool Public { |
|
|
|
|
|
get { return public_; } |
|
|
|
|
|
set { |
|
|
|
|
|
public_ = value; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
|
|
public override bool Equals(object other) { |
|
|
|
|
|
return Equals(other as LobbyConfig); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
|
|
public bool Equals(LobbyConfig other) { |
|
|
|
|
|
if (ReferenceEquals(other, null)) { |
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
|
|
|
if (ReferenceEquals(other, this)) { |
|
|
|
|
|
return true; |
|
|
|
|
|
} |
|
|
|
|
|
if (Public != other.Public) return false; |
|
|
|
|
|
return Equals(_unknownFields, other._unknownFields); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
|
|
public override int GetHashCode() { |
|
|
|
|
|
int hash = 1; |
|
|
|
|
|
if (Public != false) hash ^= Public.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 (Public != false) { |
|
|
|
|
|
output.WriteRawTag(8); |
|
|
|
|
|
output.WriteBool(Public); |
|
|
|
|
|
} |
|
|
|
|
|
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 (Public != false) { |
|
|
|
|
|
output.WriteRawTag(8); |
|
|
|
|
|
output.WriteBool(Public); |
|
|
|
|
|
} |
|
|
|
|
|
if (_unknownFields != null) { |
|
|
|
|
|
_unknownFields.WriteTo(ref output); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
|
|
public int CalculateSize() { |
|
|
|
|
|
int size = 0; |
|
|
|
|
|
if (Public != false) { |
|
|
|
|
|
size += 1 + 1; |
|
|
|
|
|
} |
|
|
|
|
|
if (_unknownFields != null) { |
|
|
|
|
|
size += _unknownFields.CalculateSize(); |
|
|
|
|
|
} |
|
|
|
|
|
return size; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
|
|
public void MergeFrom(LobbyConfig other) { |
|
|
|
|
|
if (other == null) { |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
if (other.Public != false) { |
|
|
|
|
|
Public = other.Public; |
|
|
|
|
|
} |
|
|
|
|
|
_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 8: { |
|
|
|
|
|
Public = input.ReadBool(); |
|
|
|
|
|
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 8: { |
|
|
|
|
|
Public = input.ReadBool(); |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public sealed partial class Null : pb::IMessage<Null> |
|
|
public sealed partial class Null : pb::IMessage<Null> |
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
, pb::IBufferMessage |
|
|
, pb::IBufferMessage |
|
|
@ -417,7 +594,7 @@ namespace Game { |
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
public static pbr::MessageDescriptor Descriptor { |
|
|
public static pbr::MessageDescriptor Descriptor { |
|
|
get { return global::Game.GameReflection.Descriptor.MessageTypes[2]; } |
|
|
get { return global::Game.GameReflection.Descriptor.MessageTypes[3]; } |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
@ -553,7 +730,7 @@ namespace Game { |
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
public static pbr::MessageDescriptor Descriptor { |
|
|
public static pbr::MessageDescriptor Descriptor { |
|
|
get { return global::Game.GameReflection.Descriptor.MessageTypes[3]; } |
|
|
get { return global::Game.GameReflection.Descriptor.MessageTypes[4]; } |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
@ -582,9 +759,9 @@ namespace Game { |
|
|
|
|
|
|
|
|
/// <summary>Field number for the "gameId" field.</summary>
|
|
|
/// <summary>Field number for the "gameId" field.</summary>
|
|
|
public const int GameIdFieldNumber = 1; |
|
|
public const int GameIdFieldNumber = 1; |
|
|
private ulong gameId_; |
|
|
private uint gameId_; |
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
public ulong GameId { |
|
|
public uint GameId { |
|
|
get { return gameId_; } |
|
|
get { return gameId_; } |
|
|
set { |
|
|
set { |
|
|
gameId_ = value; |
|
|
gameId_ = value; |
|
|
@ -623,7 +800,7 @@ namespace Game { |
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
public override int GetHashCode() { |
|
|
public override int GetHashCode() { |
|
|
int hash = 1; |
|
|
int hash = 1; |
|
|
if (GameId != 0UL) hash ^= GameId.GetHashCode(); |
|
|
if (GameId != 0) hash ^= GameId.GetHashCode(); |
|
|
if (CardId.Length != 0) hash ^= CardId.GetHashCode(); |
|
|
if (CardId.Length != 0) hash ^= CardId.GetHashCode(); |
|
|
if (_unknownFields != null) { |
|
|
if (_unknownFields != null) { |
|
|
hash ^= _unknownFields.GetHashCode(); |
|
|
hash ^= _unknownFields.GetHashCode(); |
|
|
@ -641,9 +818,9 @@ namespace Game { |
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
output.WriteRawMessage(this); |
|
|
output.WriteRawMessage(this); |
|
|
#else
|
|
|
#else
|
|
|
if (GameId != 0UL) { |
|
|
if (GameId != 0) { |
|
|
output.WriteRawTag(8); |
|
|
output.WriteRawTag(8); |
|
|
output.WriteUInt64(GameId); |
|
|
output.WriteUInt32(GameId); |
|
|
} |
|
|
} |
|
|
if (CardId.Length != 0) { |
|
|
if (CardId.Length != 0) { |
|
|
output.WriteRawTag(18); |
|
|
output.WriteRawTag(18); |
|
|
@ -658,9 +835,9 @@ namespace Game { |
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
|
|
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
|
|
if (GameId != 0UL) { |
|
|
if (GameId != 0) { |
|
|
output.WriteRawTag(8); |
|
|
output.WriteRawTag(8); |
|
|
output.WriteUInt64(GameId); |
|
|
output.WriteUInt32(GameId); |
|
|
} |
|
|
} |
|
|
if (CardId.Length != 0) { |
|
|
if (CardId.Length != 0) { |
|
|
output.WriteRawTag(18); |
|
|
output.WriteRawTag(18); |
|
|
@ -675,8 +852,8 @@ namespace Game { |
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
public int CalculateSize() { |
|
|
public int CalculateSize() { |
|
|
int size = 0; |
|
|
int size = 0; |
|
|
if (GameId != 0UL) { |
|
|
if (GameId != 0) { |
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(GameId); |
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GameId); |
|
|
} |
|
|
} |
|
|
if (CardId.Length != 0) { |
|
|
if (CardId.Length != 0) { |
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(CardId); |
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(CardId); |
|
|
@ -692,7 +869,7 @@ namespace Game { |
|
|
if (other == null) { |
|
|
if (other == null) { |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
if (other.GameId != 0UL) { |
|
|
if (other.GameId != 0) { |
|
|
GameId = other.GameId; |
|
|
GameId = other.GameId; |
|
|
} |
|
|
} |
|
|
if (other.CardId.Length != 0) { |
|
|
if (other.CardId.Length != 0) { |
|
|
@ -713,7 +890,7 @@ namespace Game { |
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
|
|
break; |
|
|
break; |
|
|
case 8: { |
|
|
case 8: { |
|
|
GameId = input.ReadUInt64(); |
|
|
GameId = input.ReadUInt32(); |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
case 18: { |
|
|
case 18: { |
|
|
@ -735,7 +912,7 @@ namespace Game { |
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
|
|
break; |
|
|
break; |
|
|
case 8: { |
|
|
case 8: { |
|
|
GameId = input.ReadUInt64(); |
|
|
GameId = input.ReadUInt32(); |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
case 18: { |
|
|
case 18: { |
|
|
@ -761,7 +938,7 @@ namespace Game { |
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
public static pbr::MessageDescriptor Descriptor { |
|
|
public static pbr::MessageDescriptor Descriptor { |
|
|
get { return global::Game.GameReflection.Descriptor.MessageTypes[4]; } |
|
|
get { return global::Game.GameReflection.Descriptor.MessageTypes[5]; } |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
@ -933,7 +1110,7 @@ namespace Game { |
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
public static pbr::MessageDescriptor Descriptor { |
|
|
public static pbr::MessageDescriptor Descriptor { |
|
|
get { return global::Game.GameReflection.Descriptor.MessageTypes[5]; } |
|
|
get { return global::Game.GameReflection.Descriptor.MessageTypes[6]; } |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
@ -1105,7 +1282,7 @@ namespace Game { |
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
public static pbr::MessageDescriptor Descriptor { |
|
|
public static pbr::MessageDescriptor Descriptor { |
|
|
get { return global::Game.GameReflection.Descriptor.MessageTypes[6]; } |
|
|
get { return global::Game.GameReflection.Descriptor.MessageTypes[7]; } |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
@ -1168,9 +1345,9 @@ namespace Game { |
|
|
|
|
|
|
|
|
/// <summary>Field number for the "id" field.</summary>
|
|
|
/// <summary>Field number for the "id" field.</summary>
|
|
|
public const int IdFieldNumber = 4; |
|
|
public const int IdFieldNumber = 4; |
|
|
private ulong id_; |
|
|
private uint id_; |
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
public ulong Id { |
|
|
public uint Id { |
|
|
get { return id_; } |
|
|
get { return id_; } |
|
|
set { |
|
|
set { |
|
|
id_ = value; |
|
|
id_ = value; |
|
|
@ -1203,7 +1380,7 @@ namespace Game { |
|
|
if (Name.Length != 0) hash ^= Name.GetHashCode(); |
|
|
if (Name.Length != 0) hash ^= Name.GetHashCode(); |
|
|
if (Version.Length != 0) hash ^= Version.GetHashCode(); |
|
|
if (Version.Length != 0) hash ^= Version.GetHashCode(); |
|
|
hash ^= authors_.GetHashCode(); |
|
|
hash ^= authors_.GetHashCode(); |
|
|
if (Id != 0UL) hash ^= Id.GetHashCode(); |
|
|
if (Id != 0) hash ^= Id.GetHashCode(); |
|
|
if (_unknownFields != null) { |
|
|
if (_unknownFields != null) { |
|
|
hash ^= _unknownFields.GetHashCode(); |
|
|
hash ^= _unknownFields.GetHashCode(); |
|
|
} |
|
|
} |
|
|
@ -1229,9 +1406,9 @@ namespace Game { |
|
|
output.WriteString(Version); |
|
|
output.WriteString(Version); |
|
|
} |
|
|
} |
|
|
authors_.WriteTo(output, _repeated_authors_codec); |
|
|
authors_.WriteTo(output, _repeated_authors_codec); |
|
|
if (Id != 0UL) { |
|
|
if (Id != 0) { |
|
|
output.WriteRawTag(32); |
|
|
output.WriteRawTag(32); |
|
|
output.WriteUInt64(Id); |
|
|
output.WriteUInt32(Id); |
|
|
} |
|
|
} |
|
|
if (_unknownFields != null) { |
|
|
if (_unknownFields != null) { |
|
|
_unknownFields.WriteTo(output); |
|
|
_unknownFields.WriteTo(output); |
|
|
@ -1251,9 +1428,9 @@ namespace Game { |
|
|
output.WriteString(Version); |
|
|
output.WriteString(Version); |
|
|
} |
|
|
} |
|
|
authors_.WriteTo(ref output, _repeated_authors_codec); |
|
|
authors_.WriteTo(ref output, _repeated_authors_codec); |
|
|
if (Id != 0UL) { |
|
|
if (Id != 0) { |
|
|
output.WriteRawTag(32); |
|
|
output.WriteRawTag(32); |
|
|
output.WriteUInt64(Id); |
|
|
output.WriteUInt32(Id); |
|
|
} |
|
|
} |
|
|
if (_unknownFields != null) { |
|
|
if (_unknownFields != null) { |
|
|
_unknownFields.WriteTo(ref output); |
|
|
_unknownFields.WriteTo(ref output); |
|
|
@ -1271,8 +1448,8 @@ namespace Game { |
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); |
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); |
|
|
} |
|
|
} |
|
|
size += authors_.CalculateSize(_repeated_authors_codec); |
|
|
size += authors_.CalculateSize(_repeated_authors_codec); |
|
|
if (Id != 0UL) { |
|
|
if (Id != 0) { |
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Id); |
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); |
|
|
} |
|
|
} |
|
|
if (_unknownFields != null) { |
|
|
if (_unknownFields != null) { |
|
|
size += _unknownFields.CalculateSize(); |
|
|
size += _unknownFields.CalculateSize(); |
|
|
@ -1292,7 +1469,7 @@ namespace Game { |
|
|
Version = other.Version; |
|
|
Version = other.Version; |
|
|
} |
|
|
} |
|
|
authors_.Add(other.authors_); |
|
|
authors_.Add(other.authors_); |
|
|
if (other.Id != 0UL) { |
|
|
if (other.Id != 0) { |
|
|
Id = other.Id; |
|
|
Id = other.Id; |
|
|
} |
|
|
} |
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
|
|
@ -1322,7 +1499,7 @@ namespace Game { |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
case 32: { |
|
|
case 32: { |
|
|
Id = input.ReadUInt64(); |
|
|
Id = input.ReadUInt32(); |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -1352,7 +1529,7 @@ namespace Game { |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
case 32: { |
|
|
case 32: { |
|
|
Id = input.ReadUInt64(); |
|
|
Id = input.ReadUInt32(); |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -1374,7 +1551,7 @@ namespace Game { |
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
public static pbr::MessageDescriptor Descriptor { |
|
|
public static pbr::MessageDescriptor Descriptor { |
|
|
get { return global::Game.GameReflection.Descriptor.MessageTypes[7]; } |
|
|
get { return global::Game.GameReflection.Descriptor.MessageTypes[8]; } |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
@ -1546,7 +1723,7 @@ namespace Game { |
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
public static pbr::MessageDescriptor Descriptor { |
|
|
public static pbr::MessageDescriptor Descriptor { |
|
|
get { return global::Game.GameReflection.Descriptor.MessageTypes[8]; } |
|
|
get { return global::Game.GameReflection.Descriptor.MessageTypes[9]; } |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
@ -1768,7 +1945,7 @@ namespace Game { |
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
public static pbr::MessageDescriptor Descriptor { |
|
|
public static pbr::MessageDescriptor Descriptor { |
|
|
get { return global::Game.GameReflection.Descriptor.MessageTypes[9]; } |
|
|
get { return global::Game.GameReflection.Descriptor.MessageTypes[10]; } |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
@ -1808,9 +1985,9 @@ namespace Game { |
|
|
|
|
|
|
|
|
/// <summary>Field number for the "id" field.</summary>
|
|
|
/// <summary>Field number for the "id" field.</summary>
|
|
|
public const int IdFieldNumber = 2; |
|
|
public const int IdFieldNumber = 2; |
|
|
private ulong id_; |
|
|
private uint id_; |
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
public ulong Id { |
|
|
public uint Id { |
|
|
get { return id_; } |
|
|
get { return id_; } |
|
|
set { |
|
|
set { |
|
|
id_ = value; |
|
|
id_ = value; |
|
|
@ -1839,7 +2016,7 @@ namespace Game { |
|
|
public override int GetHashCode() { |
|
|
public override int GetHashCode() { |
|
|
int hash = 1; |
|
|
int hash = 1; |
|
|
if (Name.Length != 0) hash ^= Name.GetHashCode(); |
|
|
if (Name.Length != 0) hash ^= Name.GetHashCode(); |
|
|
if (Id != 0UL) hash ^= Id.GetHashCode(); |
|
|
if (Id != 0) hash ^= Id.GetHashCode(); |
|
|
if (_unknownFields != null) { |
|
|
if (_unknownFields != null) { |
|
|
hash ^= _unknownFields.GetHashCode(); |
|
|
hash ^= _unknownFields.GetHashCode(); |
|
|
} |
|
|
} |
|
|
@ -1860,9 +2037,9 @@ namespace Game { |
|
|
output.WriteRawTag(10); |
|
|
output.WriteRawTag(10); |
|
|
output.WriteString(Name); |
|
|
output.WriteString(Name); |
|
|
} |
|
|
} |
|
|
if (Id != 0UL) { |
|
|
if (Id != 0) { |
|
|
output.WriteRawTag(16); |
|
|
output.WriteRawTag(16); |
|
|
output.WriteUInt64(Id); |
|
|
output.WriteUInt32(Id); |
|
|
} |
|
|
} |
|
|
if (_unknownFields != null) { |
|
|
if (_unknownFields != null) { |
|
|
_unknownFields.WriteTo(output); |
|
|
_unknownFields.WriteTo(output); |
|
|
@ -1877,9 +2054,9 @@ namespace Game { |
|
|
output.WriteRawTag(10); |
|
|
output.WriteRawTag(10); |
|
|
output.WriteString(Name); |
|
|
output.WriteString(Name); |
|
|
} |
|
|
} |
|
|
if (Id != 0UL) { |
|
|
if (Id != 0) { |
|
|
output.WriteRawTag(16); |
|
|
output.WriteRawTag(16); |
|
|
output.WriteUInt64(Id); |
|
|
output.WriteUInt32(Id); |
|
|
} |
|
|
} |
|
|
if (_unknownFields != null) { |
|
|
if (_unknownFields != null) { |
|
|
_unknownFields.WriteTo(ref output); |
|
|
_unknownFields.WriteTo(ref output); |
|
|
@ -1893,8 +2070,8 @@ namespace Game { |
|
|
if (Name.Length != 0) { |
|
|
if (Name.Length != 0) { |
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); |
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); |
|
|
} |
|
|
} |
|
|
if (Id != 0UL) { |
|
|
if (Id != 0) { |
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Id); |
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); |
|
|
} |
|
|
} |
|
|
if (_unknownFields != null) { |
|
|
if (_unknownFields != null) { |
|
|
size += _unknownFields.CalculateSize(); |
|
|
size += _unknownFields.CalculateSize(); |
|
|
@ -1910,7 +2087,7 @@ namespace Game { |
|
|
if (other.Name.Length != 0) { |
|
|
if (other.Name.Length != 0) { |
|
|
Name = other.Name; |
|
|
Name = other.Name; |
|
|
} |
|
|
} |
|
|
if (other.Id != 0UL) { |
|
|
if (other.Id != 0) { |
|
|
Id = other.Id; |
|
|
Id = other.Id; |
|
|
} |
|
|
} |
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
|
|
@ -1932,7 +2109,7 @@ namespace Game { |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
case 16: { |
|
|
case 16: { |
|
|
Id = input.ReadUInt64(); |
|
|
Id = input.ReadUInt32(); |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -1954,7 +2131,7 @@ namespace Game { |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
case 16: { |
|
|
case 16: { |
|
|
Id = input.ReadUInt64(); |
|
|
Id = input.ReadUInt32(); |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|