starblast-modding
Version:
A powerful library for interacting with the Starblast Modding API
32 lines (24 loc) • 625 B
JavaScript
;
const StructureManager = require("./StructureManager.js");
const ObjectType = require("../structures/ObjectType.js");
/**
* The Object Type Manager Instance.
* @extends {StructureManager}
* @abstract
*/
class ObjectTypeManager extends StructureManager {
constructor(game, api) {
super(game, api);
this.#game = game;
}
#game;
update () {
this.filterList().clear();
this.all.forEach(objectType => this._UUIDset(objectType));
return this
}
[Symbol.toStringTag] = 'ObjectTypeManager';
manager_name = "object_type";
StructureConstructor = ObjectType
}
module.exports = ObjectTypeManager