Add ObjectStoreLite to reduce memory footprint if the full object data is not needed

This commit is contained in:
Casper Warden
2017-12-14 02:06:28 +00:00
parent 9c6375a917
commit 60e300f052
58 changed files with 1525 additions and 62 deletions

21
dist/classes/GameObjectLite.js vendored Normal file
View File

@@ -0,0 +1,21 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class GameObjectLite {
constructor() {
this.IsAttachment = false;
}
hasNameValueEntry(key) {
if (this.NameValue['AttachItemID']) {
return true;
}
return false;
}
getNameValueEntry(key) {
if (this.NameValue['AttachItemID']) {
return this.NameValue['AttachItemID'].value;
}
return '';
}
}
exports.GameObjectLite = GameObjectLite;
//# sourceMappingURL=GameObjectLite.js.map