Exemplo n.º 1
0
        public void Setup()
        {
            //初始化日志,放最前面
            Log4Helper.Init(log4net.LogManager.GetLogger("loginfo"), log4net.LogManager.GetLogger("loginfo"), log4net.LogManager.GetLogger("logerror"), log4net.LogManager.GetLogger("logerror"));

            Log.Info("开启时间(" + DateTime.Now.ToString() + ")");
            ServerConfig.Load();

            DatabaseManager.Instance.Setup();
        }
Exemplo n.º 2
0
        public void Setup()
        {
            //初始化日志,放最前面
            Log4Helper.Init(log4net.LogManager.GetLogger("loginfo"), log4net.LogManager.GetLogger("loginfo"), log4net.LogManager.GetLogger("logerror"), log4net.LogManager.GetLogger("logerror"));

            Log.Info("开启时间(" + DateTime.Now.ToString() + ")");

            ServerConfig.Read();
            Framework.Instance.Setup(Tick);

            ClientNetManager.Instance.Setup();
            UnitManager.Instance.Setup();
            this.RegisterEvent();
        }
Exemplo n.º 3
0
        public void Setup()
        {
            //初始化日志,放最前面
            Log4Helper.Init(log4net.LogManager.GetLogger("loginfo"), log4net.LogManager.GetLogger("loginfo"), log4net.LogManager.GetLogger("logerror"), log4net.LogManager.GetLogger("logerror"));

            Log.Info("开启时间(" + DateTime.Now.ToString() + ")");
            ServerConfig.Load();

            Console.Title = "FS:" + ServerConfig.net_info.server_uid;

            Framework.Instance.Setup(Tick);
            DataManager.Instance.Setup();
            ServerNetManager.Instance.Setup();
            ForServerNetManager.Instance.Setup();
            ServerCmdManager.Instance.Setup();
            UnitManager.Instance.Setup();
        }
Exemplo n.º 4
0
        public void Setup()
        {
            //初始化日志,放最前面
            Log4Helper.Init(log4net.LogManager.GetLogger("loginfo"), log4net.LogManager.GetLogger("loginfo"), log4net.LogManager.GetLogger("logerror"), log4net.LogManager.GetLogger("logerror"));

            //CSVDocument doc = new CSVDocument();
            //doc.Load(@"..\data\config\skill\StdSpellInfo.csv");

            Log.Info("开启时间(" + DateTime.Now.ToString() + ")");
            ServerConfig.Load();

            Console.Title = "GS:" + ServerConfig.net_info.server_uid;

            Framework.Instance.Setup(Tick);
            DataManager.Instance.Setup();
            DBManager.Instance.Setup();
            ServerNetManager.Instance.Setup();
            ForClientNetManager.Instance.Setup();
            ForServerNetManager.Instance.Setup();
            ClientSessionManager.Instance.Setup();
            ServerCmdManager.Instance.Setup();
        }
Exemplo n.º 5
0
        public void Setup()
        {
            //初始化日志,放最前面
            Log4Helper.Init(log4net.LogManager.GetLogger("loginfo"), log4net.LogManager.GetLogger("loginfo"), log4net.LogManager.GetLogger("logerror"), log4net.LogManager.GetLogger("logerror"));

            Log.Info("开启时间(" + DateTime.Now.ToString() + ")");
            ServerConfig.Load();
            Console.Title = "SS:" + ServerConfig.net_info.server_uid;

            Framework.Instance.Setup(Tick);
            DataManager.Instance.Setup();
            DBManager.Instance.Setup();
            ServerNetManager.Instance.Setup();
            SceneManager.Instance.Setup();
            UnitManager.Instance.Setup();
            AOIManager.Instance.Setup();
            ServerCmdManager.Instance.Setup();
            DBEventManager.Instance.Setup();
            CounterManager.Instance.Setup();
            MailboxManager.Instance.Setup();
            RelationManager.Instance.Setup();
            ChatManager.Instance.Setup();
            FightManager.Instance.Setup();
        }