20 lines
303 B
JavaScript
20 lines
303 B
JavaScript
import {Packet} from '@avocado/net';
|
|
|
|
export class HarmPacket extends Packet {
|
|
|
|
static get schema() {
|
|
return {
|
|
...super.schema,
|
|
data: [
|
|
{
|
|
amount: 'varuint',
|
|
from: 'uint32',
|
|
isHarm: 'bool',
|
|
type: 'string',
|
|
},
|
|
]
|
|
}
|
|
}
|
|
|
|
}
|