issue-5-gamesystems #6
@ -25,9 +25,12 @@ export class GameModel {
|
||||
}
|
||||
|
||||
addGamesystem(gamesystem: Gamesystem<any, any>) {
|
||||
if(this.findGamesystem(gamesystem.componentName) == undefined) {
|
||||
this._gamesystems.push(gamesystem);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
removeGamesystem(gamesystem : Gamesystem<any, any>) {
|
||||
this._gamesystems = this._gamesystems.filter(g => g !== gamesystem);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user