forked from kanium/starcheese
18 lines
427 B
GDScript
18 lines
427 B
GDScript
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
|