mirror of
https://github.com/tonytins/citylimits.git
synced 2025-03-22 07:22:20 +00:00
- Changed debug control into custom window dialog. - Reworked "whereyoufrom" cheat - Changed how the money cheat works
21 lines
351 B
GDScript
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)
|