public override void initService()
    {
        m_sysMgr.addSys(new SysStatPlayerTotalMoney(), SysType.systype_stat_player_total_money);
        m_sysMgr.addSys(new SysStatRemain(), SysType.systype_remain_stat);

        m_sysMgr.init();

        m_threadWork = new Thread(new ThreadStart(run));
        m_threadWork.Start();
    }
        protected void Application_Start(object sender, EventArgs e)
        {
            SysMgr mgr = new SysMgr();

            mgr.addSys(new AccountSys());
            mgr.addSys(new RightSys());
            mgr.addSys(new ChannelSys());
            mgr.initSys();

            Application["sys"] = mgr;
        }
    public override void initService()
    {
        m_sysMgr.addSys(new StatPlayerDragonBall(), SysType.systype_PlayerDragonBall);
        // m_sysMgr.addSys(new StatPlayerTotalIncomeExpenses(), SysType.systype_PlayerTotalIncomeExpenses);
        m_sysMgr.addSys(new StatPlayerTotalIncomeExpensesNew(), SysType.systype_PlayerTotalIncomeExpensesNew);

        m_sysMgr.addSys(new StatNewPlayerOutlayDistribution(), SysType.systype_StatNewPlayerOutlayDistribution);

        m_sysMgr.init();

        m_threadWork = new Thread(new ThreadStart(run));
        m_threadWork.Start();
    }
Example #4
0
    public override void initService()
    {
        m_sysMgr.addSys(new StatPlayerTotalIncomeExpensesNew(), SysType.systype_PlayerTotalIncomeExpensesNew);

        m_sysMgr.init();

        m_threadWork = new Thread(new ThreadStart(run));
        m_threadWork.Start();
    }
Example #5
0
    public override void initService()
    {
        //initStatModule();
        //initChannel();

        m_sysMgr.addSys(new SysStatPlayerTotalMoney(), SysType.systype_stat_player_total_money);
        m_sysMgr.addSys(new SysStatRemain(), SysType.systype_remain_stat);
        m_sysMgr.addSys(new SysStatLose(), SysType.systype_lose_stat);
        //m_sysMgr.addSys(new StatPlayerDragonBall(), SysType.systype_PlayerDragonBall);
        m_sysMgr.addSys(new StatDragonBallTotal(), SysType.systype_DragonBallTotal);
        m_sysMgr.addSys(new StatOnlineGameTime(), SysType.systype_OnlineGameTime);
        //m_sysMgr.addSys(new StatPlayerTotalIncomeExpenses(), SysType.systype_PlayerTotalIncomeExpenses);

        m_sysMgr.addSys(new StatRechargePerHour(), SysType.systype_RechargeHour);
        m_sysMgr.addSys(new StatOnlinePlayerNumPerHour(), SysType.systype_OnlinePlayerNumHour);
        m_sysMgr.addSys(new StatGameTimeForPlayerActive(), SysType.systype_GameTimeForPlayerActive);
        m_sysMgr.addSys(new StatFirstRecharge(), SysType.systype_FirstRecharge);
        m_sysMgr.addSys(new StatPlayerGameBet(), SysType.systype_PlayerGameBet);

        m_sysMgr.init();

        m_threadWork = new Thread(new ThreadStart(run));
        m_threadWork.Start();
    }
Example #6
0
    public override void initService()
    {
        XmlConfig xml        = ResMgr.getInstance().getRes("dbserver.xml");
        string    mysql      = xml.getString("mysql", "");
        string    connectStr = xml.getString("connectStr", "");

        m_sqlDb = new MySqlDbServer(mysql, connectStr);

        string alg = xml.getString("statAlg", "A");

        m_stat = createStatUnit(alg, m_serverId);

        m_sysMgr.addSys(new SysStatWinLose(this), SysType.sysTypeWinLoseStat);
        m_sysMgr.init();

        m_threadWork = new Thread(new ThreadStart(run));
        m_threadWork.Start();
    }