Minor changes and add favicon
This commit is contained in:
parent
34dae300da
commit
e7f9007b23
18 changed files with 28 additions and 44 deletions
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -1,5 +0,0 @@
|
|||
export enum InterpolationType {
|
||||
flat = 'flat',
|
||||
linear = 'linear',
|
||||
linearRotation = 'linearRotation',
|
||||
}
|
||||
|
|
@ -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];
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue