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 {
|
||||
|
||||
static get schema() {
|
||||
const superSchema = super.schema;
|
||||
static get synchronizationSchema() {
|
||||
return {
|
||||
...superSchema,
|
||||
data: {
|
||||
...superSchema.data,
|
||||
hour: 'uint16',
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user