Add ObjectStoreLite to reduce memory footprint if the full object data is not needed
This commit is contained in:
21
dist/classes/GameObjectLite.js
vendored
Normal file
21
dist/classes/GameObjectLite.js
vendored
Normal 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
|
||||
Reference in New Issue
Block a user