mirror of
https://github.com/tonytins/citylimits
synced 2025-12-15 12:44:43 -05:00
Finished debug/cheat console
This commit is contained in:
parent
59ea5dd6f0
commit
f6438a9bee
7 changed files with 95 additions and 16 deletions
20
scripts/command_handler.gd
Normal file
20
scripts/command_handler.gd
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
extends Node
|
||||
|
||||
enum {
|
||||
ARG_INT,
|
||||
ARG_STRING,
|
||||
ARG_BOOL,
|
||||
ARG_FLOAT
|
||||
}
|
||||
|
||||
const valid_commands = [
|
||||
["motherlode", [null],
|
||||
["whereyoufrom", [ARG_STRING]]
|
||||
]
|
||||
]
|
||||
|
||||
func motherlode():
|
||||
SimData.budget += 50000
|
||||
|
||||
func whereyoufrom(city_name):
|
||||
SimData.city_name = city_name
|
||||
Loading…
Add table
Add a link
Reference in a new issue