Fix failing test (include duplicate check)
All checks were successful
E2E Testing / test (push) Successful in 1m26s
All checks were successful
E2E Testing / test (push) Successful in 1m26s
This commit is contained in:
parent
824ccab48b
commit
81cda122a4
@ -25,9 +25,12 @@ export class GameModel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
addGamesystem(gamesystem: Gamesystem<any, any>) {
|
addGamesystem(gamesystem: Gamesystem<any, any>) {
|
||||||
|
if(this.findGamesystem(gamesystem.componentName) == undefined) {
|
||||||
this._gamesystems.push(gamesystem);
|
this._gamesystems.push(gamesystem);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
removeGamesystem(gamesystem : Gamesystem<any, any>) {
|
removeGamesystem(gamesystem : Gamesystem<any, any>) {
|
||||||
this._gamesystems = this._gamesystems.filter(g => g !== gamesystem);
|
this._gamesystems = this._gamesystems.filter(g => g !== gamesystem);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user