Add glMatrix
This commit is contained in:
parent
582979d3ed
commit
e88b4589d2
26 changed files with 211 additions and 358 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue