refactor: sync schema
This commit is contained in:
parent
ed556a34b3
commit
e1ec01947f
|
@ -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',
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user