Do some more refactoring

This commit is contained in:
schmelczerandras 2020-07-30 20:59:37 +02:00
parent c892ca2d01
commit 24cc572e47
29 changed files with 191 additions and 152 deletions

View file

@ -1,12 +0,0 @@
import { Command } from '../command';
import { IRenderer } from '../../drawing/i-renderer';
export class BeforeRenderCommand extends Command {
public constructor(public readonly renderer?: IRenderer) {
super();
}
public get type(): string {
return 'BeforeRenderCommand';
}
}

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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