Skip to content

Commit bd03875

Browse files
committed
feat: added QuestService.removeAllQuests()
1 parent 44c7690 commit bd03875

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

fxgl-gameplay/src/main/kotlin/com/almasb/fxgl/quest/QuestService.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ class QuestService : EngineService() {
5555
quest.start()
5656
}
5757

58+
fun removeAllQuests() {
59+
quests.toList().forEach { removeQuest(it) }
60+
}
61+
5862
override fun onGameReady(vars: PropertyMap) {
5963
this.vars = vars
6064

0 commit comments

Comments
 (0)