avocado-old/packages/graphics/proton/proton.js
2019-04-23 00:22:50 -05:00

20 lines
340 B
JavaScript

// Fake for server.
class FakeProton {
addEmitter() {}
update() {}
}
FakeProton.BaseRender = class {};
FakeProton.Emitter = class {};
const Proton_ = 'undefined' !== typeof window ? require('three.proton.js/build/three.proton') : FakeProton;
export class Proton extends Proton_ {
tick(elapsed) {
this.update(elapsed);
}
}