Example #1
0
        //===================================================== INIT ===========

        public ConfigUI() {
            InitializeComponent();
            tip.SetToolTip( nUploadBandwidth, "Maximum available upload bandwidth.\n" +
                                              "Used to determine throttling settings.\n" +
                                              "Setting this too high may cause clients to time out when using /load." );

            fCraft.Color.Init();
            ColorPicker.Init();
            config = new Config( null, new ClassList( null ), new Logger( null ) );

            bold = new Font( Font, FontStyle.Bold );

            Load += LoadConfig;
        }
Example #2
0
        public World( string _path ) {
            path = _path;
            Color.Init();
            Map.Init();

            // start the logger
            log = new Logger( this );

            // load config
            classes = new ClassList( this );
            config = new Config( this, classes, log );
            
            // start tasks service
            tasks = new Tasks();

            db = new PlayerDB( this );
            bans = new IPBanList( this );

            cmd = new Commands( this );
            heartbeat = new Heartbeat( this );
        }