reduce update packet size by ~70%

This commit is contained in:
Asraelite 2016-03-29 01:14:32 +01:00
parent 1af386d9f5
commit 0906441246
20 changed files with 219 additions and 143 deletions

View file

@ -8,7 +8,21 @@ class Projectile extends Body {
}
connect() {
}
packTypeDelta() {
return [];
}
packProjectileFull() {
return {};
}
packTypeFull() {
let packet = this.packProjectileFull();
packet.source = this.source.id;
return packet;
}
}