Fix linting
This commit is contained in:
parent
e5e928d99a
commit
e6376ad059
23 changed files with 33 additions and 58 deletions
|
|
@ -1,4 +1,3 @@
|
|||
import { vec2 } from 'gl-matrix';
|
||||
import { Renderer } from 'sdf-2d';
|
||||
import { Command } from 'shared';
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ import {
|
|||
deserialize,
|
||||
TransportEvents,
|
||||
SetAspectRatioActionCommand,
|
||||
PlayerInformation,
|
||||
UpdateOtherPlayerDirections,
|
||||
clamp,
|
||||
UpdateGameState,
|
||||
|
|
@ -193,7 +192,7 @@ export class Game extends CommandReceiver {
|
|||
}px) translateX(-50%) translateY(-50%) rotate(${-angle + Math.PI / 2}rad) `;
|
||||
});
|
||||
|
||||
for (let id in this.arrows) {
|
||||
for (const id in this.arrows) {
|
||||
if (
|
||||
Object.prototype.hasOwnProperty.call(this.arrows, id) &&
|
||||
command.otherPlayerDirections.find((v) => v.id?.toString() === id) === undefined
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
import { vec2 } from 'gl-matrix';
|
||||
import { Circle } from 'shared';
|
||||
import { LinearExtrapolator } from './linear-extrapolator';
|
||||
import { Vec2Extrapolator } from './vec2-extrapolator';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
import { clamp } from 'shared';
|
||||
|
||||
export class LinearExtrapolator {
|
||||
private velocity = 0;
|
||||
private compensationVelocity = 0;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { vec2 } from 'gl-matrix';
|
||||
import { Renderer } from 'sdf-2d';
|
||||
|
||||
import {
|
||||
Circle,
|
||||
Id,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { vec2, vec3 } from 'gl-matrix';
|
||||
import { CircleLight, Renderer } from 'sdf-2d';
|
||||
import { CommandExecutors, Id, LampBase, UpdatePropertyCommand } from 'shared';
|
||||
import { CircleLight } from 'sdf-2d';
|
||||
import { CommandExecutors, Id, LampBase } from 'shared';
|
||||
import { RenderCommand } from '../../commands/types/render';
|
||||
|
||||
export class LampView extends LampBase {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { vec2 } from 'gl-matrix';
|
||||
import { CircleLight, Renderer } from 'sdf-2d';
|
||||
import { CircleLight } from 'sdf-2d';
|
||||
import {
|
||||
CharacterTeam,
|
||||
CommandExecutors,
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ export class PlanetShape extends PolygonFactory(settings.planetEdgeCount, 0) {
|
|||
super(vertices);
|
||||
}
|
||||
|
||||
protected getObjectToSerialize(transform2d: mat2d, transform1d: number): any {
|
||||
protected getObjectToSerialize(transform2d: mat2d, _: number): any {
|
||||
const transformedVertices = (this as any).actualVertices.map((v: vec2) =>
|
||||
vec2.transformMat2d(vec2.create(), v, transform2d),
|
||||
);
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ export abstract class SoundHandler {
|
|||
return sound;
|
||||
}
|
||||
|
||||
public static play(sound: Sounds, volume: number = 1) {
|
||||
public static play(sound: Sounds, volume = 1) {
|
||||
if (!this.initialized || !OptionsHandler.options.soundsEnabled) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue