Remove clutter

This commit is contained in:
schmelczerandras 2020-10-03 09:17:43 +02:00
parent 78b1d648ee
commit c21025caf6
13 changed files with 39 additions and 62 deletions

View file

@ -0,0 +1,12 @@
import { vec2 } from 'gl-matrix';
import { Command } from './command';
export class MoveToCommand extends Command {
public constructor(public readonly position?: vec2) {
super();
}
public get type(): string {
return 'MoveToCommand';
}
}

View file

@ -0,0 +1,12 @@
import { Renderer } from 'sdf-2d';
import { Command } from './command';
export class RenderCommand extends Command {
public constructor(public readonly renderer?: Renderer) {
super();
}
public get type(): string {
return 'RenderCommand';
}
}

View file

@ -0,0 +1,11 @@
import { Command } from './command';
export class StepCommand extends Command {
public constructor(public readonly deltaTimeInMiliseconds?: DOMHighResTimeStamp) {
super();
}
public get type(): string {
return 'StepCommand';
}
}

View file

@ -0,0 +1,12 @@
import { vec2 } from 'gl-matrix';
import { Command } from './command';
export class TeleportToCommand extends Command {
public constructor(public readonly position?: vec2) {
super();
}
public get type(): string {
return 'TeleportToCommand';
}
}