starcheese/eventbus/eventbus.gd

18 lines
427 B
GDScript3
Raw Permalink Normal View History

2024-10-03 18:12:33 +01:00
class_name EventBus
extends Node
func subscribers_of(_event_scope: EventScope, _event_type: String) -> Array[Subscription]:
return Array()
func subscribe_to(_event_scope: EventScope, _event_type: String, _fn: Callable) -> Subscription:
return Subscription.new()
func publish(_event_scope: EventScope, _event: Event) -> void:
pass
func cancel_scope(_event_scope: EventScope) -> void:
pass
func dispose() -> void:
pass