Refactored to be controller centric; added message buss pattern with early support eent types
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
class_name GameController extends BaseController
|
||||
|
||||
|
||||
func _controller_message(event: BaseEvent) -> void:
|
||||
if event is GameReadyEvent:
|
||||
handle_game_ready_event()
|
||||
|
||||
func handle_game_ready_event() -> void:
|
||||
controller_message_bus.message.call(
|
||||
CreateAlliesJetEvent.new()
|
||||
)
|
||||
|
||||
controller_message_bus.message.call(
|
||||
CreateAxisJetEvent.new()
|
||||
)
|
||||
Reference in New Issue
Block a user