Games\GamesByEmail.GameLoader.js
GamesByEmail
Object
Foundation.ClientLoader
All Implemented Interfaces:
GamesByEmail.GameLoader
extendsClientLoader
Constructor Summary |
|
Field Summary | |
static | resourcePack
Override to add URLs for script list requests.
|
Fields inherited from Foundation.ClientLoader |
debug , parameterStore |
Fields inherited from Foundation.Elemental |
$Foundation_$registry_index |
Method Summary | |
|
|
static |
|
|
|
static |
|
static |
|
|
|
static |
|
static |
|
|
Called when the loader receives the script list from the server.
|
static |
|
static |
|
static |
|
Methods inherited from Foundation.ClientLoader |
abort , readyToProcess , requestScriptList |
Methods inherited from Foundation.Class |
getTypePath , isInstanceOf |
Methods inherited from Foundation.Elemental |
attachEvent , detachEvent , elementId , event , getById , getElement , getElementValue , getElements , getFirst , getNext , parseElementId , processHtml , processHtml |
Methods inherited from Foundation.Resourceful |
resource , resource , resourceUrl , resourceUrl |
Constructor Detail |
GamesByEmail.GameLoader()
Field Detail |
static Object
resourcePack
Override to add URLs for script list requests.
Overrides:resourcePack
in class ClientLoader
Method Detail |
addGamePreviewToPage()
static addGamePreviewToPage(elementId,
gameType,
numPlayers,
properties)
elementId -
gameType -
numPlayers -
properties -
addGamesToPage()
static addGamesToPage(elementIdList,
gameIdList)
elementIdList -
gameIdList -
static changeDomain(domain,
extension)
domain -
extension -
dispose()
dispose
in class ClientLoader
static getScriptSrc(id)
id -
static makeArray(idList)
idList -
void
receiveScriptList(/*Array
*/ scripts)
Called when the loader receives the script list from the server.
Overrides:receiveScriptList
in class ClientLoader
scripts -An array of conditions and urls. The script list is in the form of
[test:"ConditionExpression"
, src:"ScriptUrl.js" | execute:"Expression"
,...]
. For each script, test
is evaled, and if the ConditionExpression is true, either the execute
will get evaled or the script at src
URL will be requested and loaded.
static writeGamePreviewToPage(gameType,
numPlayers,
properties,
message)
gameType -
numPlayers -
properties -
message -
static writeGamesToPage(gameIdList)
gameIdList -
static writePoliticsJudgeToPage(initalSetup)
initalSetup -