End of lesson 18 The command processor, Chapter 5
This commit is contained in:
13
scripts/game/commands/Command.gd
Normal file
13
scripts/game/commands/Command.gd
Normal file
@@ -0,0 +1,13 @@
|
||||
class_name Command
|
||||
|
||||
signal COMMAND_PROCESSED(label)
|
||||
|
||||
var commandLabel
|
||||
|
||||
|
||||
func execute():
|
||||
COMMAND_PROCESSED.emit(commandLabel)
|
||||
|
||||
|
||||
func getCommandText():
|
||||
return commandLabel
|
||||
Reference in New Issue
Block a user