Explorar o código

userinfo 用户头像

caochunyang %!s(int64=3) %!d(string=hai) anos
pai
achega
38c422d6e2
Modificáronse 10 ficheiros con 0 adicións e 11366 borrados
  1. 0 687
      cs/Chat.cs
  2. 0 35
      cs/Close.cs
  3. 0 1371
      cs/Front.cs
  4. 0 805
      cs/Lobby.cs
  5. 0 2899
      cs/Party.cs
  6. 0 186
      cs/Result.cs
  7. 0 1222
      cs/Room.cs
  8. 0 2624
      cs/Sync.cs
  9. 0 1157
      cs/User.cs
  10. 0 380
      cs/Userinfo.cs

+ 0 - 687
cs/Chat.cs

@@ -1,687 +0,0 @@
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: chat.proto
-#pragma warning disable 1591, 0612, 3021
-#region Designer generated code
-
-using pb = global::Google.Protobuf;
-using pbc = global::Google.Protobuf.Collections;
-using pbr = global::Google.Protobuf.Reflection;
-using scg = global::System.Collections.Generic;
-namespace Protos {
-
-  /// <summary>Holder for reflection information generated from chat.proto</summary>
-  public static partial class ChatReflection {
-
-    #region Descriptor
-    /// <summary>File descriptor for chat.proto</summary>
-    public static pbr::FileDescriptor Descriptor {
-      get { return descriptor; }
-    }
-    private static pbr::FileDescriptor descriptor;
-
-    static ChatReflection() {
-      byte[] descriptorData = global::System.Convert.FromBase64String(
-          string.Concat(
-            "CgpjaGF0LnByb3RvEgZwcm90b3MaDnVzZXJpbmZvLnByb3RvGgxyZXN1bHQu",
-            "cHJvdG8iNwoKQ2hhdE5vdGlmeRIMCgRUeXBlGAEgASgNEg4KBlRhcmdldBgC",
-            "IAEoBBILCgNNc2cYAyABKAkiVwoIQ2hhdFB1c2gSDAoEVHlwZRgBIAEoDRIO",
-            "CgZUYXJnZXQYAiABKAQSCwoDTXNnGAMgASgJEiAKBlNlbmRlchgEIAEoCzIQ",
-            "LnByb3Rvcy5Vc2VySW5mbyIlChJTd2l0Y2hXb3JsZFJlcXVlc3QSDwoHV29y",
-            "bGRJRBgBIAEoDSI1ChNTd2l0Y2hXb3JsZFJlc3BvbnNlEh4KBlJlc3VsdBgB",
-            "IAEoCzIOLnByb3Rvcy5SZXN1bHRiBnByb3RvMw=="));
-      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
-          new pbr::FileDescriptor[] { global::Protos.UserinfoReflection.Descriptor, global::Protos.ResultReflection.Descriptor, },
-          new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
-            new pbr::GeneratedClrTypeInfo(typeof(global::Protos.ChatNotify), global::Protos.ChatNotify.Parser, new[]{ "Type", "Target", "Msg" }, null, null, null),
-            new pbr::GeneratedClrTypeInfo(typeof(global::Protos.ChatPush), global::Protos.ChatPush.Parser, new[]{ "Type", "Target", "Msg", "Sender" }, null, null, null),
-            new pbr::GeneratedClrTypeInfo(typeof(global::Protos.SwitchWorldRequest), global::Protos.SwitchWorldRequest.Parser, new[]{ "WorldID" }, null, null, null),
-            new pbr::GeneratedClrTypeInfo(typeof(global::Protos.SwitchWorldResponse), global::Protos.SwitchWorldResponse.Parser, new[]{ "Result" }, null, null, null)
-          }));
-    }
-    #endregion
-
-  }
-  #region Messages
-  public sealed partial class ChatNotify : pb::IMessage<ChatNotify> {
-    private static readonly pb::MessageParser<ChatNotify> _parser = new pb::MessageParser<ChatNotify>(() => new ChatNotify());
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public static pb::MessageParser<ChatNotify> Parser { get { return _parser; } }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public static pbr::MessageDescriptor Descriptor {
-      get { return global::Protos.ChatReflection.Descriptor.MessageTypes[0]; }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    pbr::MessageDescriptor pb::IMessage.Descriptor {
-      get { return Descriptor; }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public ChatNotify() {
-      OnConstruction();
-    }
-
-    partial void OnConstruction();
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public ChatNotify(ChatNotify other) : this() {
-      type_ = other.type_;
-      target_ = other.target_;
-      msg_ = other.msg_;
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public ChatNotify Clone() {
-      return new ChatNotify(this);
-    }
-
-    /// <summary>Field number for the "Type" field.</summary>
-    public const int TypeFieldNumber = 1;
-    private uint type_;
-    /// <summary>
-    /// 0=世界;1=大厅;2=队伍;3=派对;4=好友(私聊)
-    /// </summary>
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public uint Type {
-      get { return type_; }
-      set {
-        type_ = value;
-      }
-    }
-
-    /// <summary>Field number for the "Target" field.</summary>
-    public const int TargetFieldNumber = 2;
-    private ulong target_;
-    /// <summary>
-    /// 对象id, 对应Type字段的世界id,roomid partyid, 好友id
-    /// </summary>
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public ulong Target {
-      get { return target_; }
-      set {
-        target_ = value;
-      }
-    }
-
-    /// <summary>Field number for the "Msg" field.</summary>
-    public const int MsgFieldNumber = 3;
-    private string msg_ = "";
-    /// <summary>
-    /// 消息正文, 客户端自行编码解码
-    /// </summary>
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public string Msg {
-      get { return msg_; }
-      set {
-        msg_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
-      }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public override bool Equals(object other) {
-      return Equals(other as ChatNotify);
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public bool Equals(ChatNotify other) {
-      if (ReferenceEquals(other, null)) {
-        return false;
-      }
-      if (ReferenceEquals(other, this)) {
-        return true;
-      }
-      if (Type != other.Type) return false;
-      if (Target != other.Target) return false;
-      if (Msg != other.Msg) return false;
-      return true;
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public override int GetHashCode() {
-      int hash = 1;
-      if (Type != 0) hash ^= Type.GetHashCode();
-      if (Target != 0UL) hash ^= Target.GetHashCode();
-      if (Msg.Length != 0) hash ^= Msg.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 (Type != 0) {
-        output.WriteRawTag(8);
-        output.WriteUInt32(Type);
-      }
-      if (Target != 0UL) {
-        output.WriteRawTag(16);
-        output.WriteUInt64(Target);
-      }
-      if (Msg.Length != 0) {
-        output.WriteRawTag(26);
-        output.WriteString(Msg);
-      }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public int CalculateSize() {
-      int size = 0;
-      if (Type != 0) {
-        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Type);
-      }
-      if (Target != 0UL) {
-        size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Target);
-      }
-      if (Msg.Length != 0) {
-        size += 1 + pb::CodedOutputStream.ComputeStringSize(Msg);
-      }
-      return size;
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public void MergeFrom(ChatNotify other) {
-      if (other == null) {
-        return;
-      }
-      if (other.Type != 0) {
-        Type = other.Type;
-      }
-      if (other.Target != 0UL) {
-        Target = other.Target;
-      }
-      if (other.Msg.Length != 0) {
-        Msg = other.Msg;
-      }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public void MergeFrom(pb::CodedInputStream input) {
-      uint tag;
-      while ((tag = input.ReadTag()) != 0) {
-        switch(tag) {
-          default:
-            input.SkipLastField();
-            break;
-          case 8: {
-            Type = input.ReadUInt32();
-            break;
-          }
-          case 16: {
-            Target = input.ReadUInt64();
-            break;
-          }
-          case 26: {
-            Msg = input.ReadString();
-            break;
-          }
-        }
-      }
-    }
-
-  }
-
-  public sealed partial class ChatPush : pb::IMessage<ChatPush> {
-    private static readonly pb::MessageParser<ChatPush> _parser = new pb::MessageParser<ChatPush>(() => new ChatPush());
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public static pb::MessageParser<ChatPush> Parser { get { return _parser; } }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public static pbr::MessageDescriptor Descriptor {
-      get { return global::Protos.ChatReflection.Descriptor.MessageTypes[1]; }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    pbr::MessageDescriptor pb::IMessage.Descriptor {
-      get { return Descriptor; }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public ChatPush() {
-      OnConstruction();
-    }
-
-    partial void OnConstruction();
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public ChatPush(ChatPush other) : this() {
-      type_ = other.type_;
-      target_ = other.target_;
-      msg_ = other.msg_;
-      Sender = other.sender_ != null ? other.Sender.Clone() : null;
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public ChatPush Clone() {
-      return new ChatPush(this);
-    }
-
-    /// <summary>Field number for the "Type" field.</summary>
-    public const int TypeFieldNumber = 1;
-    private uint type_;
-    /// <summary>
-    /// 0=世界;1=大厅;2=队伍;3=派对;4=好友(私聊)
-    /// </summary>
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public uint Type {
-      get { return type_; }
-      set {
-        type_ = value;
-      }
-    }
-
-    /// <summary>Field number for the "Target" field.</summary>
-    public const int TargetFieldNumber = 2;
-    private ulong target_;
-    /// <summary>
-    /// 对象id, 对应Type字段的世界id,roomid partyid, 好友id
-    /// </summary>
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public ulong Target {
-      get { return target_; }
-      set {
-        target_ = value;
-      }
-    }
-
-    /// <summary>Field number for the "Msg" field.</summary>
-    public const int MsgFieldNumber = 3;
-    private string msg_ = "";
-    /// <summary>
-    /// 消息正文, 客户端自行编码解码
-    /// </summary>
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public string Msg {
-      get { return msg_; }
-      set {
-        msg_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
-      }
-    }
-
-    /// <summary>Field number for the "Sender" field.</summary>
-    public const int SenderFieldNumber = 4;
-    private global::Protos.UserInfo sender_;
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public global::Protos.UserInfo Sender {
-      get { return sender_; }
-      set {
-        sender_ = value;
-      }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public override bool Equals(object other) {
-      return Equals(other as ChatPush);
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public bool Equals(ChatPush other) {
-      if (ReferenceEquals(other, null)) {
-        return false;
-      }
-      if (ReferenceEquals(other, this)) {
-        return true;
-      }
-      if (Type != other.Type) return false;
-      if (Target != other.Target) return false;
-      if (Msg != other.Msg) return false;
-      if (!object.Equals(Sender, other.Sender)) return false;
-      return true;
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public override int GetHashCode() {
-      int hash = 1;
-      if (Type != 0) hash ^= Type.GetHashCode();
-      if (Target != 0UL) hash ^= Target.GetHashCode();
-      if (Msg.Length != 0) hash ^= Msg.GetHashCode();
-      if (sender_ != null) hash ^= Sender.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 (Type != 0) {
-        output.WriteRawTag(8);
-        output.WriteUInt32(Type);
-      }
-      if (Target != 0UL) {
-        output.WriteRawTag(16);
-        output.WriteUInt64(Target);
-      }
-      if (Msg.Length != 0) {
-        output.WriteRawTag(26);
-        output.WriteString(Msg);
-      }
-      if (sender_ != null) {
-        output.WriteRawTag(34);
-        output.WriteMessage(Sender);
-      }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public int CalculateSize() {
-      int size = 0;
-      if (Type != 0) {
-        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Type);
-      }
-      if (Target != 0UL) {
-        size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Target);
-      }
-      if (Msg.Length != 0) {
-        size += 1 + pb::CodedOutputStream.ComputeStringSize(Msg);
-      }
-      if (sender_ != null) {
-        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sender);
-      }
-      return size;
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public void MergeFrom(ChatPush other) {
-      if (other == null) {
-        return;
-      }
-      if (other.Type != 0) {
-        Type = other.Type;
-      }
-      if (other.Target != 0UL) {
-        Target = other.Target;
-      }
-      if (other.Msg.Length != 0) {
-        Msg = other.Msg;
-      }
-      if (other.sender_ != null) {
-        if (sender_ == null) {
-          sender_ = new global::Protos.UserInfo();
-        }
-        Sender.MergeFrom(other.Sender);
-      }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public void MergeFrom(pb::CodedInputStream input) {
-      uint tag;
-      while ((tag = input.ReadTag()) != 0) {
-        switch(tag) {
-          default:
-            input.SkipLastField();
-            break;
-          case 8: {
-            Type = input.ReadUInt32();
-            break;
-          }
-          case 16: {
-            Target = input.ReadUInt64();
-            break;
-          }
-          case 26: {
-            Msg = input.ReadString();
-            break;
-          }
-          case 34: {
-            if (sender_ == null) {
-              sender_ = new global::Protos.UserInfo();
-            }
-            input.ReadMessage(sender_);
-            break;
-          }
-        }
-      }
-    }
-
-  }
-
-  public sealed partial class SwitchWorldRequest : pb::IMessage<SwitchWorldRequest> {
-    private static readonly pb::MessageParser<SwitchWorldRequest> _parser = new pb::MessageParser<SwitchWorldRequest>(() => new SwitchWorldRequest());
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public static pb::MessageParser<SwitchWorldRequest> Parser { get { return _parser; } }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public static pbr::MessageDescriptor Descriptor {
-      get { return global::Protos.ChatReflection.Descriptor.MessageTypes[2]; }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    pbr::MessageDescriptor pb::IMessage.Descriptor {
-      get { return Descriptor; }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public SwitchWorldRequest() {
-      OnConstruction();
-    }
-
-    partial void OnConstruction();
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public SwitchWorldRequest(SwitchWorldRequest other) : this() {
-      worldID_ = other.worldID_;
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public SwitchWorldRequest Clone() {
-      return new SwitchWorldRequest(this);
-    }
-
-    /// <summary>Field number for the "WorldID" field.</summary>
-    public const int WorldIDFieldNumber = 1;
-    private uint worldID_;
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public uint WorldID {
-      get { return worldID_; }
-      set {
-        worldID_ = value;
-      }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public override bool Equals(object other) {
-      return Equals(other as SwitchWorldRequest);
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public bool Equals(SwitchWorldRequest other) {
-      if (ReferenceEquals(other, null)) {
-        return false;
-      }
-      if (ReferenceEquals(other, this)) {
-        return true;
-      }
-      if (WorldID != other.WorldID) return false;
-      return true;
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public override int GetHashCode() {
-      int hash = 1;
-      if (WorldID != 0) hash ^= WorldID.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 (WorldID != 0) {
-        output.WriteRawTag(8);
-        output.WriteUInt32(WorldID);
-      }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public int CalculateSize() {
-      int size = 0;
-      if (WorldID != 0) {
-        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(WorldID);
-      }
-      return size;
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public void MergeFrom(SwitchWorldRequest other) {
-      if (other == null) {
-        return;
-      }
-      if (other.WorldID != 0) {
-        WorldID = other.WorldID;
-      }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public void MergeFrom(pb::CodedInputStream input) {
-      uint tag;
-      while ((tag = input.ReadTag()) != 0) {
-        switch(tag) {
-          default:
-            input.SkipLastField();
-            break;
-          case 8: {
-            WorldID = input.ReadUInt32();
-            break;
-          }
-        }
-      }
-    }
-
-  }
-
-  public sealed partial class SwitchWorldResponse : pb::IMessage<SwitchWorldResponse> {
-    private static readonly pb::MessageParser<SwitchWorldResponse> _parser = new pb::MessageParser<SwitchWorldResponse>(() => new SwitchWorldResponse());
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public static pb::MessageParser<SwitchWorldResponse> Parser { get { return _parser; } }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public static pbr::MessageDescriptor Descriptor {
-      get { return global::Protos.ChatReflection.Descriptor.MessageTypes[3]; }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    pbr::MessageDescriptor pb::IMessage.Descriptor {
-      get { return Descriptor; }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public SwitchWorldResponse() {
-      OnConstruction();
-    }
-
-    partial void OnConstruction();
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public SwitchWorldResponse(SwitchWorldResponse other) : this() {
-      Result = other.result_ != null ? other.Result.Clone() : null;
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public SwitchWorldResponse Clone() {
-      return new SwitchWorldResponse(this);
-    }
-
-    /// <summary>Field number for the "Result" field.</summary>
-    public const int ResultFieldNumber = 1;
-    private global::Protos.Result result_;
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public global::Protos.Result Result {
-      get { return result_; }
-      set {
-        result_ = value;
-      }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public override bool Equals(object other) {
-      return Equals(other as SwitchWorldResponse);
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public bool Equals(SwitchWorldResponse other) {
-      if (ReferenceEquals(other, null)) {
-        return false;
-      }
-      if (ReferenceEquals(other, this)) {
-        return true;
-      }
-      if (!object.Equals(Result, other.Result)) return false;
-      return true;
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public override int GetHashCode() {
-      int hash = 1;
-      if (result_ != null) hash ^= Result.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 (result_ != null) {
-        output.WriteRawTag(10);
-        output.WriteMessage(Result);
-      }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public int CalculateSize() {
-      int size = 0;
-      if (result_ != null) {
-        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Result);
-      }
-      return size;
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public void MergeFrom(SwitchWorldResponse other) {
-      if (other == null) {
-        return;
-      }
-      if (other.result_ != null) {
-        if (result_ == null) {
-          result_ = new global::Protos.Result();
-        }
-        Result.MergeFrom(other.Result);
-      }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public void MergeFrom(pb::CodedInputStream input) {
-      uint tag;
-      while ((tag = input.ReadTag()) != 0) {
-        switch(tag) {
-          default:
-            input.SkipLastField();
-            break;
-          case 10: {
-            if (result_ == null) {
-              result_ = new global::Protos.Result();
-            }
-            input.ReadMessage(result_);
-            break;
-          }
-        }
-      }
-    }
-
-  }
-
-  #endregion
-
-}
-
-#endregion Designer generated code

+ 0 - 35
cs/Close.cs

@@ -1,35 +0,0 @@
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: close.proto
-#pragma warning disable 1591, 0612, 3021
-#region Designer generated code
-
-using pb = global::Google.Protobuf;
-using pbc = global::Google.Protobuf.Collections;
-using pbr = global::Google.Protobuf.Reflection;
-using scg = global::System.Collections.Generic;
-namespace Protos {
-
-  /// <summary>Holder for reflection information generated from close.proto</summary>
-  public static partial class CloseReflection {
-
-    #region Descriptor
-    /// <summary>File descriptor for close.proto</summary>
-    public static pbr::FileDescriptor Descriptor {
-      get { return descriptor; }
-    }
-    private static pbr::FileDescriptor descriptor;
-
-    static CloseReflection() {
-      byte[] descriptorData = global::System.Convert.FromBase64String(
-          string.Concat(
-            "CgtjbG9zZS5wcm90bxIGcHJvdG9zYgZwcm90bzM="));
-      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
-          new pbr::FileDescriptor[] { },
-          new pbr::GeneratedClrTypeInfo(null, null));
-    }
-    #endregion
-
-  }
-}
-
-#endregion Designer generated code

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 1371
cs/Front.cs


+ 0 - 805
cs/Lobby.cs

@@ -1,805 +0,0 @@
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: lobby.proto
-#pragma warning disable 1591, 0612, 3021
-#region Designer generated code
-
-using pb = global::Google.Protobuf;
-using pbc = global::Google.Protobuf.Collections;
-using pbr = global::Google.Protobuf.Reflection;
-using scg = global::System.Collections.Generic;
-namespace Protos {
-
-  /// <summary>Holder for reflection information generated from lobby.proto</summary>
-  public static partial class LobbyReflection {
-
-    #region Descriptor
-    /// <summary>File descriptor for lobby.proto</summary>
-    public static pbr::FileDescriptor Descriptor {
-      get { return descriptor; }
-    }
-    private static pbr::FileDescriptor descriptor;
-
-    static LobbyReflection() {
-      byte[] descriptorData = global::System.Convert.FromBase64String(
-          string.Concat(
-            "Cgtsb2JieS5wcm90bxIGcHJvdG9zGg51c2VyaW5mby5wcm90bxoMcmVzdWx0",
-            "LnByb3RvIjMKDUxvYmJ5Sm9pblB1c2gSIgoIVXNlckluZm8YASABKAsyEC5w",
-            "cm90b3MuVXNlckluZm8iIAoOTG9iYnlMZWF2ZVB1c2gSDgoGVXNlcklEGAEg",
-            "ASgNIhYKFExvYmJ5VXNlckxpc3RSZXF1ZXN0IlgKFUxvYmJ5VXNlckxpc3RS",
-            "ZXNwb25zZRIeCgZSZXN1bHQYASABKAsyDi5wcm90b3MuUmVzdWx0Eh8KBVVz",
-            "ZXJzGAIgAygLMhAucHJvdG9zLlVzZXJJbmZvIiUKE0xvYmJ5R2V0VXNlclJl",
-            "cXVlc3QSDgoGVXNlcklEGAEgASgNIlYKFExvYmJ5R2V0VXNlclJlc3BvbnNl",
-            "Eh4KBlJlc3VsdBgBIAEoCzIOLnByb3Rvcy5SZXN1bHQSHgoEVXNlchgCIAEo",
-            "CzIQLnByb3Rvcy5Vc2VySW5mb2IGcHJvdG8z"));
-      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
-          new pbr::FileDescriptor[] { global::Protos.UserinfoReflection.Descriptor, global::Protos.ResultReflection.Descriptor, },
-          new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
-            new pbr::GeneratedClrTypeInfo(typeof(global::Protos.LobbyJoinPush), global::Protos.LobbyJoinPush.Parser, new[]{ "UserInfo" }, null, null, null),
-            new pbr::GeneratedClrTypeInfo(typeof(global::Protos.LobbyLeavePush), global::Protos.LobbyLeavePush.Parser, new[]{ "UserID" }, null, null, null),
-            new pbr::GeneratedClrTypeInfo(typeof(global::Protos.LobbyUserListRequest), global::Protos.LobbyUserListRequest.Parser, null, null, null, null),
-            new pbr::GeneratedClrTypeInfo(typeof(global::Protos.LobbyUserListResponse), global::Protos.LobbyUserListResponse.Parser, new[]{ "Result", "Users" }, null, null, null),
-            new pbr::GeneratedClrTypeInfo(typeof(global::Protos.LobbyGetUserRequest), global::Protos.LobbyGetUserRequest.Parser, new[]{ "UserID" }, null, null, null),
-            new pbr::GeneratedClrTypeInfo(typeof(global::Protos.LobbyGetUserResponse), global::Protos.LobbyGetUserResponse.Parser, new[]{ "Result", "User" }, null, null, null)
-          }));
-    }
-    #endregion
-
-  }
-  #region Messages
-  /// <summary>
-  /// 用户加入大厅
-  /// </summary>
-  public sealed partial class LobbyJoinPush : pb::IMessage<LobbyJoinPush> {
-    private static readonly pb::MessageParser<LobbyJoinPush> _parser = new pb::MessageParser<LobbyJoinPush>(() => new LobbyJoinPush());
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public static pb::MessageParser<LobbyJoinPush> Parser { get { return _parser; } }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public static pbr::MessageDescriptor Descriptor {
-      get { return global::Protos.LobbyReflection.Descriptor.MessageTypes[0]; }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    pbr::MessageDescriptor pb::IMessage.Descriptor {
-      get { return Descriptor; }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public LobbyJoinPush() {
-      OnConstruction();
-    }
-
-    partial void OnConstruction();
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public LobbyJoinPush(LobbyJoinPush other) : this() {
-      UserInfo = other.userInfo_ != null ? other.UserInfo.Clone() : null;
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public LobbyJoinPush Clone() {
-      return new LobbyJoinPush(this);
-    }
-
-    /// <summary>Field number for the "UserInfo" field.</summary>
-    public const int UserInfoFieldNumber = 1;
-    private global::Protos.UserInfo userInfo_;
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public global::Protos.UserInfo UserInfo {
-      get { return userInfo_; }
-      set {
-        userInfo_ = value;
-      }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public override bool Equals(object other) {
-      return Equals(other as LobbyJoinPush);
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public bool Equals(LobbyJoinPush other) {
-      if (ReferenceEquals(other, null)) {
-        return false;
-      }
-      if (ReferenceEquals(other, this)) {
-        return true;
-      }
-      if (!object.Equals(UserInfo, other.UserInfo)) return false;
-      return true;
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public override int GetHashCode() {
-      int hash = 1;
-      if (userInfo_ != null) hash ^= UserInfo.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 (userInfo_ != null) {
-        output.WriteRawTag(10);
-        output.WriteMessage(UserInfo);
-      }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public int CalculateSize() {
-      int size = 0;
-      if (userInfo_ != null) {
-        size += 1 + pb::CodedOutputStream.ComputeMessageSize(UserInfo);
-      }
-      return size;
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public void MergeFrom(LobbyJoinPush other) {
-      if (other == null) {
-        return;
-      }
-      if (other.userInfo_ != null) {
-        if (userInfo_ == null) {
-          userInfo_ = new global::Protos.UserInfo();
-        }
-        UserInfo.MergeFrom(other.UserInfo);
-      }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public void MergeFrom(pb::CodedInputStream input) {
-      uint tag;
-      while ((tag = input.ReadTag()) != 0) {
-        switch(tag) {
-          default:
-            input.SkipLastField();
-            break;
-          case 10: {
-            if (userInfo_ == null) {
-              userInfo_ = new global::Protos.UserInfo();
-            }
-            input.ReadMessage(userInfo_);
-            break;
-          }
-        }
-      }
-    }
-
-  }
-
-  /// <summary>
-  /// 用户离开大厅
-  /// </summary>
-  public sealed partial class LobbyLeavePush : pb::IMessage<LobbyLeavePush> {
-    private static readonly pb::MessageParser<LobbyLeavePush> _parser = new pb::MessageParser<LobbyLeavePush>(() => new LobbyLeavePush());
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public static pb::MessageParser<LobbyLeavePush> Parser { get { return _parser; } }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public static pbr::MessageDescriptor Descriptor {
-      get { return global::Protos.LobbyReflection.Descriptor.MessageTypes[1]; }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    pbr::MessageDescriptor pb::IMessage.Descriptor {
-      get { return Descriptor; }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public LobbyLeavePush() {
-      OnConstruction();
-    }
-
-    partial void OnConstruction();
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public LobbyLeavePush(LobbyLeavePush other) : this() {
-      userID_ = other.userID_;
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public LobbyLeavePush Clone() {
-      return new LobbyLeavePush(this);
-    }
-
-    /// <summary>Field number for the "UserID" field.</summary>
-    public const int UserIDFieldNumber = 1;
-    private uint userID_;
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public uint UserID {
-      get { return userID_; }
-      set {
-        userID_ = value;
-      }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public override bool Equals(object other) {
-      return Equals(other as LobbyLeavePush);
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public bool Equals(LobbyLeavePush other) {
-      if (ReferenceEquals(other, null)) {
-        return false;
-      }
-      if (ReferenceEquals(other, this)) {
-        return true;
-      }
-      if (UserID != other.UserID) return false;
-      return true;
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public override int GetHashCode() {
-      int hash = 1;
-      if (UserID != 0) hash ^= UserID.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 (UserID != 0) {
-        output.WriteRawTag(8);
-        output.WriteUInt32(UserID);
-      }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public int CalculateSize() {
-      int size = 0;
-      if (UserID != 0) {
-        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UserID);
-      }
-      return size;
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public void MergeFrom(LobbyLeavePush other) {
-      if (other == null) {
-        return;
-      }
-      if (other.UserID != 0) {
-        UserID = other.UserID;
-      }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public void MergeFrom(pb::CodedInputStream input) {
-      uint tag;
-      while ((tag = input.ReadTag()) != 0) {
-        switch(tag) {
-          default:
-            input.SkipLastField();
-            break;
-          case 8: {
-            UserID = input.ReadUInt32();
-            break;
-          }
-        }
-      }
-    }
-
-  }
-
-  public sealed partial class LobbyUserListRequest : pb::IMessage<LobbyUserListRequest> {
-    private static readonly pb::MessageParser<LobbyUserListRequest> _parser = new pb::MessageParser<LobbyUserListRequest>(() => new LobbyUserListRequest());
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public static pb::MessageParser<LobbyUserListRequest> Parser { get { return _parser; } }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public static pbr::MessageDescriptor Descriptor {
-      get { return global::Protos.LobbyReflection.Descriptor.MessageTypes[2]; }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    pbr::MessageDescriptor pb::IMessage.Descriptor {
-      get { return Descriptor; }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public LobbyUserListRequest() {
-      OnConstruction();
-    }
-
-    partial void OnConstruction();
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public LobbyUserListRequest(LobbyUserListRequest other) : this() {
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public LobbyUserListRequest Clone() {
-      return new LobbyUserListRequest(this);
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public override bool Equals(object other) {
-      return Equals(other as LobbyUserListRequest);
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public bool Equals(LobbyUserListRequest other) {
-      if (ReferenceEquals(other, null)) {
-        return false;
-      }
-      if (ReferenceEquals(other, this)) {
-        return true;
-      }
-      return true;
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public override int GetHashCode() {
-      int hash = 1;
-      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) {
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public int CalculateSize() {
-      int size = 0;
-      return size;
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public void MergeFrom(LobbyUserListRequest other) {
-      if (other == null) {
-        return;
-      }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public void MergeFrom(pb::CodedInputStream input) {
-      uint tag;
-      while ((tag = input.ReadTag()) != 0) {
-        switch(tag) {
-          default:
-            input.SkipLastField();
-            break;
-        }
-      }
-    }
-
-  }
-
-  public sealed partial class LobbyUserListResponse : pb::IMessage<LobbyUserListResponse> {
-    private static readonly pb::MessageParser<LobbyUserListResponse> _parser = new pb::MessageParser<LobbyUserListResponse>(() => new LobbyUserListResponse());
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public static pb::MessageParser<LobbyUserListResponse> Parser { get { return _parser; } }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public static pbr::MessageDescriptor Descriptor {
-      get { return global::Protos.LobbyReflection.Descriptor.MessageTypes[3]; }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    pbr::MessageDescriptor pb::IMessage.Descriptor {
-      get { return Descriptor; }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public LobbyUserListResponse() {
-      OnConstruction();
-    }
-
-    partial void OnConstruction();
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public LobbyUserListResponse(LobbyUserListResponse other) : this() {
-      Result = other.result_ != null ? other.Result.Clone() : null;
-      users_ = other.users_.Clone();
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public LobbyUserListResponse Clone() {
-      return new LobbyUserListResponse(this);
-    }
-
-    /// <summary>Field number for the "Result" field.</summary>
-    public const int ResultFieldNumber = 1;
-    private global::Protos.Result result_;
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public global::Protos.Result Result {
-      get { return result_; }
-      set {
-        result_ = value;
-      }
-    }
-
-    /// <summary>Field number for the "Users" field.</summary>
-    public const int UsersFieldNumber = 2;
-    private static readonly pb::FieldCodec<global::Protos.UserInfo> _repeated_users_codec
-        = pb::FieldCodec.ForMessage(18, global::Protos.UserInfo.Parser);
-    private readonly pbc::RepeatedField<global::Protos.UserInfo> users_ = new pbc::RepeatedField<global::Protos.UserInfo>();
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public pbc::RepeatedField<global::Protos.UserInfo> Users {
-      get { return users_; }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public override bool Equals(object other) {
-      return Equals(other as LobbyUserListResponse);
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public bool Equals(LobbyUserListResponse other) {
-      if (ReferenceEquals(other, null)) {
-        return false;
-      }
-      if (ReferenceEquals(other, this)) {
-        return true;
-      }
-      if (!object.Equals(Result, other.Result)) return false;
-      if(!users_.Equals(other.users_)) return false;
-      return true;
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public override int GetHashCode() {
-      int hash = 1;
-      if (result_ != null) hash ^= Result.GetHashCode();
-      hash ^= users_.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 (result_ != null) {
-        output.WriteRawTag(10);
-        output.WriteMessage(Result);
-      }
-      users_.WriteTo(output, _repeated_users_codec);
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public int CalculateSize() {
-      int size = 0;
-      if (result_ != null) {
-        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Result);
-      }
-      size += users_.CalculateSize(_repeated_users_codec);
-      return size;
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public void MergeFrom(LobbyUserListResponse other) {
-      if (other == null) {
-        return;
-      }
-      if (other.result_ != null) {
-        if (result_ == null) {
-          result_ = new global::Protos.Result();
-        }
-        Result.MergeFrom(other.Result);
-      }
-      users_.Add(other.users_);
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public void MergeFrom(pb::CodedInputStream input) {
-      uint tag;
-      while ((tag = input.ReadTag()) != 0) {
-        switch(tag) {
-          default:
-            input.SkipLastField();
-            break;
-          case 10: {
-            if (result_ == null) {
-              result_ = new global::Protos.Result();
-            }
-            input.ReadMessage(result_);
-            break;
-          }
-          case 18: {
-            users_.AddEntriesFrom(input, _repeated_users_codec);
-            break;
-          }
-        }
-      }
-    }
-
-  }
-
-  public sealed partial class LobbyGetUserRequest : pb::IMessage<LobbyGetUserRequest> {
-    private static readonly pb::MessageParser<LobbyGetUserRequest> _parser = new pb::MessageParser<LobbyGetUserRequest>(() => new LobbyGetUserRequest());
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public static pb::MessageParser<LobbyGetUserRequest> Parser { get { return _parser; } }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public static pbr::MessageDescriptor Descriptor {
-      get { return global::Protos.LobbyReflection.Descriptor.MessageTypes[4]; }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    pbr::MessageDescriptor pb::IMessage.Descriptor {
-      get { return Descriptor; }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public LobbyGetUserRequest() {
-      OnConstruction();
-    }
-
-    partial void OnConstruction();
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public LobbyGetUserRequest(LobbyGetUserRequest other) : this() {
-      userID_ = other.userID_;
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public LobbyGetUserRequest Clone() {
-      return new LobbyGetUserRequest(this);
-    }
-
-    /// <summary>Field number for the "UserID" field.</summary>
-    public const int UserIDFieldNumber = 1;
-    private uint userID_;
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public uint UserID {
-      get { return userID_; }
-      set {
-        userID_ = value;
-      }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public override bool Equals(object other) {
-      return Equals(other as LobbyGetUserRequest);
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public bool Equals(LobbyGetUserRequest other) {
-      if (ReferenceEquals(other, null)) {
-        return false;
-      }
-      if (ReferenceEquals(other, this)) {
-        return true;
-      }
-      if (UserID != other.UserID) return false;
-      return true;
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public override int GetHashCode() {
-      int hash = 1;
-      if (UserID != 0) hash ^= UserID.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 (UserID != 0) {
-        output.WriteRawTag(8);
-        output.WriteUInt32(UserID);
-      }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public int CalculateSize() {
-      int size = 0;
-      if (UserID != 0) {
-        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UserID);
-      }
-      return size;
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public void MergeFrom(LobbyGetUserRequest other) {
-      if (other == null) {
-        return;
-      }
-      if (other.UserID != 0) {
-        UserID = other.UserID;
-      }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public void MergeFrom(pb::CodedInputStream input) {
-      uint tag;
-      while ((tag = input.ReadTag()) != 0) {
-        switch(tag) {
-          default:
-            input.SkipLastField();
-            break;
-          case 8: {
-            UserID = input.ReadUInt32();
-            break;
-          }
-        }
-      }
-    }
-
-  }
-
-  public sealed partial class LobbyGetUserResponse : pb::IMessage<LobbyGetUserResponse> {
-    private static readonly pb::MessageParser<LobbyGetUserResponse> _parser = new pb::MessageParser<LobbyGetUserResponse>(() => new LobbyGetUserResponse());
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public static pb::MessageParser<LobbyGetUserResponse> Parser { get { return _parser; } }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public static pbr::MessageDescriptor Descriptor {
-      get { return global::Protos.LobbyReflection.Descriptor.MessageTypes[5]; }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    pbr::MessageDescriptor pb::IMessage.Descriptor {
-      get { return Descriptor; }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public LobbyGetUserResponse() {
-      OnConstruction();
-    }
-
-    partial void OnConstruction();
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public LobbyGetUserResponse(LobbyGetUserResponse other) : this() {
-      Result = other.result_ != null ? other.Result.Clone() : null;
-      User = other.user_ != null ? other.User.Clone() : null;
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public LobbyGetUserResponse Clone() {
-      return new LobbyGetUserResponse(this);
-    }
-
-    /// <summary>Field number for the "Result" field.</summary>
-    public const int ResultFieldNumber = 1;
-    private global::Protos.Result result_;
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public global::Protos.Result Result {
-      get { return result_; }
-      set {
-        result_ = value;
-      }
-    }
-
-    /// <summary>Field number for the "User" field.</summary>
-    public const int UserFieldNumber = 2;
-    private global::Protos.UserInfo user_;
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public global::Protos.UserInfo User {
-      get { return user_; }
-      set {
-        user_ = value;
-      }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public override bool Equals(object other) {
-      return Equals(other as LobbyGetUserResponse);
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public bool Equals(LobbyGetUserResponse other) {
-      if (ReferenceEquals(other, null)) {
-        return false;
-      }
-      if (ReferenceEquals(other, this)) {
-        return true;
-      }
-      if (!object.Equals(Result, other.Result)) return false;
-      if (!object.Equals(User, other.User)) return false;
-      return true;
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public override int GetHashCode() {
-      int hash = 1;
-      if (result_ != null) hash ^= Result.GetHashCode();
-      if (user_ != null) hash ^= User.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 (result_ != null) {
-        output.WriteRawTag(10);
-        output.WriteMessage(Result);
-      }
-      if (user_ != null) {
-        output.WriteRawTag(18);
-        output.WriteMessage(User);
-      }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public int CalculateSize() {
-      int size = 0;
-      if (result_ != null) {
-        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Result);
-      }
-      if (user_ != null) {
-        size += 1 + pb::CodedOutputStream.ComputeMessageSize(User);
-      }
-      return size;
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public void MergeFrom(LobbyGetUserResponse other) {
-      if (other == null) {
-        return;
-      }
-      if (other.result_ != null) {
-        if (result_ == null) {
-          result_ = new global::Protos.Result();
-        }
-        Result.MergeFrom(other.Result);
-      }
-      if (other.user_ != null) {
-        if (user_ == null) {
-          user_ = new global::Protos.UserInfo();
-        }
-        User.MergeFrom(other.User);
-      }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public void MergeFrom(pb::CodedInputStream input) {
-      uint tag;
-      while ((tag = input.ReadTag()) != 0) {
-        switch(tag) {
-          default:
-            input.SkipLastField();
-            break;
-          case 10: {
-            if (result_ == null) {
-              result_ = new global::Protos.Result();
-            }
-            input.ReadMessage(result_);
-            break;
-          }
-          case 18: {
-            if (user_ == null) {
-              user_ = new global::Protos.UserInfo();
-            }
-            input.ReadMessage(user_);
-            break;
-          }
-        }
-      }
-    }
-
-  }
-
-  #endregion
-
-}
-
-#endregion Designer generated code

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 2899
cs/Party.cs


+ 0 - 186
cs/Result.cs

@@ -1,186 +0,0 @@
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: result.proto
-#pragma warning disable 1591, 0612, 3021
-#region Designer generated code
-
-using pb = global::Google.Protobuf;
-using pbc = global::Google.Protobuf.Collections;
-using pbr = global::Google.Protobuf.Reflection;
-using scg = global::System.Collections.Generic;
-namespace Protos {
-
-  /// <summary>Holder for reflection information generated from result.proto</summary>
-  public static partial class ResultReflection {
-
-    #region Descriptor
-    /// <summary>File descriptor for result.proto</summary>
-    public static pbr::FileDescriptor Descriptor {
-      get { return descriptor; }
-    }
-    private static pbr::FileDescriptor descriptor;
-
-    static ResultReflection() {
-      byte[] descriptorData = global::System.Convert.FromBase64String(
-          string.Concat(
-            "CgxyZXN1bHQucHJvdG8SBnByb3RvcyIjCgZSZXN1bHQSDAoEQ29kZRgBIAEo",
-            "BRILCgNNc2cYAiABKAliBnByb3RvMw=="));
-      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
-          new pbr::FileDescriptor[] { },
-          new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
-            new pbr::GeneratedClrTypeInfo(typeof(global::Protos.Result), global::Protos.Result.Parser, new[]{ "Code", "Msg" }, null, null, null)
-          }));
-    }
-    #endregion
-
-  }
-  #region Messages
-  public sealed partial class Result : pb::IMessage<Result> {
-    private static readonly pb::MessageParser<Result> _parser = new pb::MessageParser<Result>(() => new Result());
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public static pb::MessageParser<Result> Parser { get { return _parser; } }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public static pbr::MessageDescriptor Descriptor {
-      get { return global::Protos.ResultReflection.Descriptor.MessageTypes[0]; }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    pbr::MessageDescriptor pb::IMessage.Descriptor {
-      get { return Descriptor; }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public Result() {
-      OnConstruction();
-    }
-
-    partial void OnConstruction();
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public Result(Result other) : this() {
-      code_ = other.code_;
-      msg_ = other.msg_;
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public Result Clone() {
-      return new Result(this);
-    }
-
-    /// <summary>Field number for the "Code" field.</summary>
-    public const int CodeFieldNumber = 1;
-    private int code_;
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public int Code {
-      get { return code_; }
-      set {
-        code_ = value;
-      }
-    }
-
-    /// <summary>Field number for the "Msg" field.</summary>
-    public const int MsgFieldNumber = 2;
-    private string msg_ = "";
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public string Msg {
-      get { return msg_; }
-      set {
-        msg_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
-      }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public override bool Equals(object other) {
-      return Equals(other as Result);
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public bool Equals(Result other) {
-      if (ReferenceEquals(other, null)) {
-        return false;
-      }
-      if (ReferenceEquals(other, this)) {
-        return true;
-      }
-      if (Code != other.Code) return false;
-      if (Msg != other.Msg) return false;
-      return true;
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public override int GetHashCode() {
-      int hash = 1;
-      if (Code != 0) hash ^= Code.GetHashCode();
-      if (Msg.Length != 0) hash ^= Msg.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 (Code != 0) {
-        output.WriteRawTag(8);
-        output.WriteInt32(Code);
-      }
-      if (Msg.Length != 0) {
-        output.WriteRawTag(18);
-        output.WriteString(Msg);
-      }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public int CalculateSize() {
-      int size = 0;
-      if (Code != 0) {
-        size += 1 + pb::CodedOutputStream.ComputeInt32Size(Code);
-      }
-      if (Msg.Length != 0) {
-        size += 1 + pb::CodedOutputStream.ComputeStringSize(Msg);
-      }
-      return size;
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public void MergeFrom(Result other) {
-      if (other == null) {
-        return;
-      }
-      if (other.Code != 0) {
-        Code = other.Code;
-      }
-      if (other.Msg.Length != 0) {
-        Msg = other.Msg;
-      }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public void MergeFrom(pb::CodedInputStream input) {
-      uint tag;
-      while ((tag = input.ReadTag()) != 0) {
-        switch(tag) {
-          default:
-            input.SkipLastField();
-            break;
-          case 8: {
-            Code = input.ReadInt32();
-            break;
-          }
-          case 18: {
-            Msg = input.ReadString();
-            break;
-          }
-        }
-      }
-    }
-
-  }
-
-  #endregion
-
-}
-
-#endregion Designer generated code

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 1222
cs/Room.cs


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 2624
cs/Sync.cs


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 1157
cs/User.cs


+ 0 - 380
cs/Userinfo.cs

@@ -1,380 +0,0 @@
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: userinfo.proto
-#pragma warning disable 1591, 0612, 3021
-#region Designer generated code
-
-using pb = global::Google.Protobuf;
-using pbc = global::Google.Protobuf.Collections;
-using pbr = global::Google.Protobuf.Reflection;
-using scg = global::System.Collections.Generic;
-namespace Protos {
-
-  /// <summary>Holder for reflection information generated from userinfo.proto</summary>
-  public static partial class UserinfoReflection {
-
-    #region Descriptor
-    /// <summary>File descriptor for userinfo.proto</summary>
-    public static pbr::FileDescriptor Descriptor {
-      get { return descriptor; }
-    }
-    private static pbr::FileDescriptor descriptor;
-
-    static UserinfoReflection() {
-      byte[] descriptorData = global::System.Convert.FromBase64String(
-          string.Concat(
-            "Cg51c2VyaW5mby5wcm90bxIGcHJvdG9zIosBCghVc2VySW5mbxIOCgZVc2Vy",
-            "SUQYASABKA0SDgoGT3BlbmlkGAIgASgJEg8KB1VuaW9uaWQYAyABKAkSEAoI",
-            "Tmlja25hbWUYBCABKAkSDgoGQXZhdGFyGAUgASgJEhAKCElkZW50aXR5GAYg",
-            "ASgNEg0KBVJlYWR5GAcgASgIEgsKA3NpdBgIIAEoDWIGcHJvdG8z"));
-      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
-          new pbr::FileDescriptor[] { },
-          new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
-            new pbr::GeneratedClrTypeInfo(typeof(global::Protos.UserInfo), global::Protos.UserInfo.Parser, new[]{ "UserID", "Openid", "Unionid", "Nickname", "Avatar", "Identity", "Ready", "Sit" }, null, null, null)
-          }));
-    }
-    #endregion
-
-  }
-  #region Messages
-  public sealed partial class UserInfo : pb::IMessage<UserInfo> {
-    private static readonly pb::MessageParser<UserInfo> _parser = new pb::MessageParser<UserInfo>(() => new UserInfo());
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public static pb::MessageParser<UserInfo> Parser { get { return _parser; } }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public static pbr::MessageDescriptor Descriptor {
-      get { return global::Protos.UserinfoReflection.Descriptor.MessageTypes[0]; }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    pbr::MessageDescriptor pb::IMessage.Descriptor {
-      get { return Descriptor; }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public UserInfo() {
-      OnConstruction();
-    }
-
-    partial void OnConstruction();
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public UserInfo(UserInfo other) : this() {
-      userID_ = other.userID_;
-      openid_ = other.openid_;
-      unionid_ = other.unionid_;
-      nickname_ = other.nickname_;
-      avatar_ = other.avatar_;
-      identity_ = other.identity_;
-      ready_ = other.ready_;
-      sit_ = other.sit_;
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public UserInfo Clone() {
-      return new UserInfo(this);
-    }
-
-    /// <summary>Field number for the "UserID" field.</summary>
-    public const int UserIDFieldNumber = 1;
-    private uint userID_;
-    /// <summary>
-    /// 用户id
-    /// </summary>
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public uint UserID {
-      get { return userID_; }
-      set {
-        userID_ = value;
-      }
-    }
-
-    /// <summary>Field number for the "Openid" field.</summary>
-    public const int OpenidFieldNumber = 2;
-    private string openid_ = "";
-    /// <summary>
-    /// 平台openid
-    /// </summary>
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public string Openid {
-      get { return openid_; }
-      set {
-        openid_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
-      }
-    }
-
-    /// <summary>Field number for the "Unionid" field.</summary>
-    public const int UnionidFieldNumber = 3;
-    private string unionid_ = "";
-    /// <summary>
-    /// 平台unionid
-    /// </summary>
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public string Unionid {
-      get { return unionid_; }
-      set {
-        unionid_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
-      }
-    }
-
-    /// <summary>Field number for the "Nickname" field.</summary>
-    public const int NicknameFieldNumber = 4;
-    private string nickname_ = "";
-    /// <summary>
-    /// 用户昵称
-    /// </summary>
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public string Nickname {
-      get { return nickname_; }
-      set {
-        nickname_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
-      }
-    }
-
-    /// <summary>Field number for the "Avatar" field.</summary>
-    public const int AvatarFieldNumber = 5;
-    private string avatar_ = "";
-    /// <summary>
-    /// 用户形象
-    /// </summary>
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public string Avatar {
-      get { return avatar_; }
-      set {
-        avatar_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
-      }
-    }
-
-    /// <summary>Field number for the "Identity" field.</summary>
-    public const int IdentityFieldNumber = 6;
-    private uint identity_;
-    /// <summary>
-    /// 其他扩展属性
-    /// </summary>
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public uint Identity {
-      get { return identity_; }
-      set {
-        identity_ = value;
-      }
-    }
-
-    /// <summary>Field number for the "Ready" field.</summary>
-    public const int ReadyFieldNumber = 7;
-    private bool ready_;
-    /// <summary>
-    /// 用户状态 0=未准备; 1=已准备
-    /// </summary>
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public bool Ready {
-      get { return ready_; }
-      set {
-        ready_ = value;
-      }
-    }
-
-    /// <summary>Field number for the "sit" field.</summary>
-    public const int SitFieldNumber = 8;
-    private uint sit_;
-    /// <summary>
-    /// 用户座位号 0 ~ n
-    /// </summary>
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public uint Sit {
-      get { return sit_; }
-      set {
-        sit_ = value;
-      }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public override bool Equals(object other) {
-      return Equals(other as UserInfo);
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public bool Equals(UserInfo other) {
-      if (ReferenceEquals(other, null)) {
-        return false;
-      }
-      if (ReferenceEquals(other, this)) {
-        return true;
-      }
-      if (UserID != other.UserID) return false;
-      if (Openid != other.Openid) return false;
-      if (Unionid != other.Unionid) return false;
-      if (Nickname != other.Nickname) return false;
-      if (Avatar != other.Avatar) return false;
-      if (Identity != other.Identity) return false;
-      if (Ready != other.Ready) return false;
-      if (Sit != other.Sit) return false;
-      return true;
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public override int GetHashCode() {
-      int hash = 1;
-      if (UserID != 0) hash ^= UserID.GetHashCode();
-      if (Openid.Length != 0) hash ^= Openid.GetHashCode();
-      if (Unionid.Length != 0) hash ^= Unionid.GetHashCode();
-      if (Nickname.Length != 0) hash ^= Nickname.GetHashCode();
-      if (Avatar.Length != 0) hash ^= Avatar.GetHashCode();
-      if (Identity != 0) hash ^= Identity.GetHashCode();
-      if (Ready != false) hash ^= Ready.GetHashCode();
-      if (Sit != 0) hash ^= Sit.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 (UserID != 0) {
-        output.WriteRawTag(8);
-        output.WriteUInt32(UserID);
-      }
-      if (Openid.Length != 0) {
-        output.WriteRawTag(18);
-        output.WriteString(Openid);
-      }
-      if (Unionid.Length != 0) {
-        output.WriteRawTag(26);
-        output.WriteString(Unionid);
-      }
-      if (Nickname.Length != 0) {
-        output.WriteRawTag(34);
-        output.WriteString(Nickname);
-      }
-      if (Avatar.Length != 0) {
-        output.WriteRawTag(42);
-        output.WriteString(Avatar);
-      }
-      if (Identity != 0) {
-        output.WriteRawTag(48);
-        output.WriteUInt32(Identity);
-      }
-      if (Ready != false) {
-        output.WriteRawTag(56);
-        output.WriteBool(Ready);
-      }
-      if (Sit != 0) {
-        output.WriteRawTag(64);
-        output.WriteUInt32(Sit);
-      }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public int CalculateSize() {
-      int size = 0;
-      if (UserID != 0) {
-        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UserID);
-      }
-      if (Openid.Length != 0) {
-        size += 1 + pb::CodedOutputStream.ComputeStringSize(Openid);
-      }
-      if (Unionid.Length != 0) {
-        size += 1 + pb::CodedOutputStream.ComputeStringSize(Unionid);
-      }
-      if (Nickname.Length != 0) {
-        size += 1 + pb::CodedOutputStream.ComputeStringSize(Nickname);
-      }
-      if (Avatar.Length != 0) {
-        size += 1 + pb::CodedOutputStream.ComputeStringSize(Avatar);
-      }
-      if (Identity != 0) {
-        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Identity);
-      }
-      if (Ready != false) {
-        size += 1 + 1;
-      }
-      if (Sit != 0) {
-        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Sit);
-      }
-      return size;
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public void MergeFrom(UserInfo other) {
-      if (other == null) {
-        return;
-      }
-      if (other.UserID != 0) {
-        UserID = other.UserID;
-      }
-      if (other.Openid.Length != 0) {
-        Openid = other.Openid;
-      }
-      if (other.Unionid.Length != 0) {
-        Unionid = other.Unionid;
-      }
-      if (other.Nickname.Length != 0) {
-        Nickname = other.Nickname;
-      }
-      if (other.Avatar.Length != 0) {
-        Avatar = other.Avatar;
-      }
-      if (other.Identity != 0) {
-        Identity = other.Identity;
-      }
-      if (other.Ready != false) {
-        Ready = other.Ready;
-      }
-      if (other.Sit != 0) {
-        Sit = other.Sit;
-      }
-    }
-
-    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-    public void MergeFrom(pb::CodedInputStream input) {
-      uint tag;
-      while ((tag = input.ReadTag()) != 0) {
-        switch(tag) {
-          default:
-            input.SkipLastField();
-            break;
-          case 8: {
-            UserID = input.ReadUInt32();
-            break;
-          }
-          case 18: {
-            Openid = input.ReadString();
-            break;
-          }
-          case 26: {
-            Unionid = input.ReadString();
-            break;
-          }
-          case 34: {
-            Nickname = input.ReadString();
-            break;
-          }
-          case 42: {
-            Avatar = input.ReadString();
-            break;
-          }
-          case 48: {
-            Identity = input.ReadUInt32();
-            break;
-          }
-          case 56: {
-            Ready = input.ReadBool();
-            break;
-          }
-          case 64: {
-            Sit = input.ReadUInt32();
-            break;
-          }
-        }
-      }
-    }
-
-  }
-
-  #endregion
-
-}
-
-#endregion Designer generated code