20 lines
340 B
JavaScript
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);
|
|
}
|
|
|
|
}
|