public bool Execute(string[] paramsList) { if (GameServerMgr.Successed) { Console.WriteLine("系统正在运行中,不能重复初始化协议包处理对象列表!"); return(false); } PackageHandlers.SearchPackageHandler(Assembly.GetAssembly(typeof(GSServer))); CenterPackageHandlers.SearchPackageHandler(Assembly.GetAssembly(typeof(GSServer))); Console.WriteLine("协议包处理对象列表初始化!\r\n"); return(true); }
protected override void Init() { m_sendOut = new CenterPackageSendLib(this); processor = new CenterPackageHandlers(this); }