Refactor frontend to use commands

This commit is contained in:
Schmelczer András 2020-11-06 19:56:09 +01:00
parent be26ab422c
commit 503c99cb1f
25 changed files with 8031 additions and 23084 deletions

View file

@ -9,7 +9,7 @@ import {
PlanetBase,
CharacterTeam,
PropertyUpdatesForObject,
UpdateProperty,
UpdatePropertyCommand,
} from 'shared';
import { ImmutableBoundingBox } from '../physics/bounding-boxes/immutable-bounding-box';
@ -110,7 +110,7 @@ export class PlanetPhysical
public getPropertyUpdates(): PropertyUpdatesForObject {
return new PropertyUpdatesForObject(this.id, [
new UpdateProperty('ownership', this.ownership, 0),
new UpdatePropertyCommand('ownership', this.ownership, 0),
]);
}