How to use the screeps.version function in screeps

To help you get started, we’ve selected a few screeps examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Hiryus / screeps-server-mockup / src / screepsServer.js View on Github external
async start() {
        this.emit('info', `Server version ${require('screeps').version}`);
        if (!this.connected) {
            await this.connect();
        }
        this.emit('info', 'Starting engine processes.');
        this.startProcess('engine_runner', path.resolve(path.dirname(require.resolve('@screeps/engine')), 'runner.js'), {
            DRIVER_MODULE: '@screeps/driver',
            MODFILE:       path.resolve(this.opts.path, DB_FILE),
            STORAGE_PORT:  this.opts.port,
        });
        this.startProcess('engine_processor', path.resolve(path.dirname(require.resolve('@screeps/engine')), 'processor.js'), {
            DRIVER_MODULE: '@screeps/driver',
            MODFILE:       path.resolve(this.opts.path, DB_FILE),
            STORAGE_PORT:  this.opts.port,
        });
        return this;
    }

screeps

A standalone server for programming game Screeps

ISC
Latest version published 4 months ago

Package Health Score

59 / 100
Full package analysis

Popular screeps functions