Add glMatrix

This commit is contained in:
schmelczerandras 2020-07-22 20:00:57 +02:00
parent 582979d3ed
commit e88b4589d2
26 changed files with 211 additions and 358 deletions

View file

@ -1,8 +1,8 @@
import { Command } from '../command';
import { Vec2 } from '../../math/vec2';
import { vec2 } from 'gl-matrix';
export class MoveToCommand extends Command {
public constructor(public readonly position?: Vec2) {
public constructor(public readonly position?: vec2) {
super();
}
}

View file

@ -1,8 +1,8 @@
import { Command } from '../command';
import { Vec2 } from '../../math/vec2';
import { vec2 } from 'gl-matrix';
export class PrimaryActionCommand extends Command {
public constructor(public readonly position?: Vec2) {
public constructor(public readonly position?: vec2) {
super();
}
}

View file

@ -1,8 +1,8 @@
import { Command } from '../command';
import { Vec2 } from '../../math/vec2';
import { vec2 } from 'gl-matrix';
export class SecondaryActionCommand extends Command {
public constructor(public readonly position?: Vec2) {
public constructor(public readonly position?: vec2) {
super();
}
}

View file

@ -1,8 +1,8 @@
import { Command } from '../command';
import { Vec2 } from '../../math/vec2';
import { vec2 } from 'gl-matrix';
export class SwipeCommand extends Command {
public constructor(public readonly delta?: Vec2) {
public constructor(public readonly delta?: vec2) {
super();
}
}