示例#1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (UserId != 0)
            {
                hash ^= UserId.GetHashCode();
            }
            if (ModuleId != global::Lspb.ModuleId.UnknownModel)
            {
                hash ^= ModuleId.GetHashCode();
            }
            if (MethodId != global::Lspb.ClientMsgType.ErrorClientType)
            {
                hash ^= MethodId.GetHashCode();
            }
            if (cliEnterRoom_ != null)
            {
                hash ^= CliEnterRoom.GetHashCode();
            }
            if (cliInitOver_ != null)
            {
                hash ^= CliInitOver.GetHashCode();
            }
            if (cliOperate_ != null)
            {
                hash ^= CliOperate.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#2
0
        public static void CliInitOver(int userId = 1, ModuleId moduleId = ModuleId.Game)
        {
            CliInitOver cliInitOver = new CliInitOver();

            CliReq req = CreateCliReq(ClientMsgType.CliInitOver, userId, moduleId);

            req.CliInitOver = cliInitOver;

            UdpSocket.Send(Serialize(req));
        }
示例#3
0
 public void MergeFrom(CliReq other)
 {
     if (other == null)
     {
         return;
     }
     if (other.UserId != 0)
     {
         UserId = other.UserId;
     }
     if (other.ModuleId != global::Lspb.ModuleId.UnknownModel)
     {
         ModuleId = other.ModuleId;
     }
     if (other.MethodId != global::Lspb.ClientMsgType.ErrorClientType)
     {
         MethodId = other.MethodId;
     }
     if (other.cliEnterRoom_ != null)
     {
         if (cliEnterRoom_ == null)
         {
             CliEnterRoom = new global::Lspb.CliEnterRoom();
         }
         CliEnterRoom.MergeFrom(other.CliEnterRoom);
     }
     if (other.cliInitOver_ != null)
     {
         if (cliInitOver_ == null)
         {
             CliInitOver = new global::Lspb.CliInitOver();
         }
         CliInitOver.MergeFrom(other.CliInitOver);
     }
     if (other.cliOperate_ != null)
     {
         if (cliOperate_ == null)
         {
             CliOperate = new global::Lspb.CliOperate();
         }
         CliOperate.MergeFrom(other.CliOperate);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
示例#4
0
 protected virtual void CliInitOver(CliInitOver msg)
 {
     Console.WriteLine("-----------------------no implements CliInitOver-----------------------");
 }
示例#5
0
 protected override void CliInitOver(CliInitOver msg)
 {
     Console.WriteLine("CliInitOver");
 }