avocado-old/packages/entity/packets/trait-alive.packet.js

13 lines
253 B
JavaScript
Raw Normal View History

import {EntityPacket} from '@avocado/entity';
export class TraitAlivePacket extends EntityPacket {
static get schema() {
const schema = super.schema;
schema.data.life = 'uint16';
schema.data.maxLife = 'uint16';
return schema;
}
}