Load() static private method

static private Load ( ) : void
return void
Ejemplo n.º 1
0
        public bool Init()
        {
            log.Init("fCraft.log");
            if (!config.Load("config.xml"))
            {
                return(false);
            }
            config.ApplyConfig();
            config.Save("config.xml");

            // allocate player list
            players = new Player[config.GetInt("MaxPlayers") + 1];
            tasks.Init();

            // load player DB
            db.Load();
            bans.Load();

            return(true);
        }