Class: Console

Console


new Console()

An instance of this class is passed to your script with the name "console".
Source:
Console.js

Methods


log(logMessage)

Logs a message to the console. The console can be viewed in the game run details screen. Only 4048 bytes are stored, if more characters are logged [...] will be shown instead.
Parameters:
Name Type Description
logMessage String message to log
Source:
Console.js

setDayStatistic(type, value)

Stores a value for a custom statistics graph. If more than one value is stored for a business day, only the last one is kept.
Parameters:
Name Type Description
type Number must be 0 .. 4 - as you can have 5 custom graphs max
value Number a value for a given business day
Source:
Console.js

setDayStatisticDescription(type, description)

Sets a description for a custom statistic. Usually called once per game per type.
Parameters:
Name Type Description
type Number must be 0 .. 4 - as you can have 5 custom graphs max
description String for that type
Source:
Console.js