citylimits/scripts/command_handler.gd
Tony Bark e86dd64b8b Changed debug control to winodw
- Changed debug control into custom window dialog.
- Reworked "whereyoufrom" cheat
- Changed how the money cheat works
2021-05-20 22:16:43 -04:00

21 lines
351 B
GDScript

extends Node
enum {
ARG_INT,
ARG_STRING,
ARG_BOOL,
ARG_FLOAT
}
const valid_commands = [
["money", [ARG_INT] ],
["whereyoufrom", [ARG_STRING] ]
]
func money(value):
SimData.budget += int(value)
return "Budget changed to " + str(value)
func whereyoufrom(value):
SimData.city_name = str(value)
return "Changed city name to: " + str(value)