public bool RegisterMessage(NetMessage msg) { if (FindMessage((ushort)msg.GetMsgType()) != null) { return(false); } _netMesages.Add(msg); msg.SetNetChannel(this); return(true); }