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 {
static get schema() {
const superSchema = super.schema;
static get synchronizationSchema() {
return {
...superSchema,
data: {
...superSchema.data,
hour: 'uint16',
},
hour: 'uint16',
};
}