Refactor
This commit is contained in:
parent
1ce961d6c2
commit
99cdb62928
76 changed files with 340 additions and 433 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { Command } from '../commands/command';
|
||||
import { Id } from '../transport/identity';
|
||||
import { serializable } from '../transport/serialization/serializable';
|
||||
import { Id } from '../communication/id';
|
||||
import { serializable } from '../serialization/serializable';
|
||||
|
||||
@serializable
|
||||
export class RemoteCall {
|
||||
|
|
@ -33,17 +33,6 @@ export class PropertyUpdatesForObject {
|
|||
}
|
||||
}
|
||||
|
||||
@serializable
|
||||
export class PropertyUpdatesForObjects extends Command {
|
||||
constructor(public readonly updates: Array<PropertyUpdatesForObject>) {
|
||||
super();
|
||||
}
|
||||
|
||||
public toArray(): Array<any> {
|
||||
return [this.updates];
|
||||
}
|
||||
}
|
||||
|
||||
export abstract class GameObject {
|
||||
private remoteCalls: Array<RemoteCall> = [];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue