humus-old/common/combat/damage.packet.js
2019-09-30 21:12:32 -05:00

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',
},
]
}
}
}