UNPKG

incheon

Version:

A Node.js based real-time game server

22 lines (16 loc) 445 B
'use strict'; // The base Physics Engine class defines the expected interface // for all physics engines class PhysicsEngine { init(options) { this.options = options; this.gameEngine = options.gameEngine; } /** * A single Physics step. * * @param {Function} objectFilter - a test function which filters which objects should move */ step(objectFilter) {} } module.exports = PhysicsEngine;