End of lesson 18 The command processor, Chapter 5
This commit is contained in:
10
scripts/game/commands/PassCommand.gd
Normal file
10
scripts/game/commands/PassCommand.gd
Normal file
@@ -0,0 +1,10 @@
|
||||
extends Command
|
||||
|
||||
class_name PassCommand
|
||||
|
||||
func _init() -> void:
|
||||
commandLabel = "Pass"
|
||||
|
||||
func execute():
|
||||
print("Player passed.")
|
||||
COMMAND_PROCESSED.emit(commandLabel)
|
||||
Reference in New Issue
Block a user