Пример #1
0
        private void PostInitialize(EventArgs args)
        {
            // these below require that the world be loaded

            //UInt32Defs and ColorDefs for colors, and background fade in Terrafirma Color Scheme
            InitializeMapperDefs();
            InitializeMapperDefs2();

            //this pre blends colors for Terrafirma Color Scheme
            initBList();

            //start autosave thread
            if (AutosaveEnabled)
            {
                autosavetimer = new Timer(s => { Autosave(); }, null, AutosaveInterval * 60000, Timeout.Infinite);
            }

            instance    = this;
            initialized = true;
        }
Пример #2
0
        protected override void WorldLoaded()
        {
            //UInt32Defs and ColorDefs for colors, and background fade in Terrafirma Color Scheme
            InitializeMapperDefs();
            InitializeMapperDefs2();

            //this pre blends colors for Terrafirma Color Scheme
            initBList();

            //start autosave thread
            Thread autosavethread;

            autosavethread      = new Thread(autoSave);
            autosavethread.Name = "Auto-Mapper";
            autosavethread.Start();
            while (!autosavethread.IsAlive)
            {
                ;
            }

            instance    = this;
            initialized = true;
        }