Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/maps/random/rmgen/RandomMapLogger.js
function RandomMapLogger() | function RandomMapLogger() | ||||
{ | { | ||||
this.lastTime = undefined; | this.lastTime = undefined; | ||||
this.startTime = Engine.GetMicroseconds(); | this.startTime = Engine.GetMicroseconds(); | ||||
this.prefix = ""; // seems noisy | this.prefix = ""; // seems noisy | ||||
// Don't print in test cases | |||||
if (g_MapSettings.Name) | |||||
this.printDirectly( | this.printDirectly( | ||||
this.prefix + | this.prefix + | ||||
"Generating " + g_MapSettings.Name + | "Generating " + g_MapSettings.Name + | ||||
" of size " + g_MapSettings.Size + | " of size " + g_MapSettings.Size + | ||||
" and " + getNumPlayers() + " players.\n"); | " and " + (g_MapSettings.PlayerData.length - 1) + " players.\n"); | ||||
} | } | ||||
RandomMapLogger.prototype.printDirectly = function(string) | RandomMapLogger.prototype.printDirectly = function(string) | ||||
{ | { | ||||
log(string); | log(string); | ||||
print(string); | print(string); | ||||
}; | }; | ||||
Show All 26 Lines |
Wildfire Games · Phabricator