chore: dead code

This commit is contained in:
cha0s 2019-09-30 15:19:27 -05:00
parent be1198722d
commit 96953bb6a9
5 changed files with 40 additions and 48 deletions

View File

@ -1,20 +1,18 @@
import {EntityPacket} from '@avocado/entity';
// export class DamagePacket extends EntityPacket {
export class DamagePacket extends EntityPacket {
// static get schema() {
// const schema = super.schema;
// schema.data.damages = [
// {
// amount: 'varuint',
// damageSpec: {
// affinity: 'uint8',
// },
// from: 'uint32',
// isDamage: 'bool',
// },
// ];
// return schema;
// }
static get schema() {
const schema = super.schema;
schema.data.damages = [
{
amount: 'varuint',
damageSpec: {
affinity: 'uint8',
},
from: 'uint32',
isDamage: 'bool',
},
];
return schema;
}
}
// }

View File

@ -1,12 +1,10 @@
import {EntityPacket} from '@avocado/entity';
// export class TraitItemQtyPacket extends EntityPacket {
export class TraitItemQtyPacket extends EntityPacket {
// static get schema() {
// const schema = super.schema;
// schema.data.slotIndex = 'uint16';
// schema.data.qty = 'uint16';
// return schema;
// }
static get schema() {
const schema = super.schema;
schema.data.slotIndex = 'uint16';
schema.data.qty = 'uint16';
return schema;
}
}
// }

View File

@ -1,12 +1,10 @@
import {EntityPacket} from '@avocado/entity';
// export class TraitItemSwapPacket extends EntityPacket {
export class TraitItemSwapPacket extends EntityPacket {
// static get schema() {
// const schema = super.schema;
// schema.data.firstSlotIndex = 'uint16';
// schema.data.secondSlotIndex = 'uint16';
// return schema;
// }
static get schema() {
const schema = super.schema;
schema.data.firstSlotIndex = 'uint16';
schema.data.secondSlotIndex = 'uint16';
return schema;
}
}
// }

View File

@ -1,11 +1,9 @@
import {EntityPacket} from '@avocado/entity';
// export class TraitPlantPacket extends EntityPacket {
export class TraitPlantPacket extends EntityPacket {
// static get schema() {
// const schema = super.schema;
// schema.data.growthStage = 'uint8';
// return schema;
// }
static get schema() {
const schema = super.schema;
schema.data.growthStage = 'uint8';
return schema;
}
}
// }

View File

@ -4,7 +4,7 @@ import * as I from 'immutable';
import immutablediff from 'immutablediff';
import {compose} from '@avocado/core';
import {EntityCreatePacket, EntityPacket, EntityRemovePacket, Trait} from '@avocado/entity';
import {Trait} from '@avocado/entity';
import {Rectangle, Vector} from '@avocado/math';
import {BundlePacket, ServerSynchronizer} from '@avocado/net';