22 lines
349 B
JavaScript
22 lines
349 B
JavaScript
import {Packet} from '@avocado/net';
|
|
|
|
export class DamagePacket extends Packet {
|
|
|
|
static get schema() {
|
|
return {
|
|
...super.schema,
|
|
data: [
|
|
{
|
|
amount: 'varuint',
|
|
damageSpec: {
|
|
affinity: 'uint8',
|
|
},
|
|
from: 'uint32',
|
|
isDamage: 'bool',
|
|
},
|
|
]
|
|
}
|
|
}
|
|
|
|
}
|