fix: pakcet stubs for now
This commit is contained in:
parent
96953bb6a9
commit
8611d5f08e
|
@ -1,18 +1,20 @@
|
|||
// export class DamagePacket extends EntityPacket {
|
||||
import {Packet} from '@avocado/net';
|
||||
|
||||
// static get schema() {
|
||||
// const schema = super.schema;
|
||||
// schema.data.damages = [
|
||||
// {
|
||||
// amount: 'varuint',
|
||||
// damageSpec: {
|
||||
// affinity: 'uint8',
|
||||
// },
|
||||
// from: 'uint32',
|
||||
// isDamage: 'bool',
|
||||
// },
|
||||
// ];
|
||||
// return schema;
|
||||
// }
|
||||
export class DamagePacket extends Packet {
|
||||
|
||||
// }
|
||||
static get schema() {
|
||||
const schema = super.schema;
|
||||
schema.data.damages = [
|
||||
{
|
||||
amount: 'varuint',
|
||||
damageSpec: {
|
||||
affinity: 'uint8',
|
||||
},
|
||||
from: 'uint32',
|
||||
isDamage: 'bool',
|
||||
},
|
||||
];
|
||||
return schema;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
// export class TraitItemQtyPacket extends EntityPacket {
|
||||
import {Packet} from '@avocado/net';
|
||||
|
||||
// static get schema() {
|
||||
// const schema = super.schema;
|
||||
// schema.data.slotIndex = 'uint16';
|
||||
// schema.data.qty = 'uint16';
|
||||
// return schema;
|
||||
// }
|
||||
export class TraitItemQtyPacket extends Packet {
|
||||
|
||||
// }
|
||||
static get schema() {
|
||||
const schema = super.schema;
|
||||
schema.data.slotIndex = 'uint16';
|
||||
schema.data.qty = 'uint16';
|
||||
return schema;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
// export class TraitItemSwapPacket extends EntityPacket {
|
||||
import {Packet} from '@avocado/net';
|
||||
|
||||
// static get schema() {
|
||||
// const schema = super.schema;
|
||||
// schema.data.firstSlotIndex = 'uint16';
|
||||
// schema.data.secondSlotIndex = 'uint16';
|
||||
// return schema;
|
||||
// }
|
||||
export class TraitItemSwapPacket extends Packet {
|
||||
|
||||
// }
|
||||
static get schema() {
|
||||
const schema = super.schema;
|
||||
schema.data.firstSlotIndex = 'uint16';
|
||||
schema.data.secondSlotIndex = 'uint16';
|
||||
return schema;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
// export class TraitPlantPacket extends EntityPacket {
|
||||
import {Packet} from '@avocado/net';
|
||||
|
||||
// static get schema() {
|
||||
// const schema = super.schema;
|
||||
// schema.data.growthStage = 'uint8';
|
||||
// return schema;
|
||||
// }
|
||||
export class TraitPlantPacket extends Packet {
|
||||
|
||||
// }
|
||||
static get schema() {
|
||||
const schema = super.schema;
|
||||
schema.data.growthStage = 'uint8';
|
||||
return schema;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user