Do some more refactoring

This commit is contained in:
schmelczerandras 2020-07-30 20:59:37 +02:00
commit 24cc572e47
2 changed files with 194 additions and 155 deletions

View file

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

View file

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