refactor: sync schema

This commit is contained in:
cha0s 2019-09-22 19:00:07 -05:00
parent ed556a34b3
commit e1ec01947f

View File

@ -2,14 +2,9 @@ import {SynchronizedUpdatePacket} from '@avocado/net';
export class WorldTimePacket extends SynchronizedUpdatePacket { export class WorldTimePacket extends SynchronizedUpdatePacket {
static get schema() { static get synchronizationSchema() {
const superSchema = super.schema;
return { return {
...superSchema, hour: 'uint16',
data: {
...superSchema.data,
hour: 'uint16',
},
}; };
} }