building
parent
28bcf47c7e
commit
543b68046f
|
@ -26,7 +26,7 @@ GameLib.Component = function(
|
|||
|
||||
this.selected = false;
|
||||
|
||||
this.built = false;
|
||||
this.building = false;
|
||||
|
||||
this.loaded = false;
|
||||
|
||||
|
@ -292,11 +292,11 @@ GameLib.Component.prototype.toApiObject = function() {
|
|||
*/
|
||||
GameLib.Component.prototype.buildIdToObject = function() {
|
||||
|
||||
if (this.built) {
|
||||
if (this.building) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.built = true;
|
||||
this.building = true;
|
||||
|
||||
this.idToObject = {};
|
||||
|
||||
|
@ -410,7 +410,7 @@ GameLib.Component.prototype.buildIdToObject = function() {
|
|||
|
||||
this.idToObject[this.id] = this;
|
||||
|
||||
this.built = false;
|
||||
this.building = false;
|
||||
};
|
||||
|
||||
GameLib.Component.prototype.generateNewIds = function() {
|
||||
|
|
Loading…
Reference in New Issue