Skip to content

Commit

Permalink
Add remove_pool method to API
Browse files Browse the repository at this point in the history
  • Loading branch information
shomykohai committed Sep 16, 2024
1 parent a047605 commit 94849da
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions addons/quest_system/quest_manager.gd
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,12 @@ func add_new_pool(pool_path: String, pool_name: String) -> void:
add_child(pool_instance)


func remove_pool(pool_name: String) -> void:
var pool := get_pool(pool_name)
if pool != null:
pool.queue_free()


func get_pool(pool: String) -> BaseQuestPool:
return get_node_or_null(pool)

Expand Down

0 comments on commit 94849da

Please sign in to comment.