essential.playerAddedToIdleGame
Prototype
function playerAddedToIdleGame(playername)
Input parameters
playername - the user name of the player who was added to the game
Return value
true if the game should be started
Description
Called when a player enters an idle room (a room without a state), return true if the game should be started. The game is started by setting the state to STARTGAME_STATE.
Example code
function playerAddedToIdleGame(playerName)
{
// Return true, so that we immediately start the game when the first player
// joins the room
return true;
}
