public override int GetHashCode()
    {
        int hash = 1;

        if (HasPayloadType)
        {
            hash ^= PayloadType.GetHashCode();
        }
        if (HasPayload)
        {
            hash ^= Payload.GetHashCode();
        }
        if (HasClientMsgId)
        {
            hash ^= ClientMsgId.GetHashCode();
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }
 public void UnReg(ClientMsgId msgId)
 {
     UnReg((int)msgId);
 }
 public void Reg(ClientMsgId msgID, GameEventDelegate.CallBack callBack)
 {
     Reg((int)msgID, callBack);
 }
 public void UnReg(ClientMsgId msgId, GameEventDelegate.CallBack callBack)
 {
     UnReg((int)msgId, callBack);
 }
 public void SendMsg(ClientMsgId msgId, params object[] objs)
 {
     SendMsg((int)msgId, objs);
 }