Refactor serialization

This commit is contained in:
schmelczerandras 2020-10-07 10:04:05 +02:00
parent 8e44dd3733
commit b3da27e73b
35 changed files with 142 additions and 133 deletions

View file

@ -4,7 +4,7 @@ import {
clamp,
CommandExecutors,
GameObject,
serializable,
serializesTo,
settings,
StepCommand,
} from 'shared';
@ -15,7 +15,7 @@ import { BoundingBoxBase } from '../physics/bounding-boxes/bounding-box-base';
import { moveCircle } from '../physics/move-circle';
import { PhysicalContainer } from '../physics/containers/physical-container';
@serializable(Circle)
@serializesTo(Circle)
export class CirclePhysical implements Circle, Physical {
readonly isInverted = false;
readonly canCollide = true;