avocado-old/packages/net/s13n/synchronized.packet.js

23 lines
368 B
JavaScript
Raw Normal View History

2019-09-22 18:45:33 -05:00
import {Packet} from '@avocado/net';
export class SynchronizedPacket extends Packet {
static get schema() {
return {
...super.schema,
data: {
synchronized: {
type: 'uint8',
2019-09-22 18:59:51 -05:00
id: 'varuint',
2019-09-22 18:45:33 -05:00
},
2019-09-22 18:59:51 -05:00
...this.synchronizationSchema,
2019-09-22 18:45:33 -05:00
},
};
}
2019-09-22 18:59:51 -05:00
static get synchronizationSchema() {
return {};
}
2019-09-22 18:45:33 -05:00
}