Minor changes and add favicon

This commit is contained in:
schmelczerandras 2020-10-25 09:12:23 +01:00
parent 34dae300da
commit e7f9007b23
18 changed files with 28 additions and 44 deletions

View file

@ -46,7 +46,6 @@ export * from './transport/serialization/serializable';
export * from './transport/serialization/override-deserialization';
export * from './objects/types/character-base';
export * from './objects/types/character-team';
export * from './objects/update-message';
export * from './objects/types/player-character-base';
export * from './objects/types/lamp-base';
export * from './objects/types/planet-base';

View file

@ -1,5 +0,0 @@
export enum InterpolationType {
flat = 'flat',
linear = 'linear',
linearRotation = 'linearRotation',
}

View file

@ -17,6 +17,8 @@ export class CharacterBase extends GameObject {
super(id);
}
public onShoot(strength: number) {}
public toArray(): Array<any> {
const { id, team, health, head, leftFoot, rightFoot } = this;
return [id, team, health, head, leftFoot, rightFoot];

View file

@ -1,15 +0,0 @@
import { serializable } from '../transport/serialization/serializable';
import { InterpolationType } from './interpolation-type';
@serializable
export class UpdateMessage {
constructor(
public key: string,
public value: any,
public interpolationType?: InterpolationType,
) {}
public toArray(): Array<any> {
return [this.key, this.value, this.interpolationType];
}
}