Commit generated files

This commit is contained in:
Casper Warden
2017-12-13 15:23:50 +00:00
parent d0658438b9
commit b66f85c5bb
3097 changed files with 93947 additions and 1 deletions

31
dist/classes/packets/HealthMessage.js vendored Normal file
View File

@@ -0,0 +1,31 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const MessageFlags_1 = require("../../enums/MessageFlags");
class HealthMessagePacket {
constructor() {
this.name = 'HealthMessage';
this.flags = MessageFlags_1.MessageFlags.Trusted | MessageFlags_1.MessageFlags.Zerocoded | MessageFlags_1.MessageFlags.FrequencyLow;
this.id = 4294901898;
}
getSize() {
return 4;
}
writeToBuffer(buf, pos) {
const startPos = pos;
buf.writeFloatLE(this.HealthData['Health'], pos);
pos += 4;
return pos - startPos;
}
readFromBuffer(buf, pos) {
const startPos = pos;
const newObjHealthData = {
Health: 0
};
newObjHealthData['Health'] = buf.readFloatLE(pos);
pos += 4;
this.HealthData = newObjHealthData;
return pos - startPos;
}
}
exports.HealthMessagePacket = HealthMessagePacket;
//# sourceMappingURL=HealthMessage.js.map