essential.setupGameRoom
Prototype
function setupGameRoom(gameSetting)
Input parameters
gameSetting - array object containing settings for this room
Return value
null
Description
Called once during the creation of the game room and holds an object with information about this game room. The gameSetting parameter of the function contains an object with info about the room. This info corresponds to data you have entered in the room definition xml file. Available fields in the gameSetting object are name, plus18, memberOnly, goldOnly, maxPlayers and typeInfo.
Example code
var g_level; // The level of this game room
function setupGameRoom(gameSetting)
{
// The typeInfo is set in the room definition xml-file and represents
// the level of the questions (easy/medium/hard)
g_level = gameSetting.typeInfo;
}
