Ejemplo n.º 1
0
        public void RemoveAccountList(int Idx)
        {
            if (AccountList[Idx].State == EServerStatus.CLOSED)
            {
                return;
            }

            int conn = Idx / BaseDef.MAX_MAXUSER;

            AccountList[Idx] = new STRUCT_PUSUER(EServerStatus.CLOSED);
            PlayerCount--;
        }
Ejemplo n.º 2
0
        public DBController(ISynchronizeInvoke syncObj)
        {
            Server           = new pServer();
            BaseMob          = new STRUCT_MOB[4];
            AccountList      = new STRUCT_PUSUER[BaseDef.MAX_MAXUSER];
            ItemDayLog       = new STRUCT_ITEMLOG[BaseDef.MAX_ITEMLIST];
            ChargedGuildList = new int[BaseDef.MAX_CHANNEL, BaseDef.MAX_GUILDZONE];
            SinceInit        = DateTime.Now;

            PlayerCount  = 0;
            MySQL        = new MYSQL();
            g_pGuildWar  = new short[BaseDef.MAX_GUILD];
            g_pGuildAlly = new short[BaseDef.MAX_GUILD];
            g_pGuildInfo = new STRUCT_GUILDINFO[BaseDef.MAX_GUILD];
            Config       = new ConfigServer();
            onTask();
        }