Difference between revisions of "Gaming"

From GiderosMobile
Line 18: Line 18:
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
 
=== <translate>Methods</translate> ===
 
=== <translate>Methods</translate> ===
[[Special:MyLanguage/Gaming.new|Gaming.new]] <br/><!-- GIDEROSMTD:Gaming.new -->
+
[[Special:MyLanguage/Gaming.new|Gaming.new]] <br/><!-- GIDEROSMTD:Gaming.new(backend)  -->
[[Special:MyLanguage/Gaming:autoMatch|Gaming:autoMatch]] <br/><!-- GIDEROSMTD:Gaming:autoMatch -->
+
[[Special:MyLanguage/Gaming:autoMatch|Gaming:autoMatch]] <br/><!-- GIDEROSMTD:Gaming:autoMatch()  -->
[[Special:MyLanguage/Gaming:deleteState|Gaming:deleteState]] <br/><!-- GIDEROSMTD:Gaming:deleteState -->
+
[[Special:MyLanguage/Gaming:deleteState|Gaming:deleteState]] <br/><!-- GIDEROSMTD:Gaming:deleteState(key)  -->
[[Special:MyLanguage/Gaming:getAllPlayers|Gaming:getAllPlayers]] <br/><!-- GIDEROSMTD:Gaming:getAllPlayers -->
+
[[Special:MyLanguage/Gaming:getAllPlayers|Gaming:getAllPlayers]] <br/><!-- GIDEROSMTD:Gaming:getAllPlayers()  -->
[[Special:MyLanguage/Gaming:getPlayerId|Gaming:getPlayerId]] <br/><!-- GIDEROSMTD:Gaming:getPlayerId -->
+
[[Special:MyLanguage/Gaming:getPlayerId|Gaming:getPlayerId]] <br/><!-- GIDEROSMTD:Gaming:getPlayerId()  -->
[[Special:MyLanguage/Gaming:getPlayerInfo|Gaming:getPlayerInfo]] <br/><!-- GIDEROSMTD:Gaming:getPlayerInfo -->
+
[[Special:MyLanguage/Gaming:getPlayerInfo|Gaming:getPlayerInfo]] <br/><!-- GIDEROSMTD:Gaming:getPlayerInfo()  -->
[[Special:MyLanguage/Gaming:getPlayerName|Gaming:getPlayerName]] <br/><!-- GIDEROSMTD:Gaming:getPlayerName -->
+
[[Special:MyLanguage/Gaming:getPlayerName|Gaming:getPlayerName]] <br/><!-- GIDEROSMTD:Gaming:getPlayerName()  -->
[[Special:MyLanguage/Gaming:getPlayerPicture|Gaming:getPlayerPicture]] <br/><!-- GIDEROSMTD:Gaming:getPlayerPicture -->
+
[[Special:MyLanguage/Gaming:getPlayerPicture|Gaming:getPlayerPicture]] <br/><!-- GIDEROSMTD:Gaming:getPlayerPicture()  -->
[[Special:MyLanguage/Gaming:getPlayerScore|Gaming:getPlayerScore]] <br/><!-- GIDEROSMTD:Gaming:getPlayerScore -->
+
[[Special:MyLanguage/Gaming:getPlayerScore|Gaming:getPlayerScore]] <br/><!-- GIDEROSMTD:Gaming:getPlayerScore()  -->
[[Special:MyLanguage/Gaming:incrementAchievement|Gaming:incrementAchievement]] <br/><!-- GIDEROSMTD:Gaming:incrementAchievement -->
+
[[Special:MyLanguage/Gaming:incrementAchievement|Gaming:incrementAchievement]] <br/><!-- GIDEROSMTD:Gaming:incrementAchievement(achievementId,numSteps,immediate)  -->
[[Special:MyLanguage/Gaming:invitePlayers|Gaming:invitePlayers]] <br/><!-- GIDEROSMTD:Gaming:invitePlayers -->
+
[[Special:MyLanguage/Gaming:invitePlayers|Gaming:invitePlayers]] <br/><!-- GIDEROSMTD:Gaming:invitePlayers()  -->
[[Special:MyLanguage/Gaming:isLoggedIn|Gaming:isLoggedIn]] <br/><!-- GIDEROSMTD:Gaming:isLoggedIn -->
+
[[Special:MyLanguage/Gaming:isLoggedIn|Gaming:isLoggedIn]] <br/><!-- GIDEROSMTD:Gaming:isLoggedIn()  -->
[[Special:MyLanguage/Gaming:joinRoom|Gaming:joinRoom]] <br/><!-- GIDEROSMTD:Gaming:joinRoom -->
+
[[Special:MyLanguage/Gaming:joinRoom|Gaming:joinRoom]] <br/><!-- GIDEROSMTD:Gaming:joinRoom()  -->
[[Special:MyLanguage/Gaming:loadAchievements|Gaming:loadAchievements]] <br/><!-- GIDEROSMTD:Gaming:loadAchievements -->
+
[[Special:MyLanguage/Gaming:loadAchievements|Gaming:loadAchievements]] <br/><!-- GIDEROSMTD:Gaming:loadAchievements()  -->
[[Special:MyLanguage/Gaming:loadPlayerCenteredScores|Gaming:loadPlayerCenteredScores]] <br/><!-- GIDEROSMTD:Gaming:loadPlayerCenteredScores -->
+
[[Special:MyLanguage/Gaming:loadPlayerCenteredScores|Gaming:loadPlayerCenteredScores]] <br/><!-- GIDEROSMTD:Gaming:loadPlayerCenteredScores(leaderboardId,timeSpan,collection,maxEntries)  -->
[[Special:MyLanguage/Gaming:loadScores|Gaming:loadScores]] <br/><!-- GIDEROSMTD:Gaming:loadScores -->
+
[[Special:MyLanguage/Gaming:loadScores|Gaming:loadScores]] <br/><!-- GIDEROSMTD:Gaming:loadScores(leaderboardId,timeSpan,collection,maxEntries)  -->
[[Special:MyLanguage/Gaming:loadState|Gaming:loadState]] <br/><!-- GIDEROSMTD:Gaming:loadState -->
+
[[Special:MyLanguage/Gaming:loadState|Gaming:loadState]] <br/><!-- GIDEROSMTD:Gaming:loadState(key)  -->
[[Special:MyLanguage/Gaming:login|Gaming:login]] <br/><!-- GIDEROSMTD:Gaming:login -->
+
[[Special:MyLanguage/Gaming:login|Gaming:login]] <br/><!-- GIDEROSMTD:Gaming:login()  -->
[[Special:MyLanguage/Gaming:logout|Gaming:logout]] <br/><!-- GIDEROSMTD:Gaming:logout -->
+
[[Special:MyLanguage/Gaming:logout|Gaming:logout]] <br/><!-- GIDEROSMTD:Gaming:logout()  -->
[[Special:MyLanguage/Gaming:reportAchievement|Gaming:reportAchievement]] <br/><!-- GIDEROSMTD:Gaming:reportAchievement -->
+
[[Special:MyLanguage/Gaming:reportAchievement|Gaming:reportAchievement]] <br/><!-- GIDEROSMTD:Gaming:reportAchievement(achievementId,numSteps,immediate)  -->
[[Special:MyLanguage/Gaming:reportScore|Gaming:reportScore]] <br/><!-- GIDEROSMTD:Gaming:reportScore -->
+
[[Special:MyLanguage/Gaming:reportScore|Gaming:reportScore]] <br/><!-- GIDEROSMTD:Gaming:reportScore(leaderboardId,score,immediate)  -->
[[Special:MyLanguage/Gaming:resolveState|Gaming:resolveState]] <br/><!-- GIDEROSMTD:Gaming:resolveState -->
+
[[Special:MyLanguage/Gaming:resolveState|Gaming:resolveState]] <br/><!-- GIDEROSMTD:Gaming:resolveState(key,version,data)  -->
[[Special:MyLanguage/Gaming:revealAchievement|Gaming:revealAchievement]] <br/><!-- GIDEROSMTD:Gaming:revealAchievement -->
+
[[Special:MyLanguage/Gaming:revealAchievement|Gaming:revealAchievement]] <br/><!-- GIDEROSMTD:Gaming:revealAchievement(achievementId,immediate)  -->
[[Special:MyLanguage/Gaming:sendTo|Gaming:sendTo]] <br/><!-- GIDEROSMTD:Gaming:sendTo -->
+
[[Special:MyLanguage/Gaming:sendTo|Gaming:sendTo]] <br/><!-- GIDEROSMTD:Gaming:sendTo()  -->
[[Special:MyLanguage/Gaming:sendToAll|Gaming:sendToAll]] <br/><!-- GIDEROSMTD:Gaming:sendToAll -->
+
[[Special:MyLanguage/Gaming:sendToAll|Gaming:sendToAll]] <br/><!-- GIDEROSMTD:Gaming:sendToAll()  -->
[[Special:MyLanguage/Gaming:showAchievements|Gaming:showAchievements]] <br/><!-- GIDEROSMTD:Gaming:showAchievements -->
+
[[Special:MyLanguage/Gaming:showAchievements|Gaming:showAchievements]] <br/><!-- GIDEROSMTD:Gaming:showAchievements()  -->
[[Special:MyLanguage/Gaming:showInvitations|Gaming:showInvitations]] <br/><!-- GIDEROSMTD:Gaming:showInvitations -->
+
[[Special:MyLanguage/Gaming:showInvitations|Gaming:showInvitations]] <br/><!-- GIDEROSMTD:Gaming:showInvitations()  -->
[[Special:MyLanguage/Gaming:showLeaderboard|Gaming:showLeaderboard]] <br/><!-- GIDEROSMTD:Gaming:showLeaderboard -->
+
[[Special:MyLanguage/Gaming:showLeaderboard|Gaming:showLeaderboard]] <br/><!-- GIDEROSMTD:Gaming:showLeaderboard(leaderboardId)  -->
[[Special:MyLanguage/Gaming:showWaitingRoom|Gaming:showWaitingRoom]] <br/><!-- GIDEROSMTD:Gaming:showWaitingRoom -->
+
[[Special:MyLanguage/Gaming:showWaitingRoom|Gaming:showWaitingRoom]] <br/><!-- GIDEROSMTD:Gaming:showWaitingRoom()  -->
[[Special:MyLanguage/Gaming:updateState|Gaming:updateState]] <br/><!-- GIDEROSMTD:Gaming:updateState -->
+
[[Special:MyLanguage/Gaming:updateState|Gaming:updateState]] <br/><!-- GIDEROSMTD:Gaming:updateState(key,data,immediate)  -->
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
 
=== <translate>Events</translate> ===
 
=== <translate>Events</translate> ===
[[Special:MyLanguage/Event.CONNECTED_TO_ROOM|Event.CONNECTED_TO_ROOM]]<br/><!-- GIDEROSEVT:Event.CONNECTED_TO_ROOM -->
+
[[Special:MyLanguage/Event.CONNECTED_TO_ROOM|Event.CONNECTED_TO_ROOM]]<br/><!-- GIDEROSEVT:Event.CONNECTED_TO_ROOM conntectedToRoom-->
[[Special:MyLanguage/Event.DATA_RECEIVED|Event.DATA_RECEIVED]]<br/><!-- GIDEROSEVT:Event.DATA_RECEIVED -->
+
[[Special:MyLanguage/Event.DATA_RECEIVED|Event.DATA_RECEIVED]]<br/><!-- GIDEROSEVT:Event.DATA_RECEIVED dataReceived-->
[[Special:MyLanguage/Event.DISCONNECTED_FROM_ROOM|Event.DISCONNECTED_FROM_ROOM]]<br/><!-- GIDEROSEVT:Event.DISCONNECTED_FROM_ROOM -->
+
[[Special:MyLanguage/Event.DISCONNECTED_FROM_ROOM|Event.DISCONNECTED_FROM_ROOM]]<br/><!-- GIDEROSEVT:Event.DISCONNECTED_FROM_ROOM disconntectedFromRoom-->
[[Special:MyLanguage/Event.GAME_STARTED|Event.GAME_STARTED]]<br/><!-- GIDEROSEVT:Event.GAME_STARTED -->
+
[[Special:MyLanguage/Event.GAME_STARTED|Event.GAME_STARTED]]<br/><!-- GIDEROSEVT:Event.GAME_STARTED gameStarted-->
[[Special:MyLanguage/Event.INVITATION_RECEIVED|Event.INVITATION_RECEIVED]]<br/><!-- GIDEROSEVT:Event.INVITATION_RECEIVED -->
+
[[Special:MyLanguage/Event.INVITATION_RECEIVED|Event.INVITATION_RECEIVED]]<br/><!-- GIDEROSEVT:Event.INVITATION_RECEIVED invitationReceived-->
[[Special:MyLanguage/Event.JOINED_ROOM|Event.JOINED_ROOM]]<br/><!-- GIDEROSEVT:Event.JOINED_ROOM -->
+
[[Special:MyLanguage/Event.JOINED_ROOM|Event.JOINED_ROOM]]<br/><!-- GIDEROSEVT:Event.JOINED_ROOM joinedRoom-->
[[Special:MyLanguage/Event.LEFT_ROOM|Event.LEFT_ROOM]]<br/><!-- GIDEROSEVT:Event.LEFT_ROOM -->
+
[[Special:MyLanguage/Event.LEFT_ROOM|Event.LEFT_ROOM]]<br/><!-- GIDEROSEVT:Event.LEFT_ROOM leftRoom-->
[[Special:MyLanguage/Event.LOAD_ACHIEVEMENTS_COMPLETE|Event.LOAD_ACHIEVEMENTS_COMPLETE]]<br/><!-- GIDEROSEVT:Event.LOAD_ACHIEVEMENTS_COMPLETE -->
+
[[Special:MyLanguage/Event.LOAD_ACHIEVEMENTS_COMPLETE|Event.LOAD_ACHIEVEMENTS_COMPLETE]]<br/><!-- GIDEROSEVT:Event.LOAD_ACHIEVEMENTS_COMPLETE loadAchievementsComplete-->
[[Special:MyLanguage/Event.LOAD_ACHIEVEMENTS_ERROR|Event.LOAD_ACHIEVEMENTS_ERROR]]<br/><!-- GIDEROSEVT:Event.LOAD_ACHIEVEMENTS_ERROR -->
+
[[Special:MyLanguage/Event.LOAD_ACHIEVEMENTS_ERROR|Event.LOAD_ACHIEVEMENTS_ERROR]]<br/><!-- GIDEROSEVT:Event.LOAD_ACHIEVEMENTS_ERROR loadAchievementsError-->
[[Special:MyLanguage/Event.LOAD_SCORES_COMPLETE|Event.LOAD_SCORES_COMPLETE]]<br/><!-- GIDEROSEVT:Event.LOAD_SCORES_COMPLETE -->
+
[[Special:MyLanguage/Event.LOAD_SCORES_COMPLETE|Event.LOAD_SCORES_COMPLETE]]<br/><!-- GIDEROSEVT:Event.LOAD_SCORES_COMPLETE loadScoresComplete-->
[[Special:MyLanguage/Event.LOAD_SCORES_ERROR|Event.LOAD_SCORES_ERROR]]<br/><!-- GIDEROSEVT:Event.LOAD_SCORES_ERROR -->
+
[[Special:MyLanguage/Event.LOAD_SCORES_ERROR|Event.LOAD_SCORES_ERROR]]<br/><!-- GIDEROSEVT:Event.LOAD_SCORES_ERROR loadScoresComplete-->
[[Special:MyLanguage/Event.LOGIN_COMPLETE|Event.LOGIN_COMPLETE]]<br/><!-- GIDEROSEVT:Event.LOGIN_COMPLETE -->
+
[[Special:MyLanguage/Event.LOGIN_COMPLETE|Event.LOGIN_COMPLETE]]<br/><!-- GIDEROSEVT:Event.LOGIN_COMPLETE loginComplete-->
[[Special:MyLanguage/Event.LOGIN_ERROR|Event.LOGIN_ERROR]]<br/><!-- GIDEROSEVT:Event.LOGIN_ERROR -->
+
[[Special:MyLanguage/Event.LOGIN_ERROR|Event.LOGIN_ERROR]]<br/><!-- GIDEROSEVT:Event.LOGIN_ERROR loginError-->
[[Special:MyLanguage/Event.PEER_CONNECTED|Event.PEER_CONNECTED]]<br/><!-- GIDEROSEVT:Event.PEER_CONNECTED -->
+
[[Special:MyLanguage/Event.PEER_CONNECTED|Event.PEER_CONNECTED]]<br/><!-- GIDEROSEVT:Event.PEER_CONNECTED peerConnected-->
[[Special:MyLanguage/Event.PEER_DECLINED|Event.PEER_DECLINED]]<br/><!-- GIDEROSEVT:Event.PEER_DECLINED -->
+
[[Special:MyLanguage/Event.PEER_DECLINED|Event.PEER_DECLINED]]<br/><!-- GIDEROSEVT:Event.PEER_DECLINED peerDeclined-->
[[Special:MyLanguage/Event.PEER_DISCONNECTED|Event.PEER_DISCONNECTED]]<br/><!-- GIDEROSEVT:Event.PEER_DISCONNECTED -->
+
[[Special:MyLanguage/Event.PEER_DISCONNECTED|Event.PEER_DISCONNECTED]]<br/><!-- GIDEROSEVT:Event.PEER_DISCONNECTED peerDisconnected-->
[[Special:MyLanguage/Event.PEER_INVITED|Event.PEER_INVITED]]<br/><!-- GIDEROSEVT:Event.PEER_INVITED -->
+
[[Special:MyLanguage/Event.PEER_INVITED|Event.PEER_INVITED]]<br/><!-- GIDEROSEVT:Event.PEER_INVITED peerInvited-->
[[Special:MyLanguage/Event.PEER_JOINED|Event.PEER_JOINED]]<br/><!-- GIDEROSEVT:Event.PEER_JOINED -->
+
[[Special:MyLanguage/Event.PEER_JOINED|Event.PEER_JOINED]]<br/><!-- GIDEROSEVT:Event.PEER_JOINED peerJoined-->
[[Special:MyLanguage/Event.PEER_LEFT|Event.PEER_LEFT]]<br/><!-- GIDEROSEVT:Event.PEER_LEFT -->
+
[[Special:MyLanguage/Event.PEER_LEFT|Event.PEER_LEFT]]<br/><!-- GIDEROSEVT:Event.PEER_LEFT peerLeft-->
[[Special:MyLanguage/Event.PLAYER_INFORMATION_COMPLETE|Event.PLAYER_INFORMATION_COMPLETE]]<br/><!-- GIDEROSEVT:Event.PLAYER_INFORMATION_COMPLETE -->
+
[[Special:MyLanguage/Event.PLAYER_INFORMATION_COMPLETE|Event.PLAYER_INFORMATION_COMPLETE]]<br/><!-- GIDEROSEVT:Event.PLAYER_INFORMATION_COMPLETE playerInformationComplete-->
[[Special:MyLanguage/Event.PLAYER_INFORMATION_ERROR|Event.PLAYER_INFORMATION_ERROR]]<br/><!-- GIDEROSEVT:Event.PLAYER_INFORMATION_ERROR -->
+
[[Special:MyLanguage/Event.PLAYER_INFORMATION_ERROR|Event.PLAYER_INFORMATION_ERROR]]<br/><!-- GIDEROSEVT:Event.PLAYER_INFORMATION_ERROR playerInformationError-->
[[Special:MyLanguage/Event.PLAYER_SCORE_COMPLETE|Event.PLAYER_SCORE_COMPLETE]]<br/><!-- GIDEROSEVT:Event.PLAYER_SCORE_COMPLETE -->
+
[[Special:MyLanguage/Event.PLAYER_SCORE_COMPLETE|Event.PLAYER_SCORE_COMPLETE]]<br/><!-- GIDEROSEVT:Event.PLAYER_SCORE_COMPLETE playerScoreComplete-->
[[Special:MyLanguage/Event.PLAYER_SCORE_ERROR|Event.PLAYER_SCORE_ERROR]]<br/><!-- GIDEROSEVT:Event.PLAYER_SCORE_ERROR -->
+
[[Special:MyLanguage/Event.PLAYER_SCORE_ERROR|Event.PLAYER_SCORE_ERROR]]<br/><!-- GIDEROSEVT:Event.PLAYER_SCORE_ERROR playerScoreError-->
[[Special:MyLanguage/Event.REPORT_ACHIEVEMENT_COMPLETE|Event.REPORT_ACHIEVEMENT_COMPLETE]]<br/><!-- GIDEROSEVT:Event.REPORT_ACHIEVEMENT_COMPLETE -->
+
[[Special:MyLanguage/Event.REPORT_ACHIEVEMENT_COMPLETE|Event.REPORT_ACHIEVEMENT_COMPLETE]]<br/><!-- GIDEROSEVT:Event.REPORT_ACHIEVEMENT_COMPLETE reportAchievementComplete-->
[[Special:MyLanguage/Event.REPORT_ACHIEVEMENT_ERROR|Event.REPORT_ACHIEVEMENT_ERROR]]<br/><!-- GIDEROSEVT:Event.REPORT_ACHIEVEMENT_ERROR -->
+
[[Special:MyLanguage/Event.REPORT_ACHIEVEMENT_ERROR|Event.REPORT_ACHIEVEMENT_ERROR]]<br/><!-- GIDEROSEVT:Event.REPORT_ACHIEVEMENT_ERROR reportAchievementError-->
[[Special:MyLanguage/Event.REPORT_SCORE_COMPLETE|Event.REPORT_SCORE_COMPLETE]]<br/><!-- GIDEROSEVT:Event.REPORT_SCORE_COMPLETE -->
+
[[Special:MyLanguage/Event.REPORT_SCORE_COMPLETE|Event.REPORT_SCORE_COMPLETE]]<br/><!-- GIDEROSEVT:Event.REPORT_SCORE_COMPLETE reportScoreComplete-->
[[Special:MyLanguage/Event.REPORT_SCORE_ERROR|Event.REPORT_SCORE_ERROR]]<br/><!-- GIDEROSEVT:Event.REPORT_SCORE_ERROR -->
+
[[Special:MyLanguage/Event.REPORT_SCORE_ERROR|Event.REPORT_SCORE_ERROR]]<br/><!-- GIDEROSEVT:Event.REPORT_SCORE_ERROR reportScoreError-->
[[Special:MyLanguage/Event.ROOM_AUTO_MATCHING|Event.ROOM_AUTO_MATCHING]]<br/><!-- GIDEROSEVT:Event.ROOM_AUTO_MATCHING -->
+
[[Special:MyLanguage/Event.ROOM_AUTO_MATCHING|Event.ROOM_AUTO_MATCHING]]<br/><!-- GIDEROSEVT:Event.ROOM_AUTO_MATCHING roomAutoMatching-->
[[Special:MyLanguage/Event.ROOM_CONNECTED|Event.ROOM_CONNECTED]]<br/><!-- GIDEROSEVT:Event.ROOM_CONNECTED -->
+
[[Special:MyLanguage/Event.ROOM_CONNECTED|Event.ROOM_CONNECTED]]<br/><!-- GIDEROSEVT:Event.ROOM_CONNECTED roomConnected-->
[[Special:MyLanguage/Event.ROOM_CONNECTING|Event.ROOM_CONNECTING]]<br/><!-- GIDEROSEVT:Event.ROOM_CONNECTING -->
+
[[Special:MyLanguage/Event.ROOM_CONNECTING|Event.ROOM_CONNECTING]]<br/><!-- GIDEROSEVT:Event.ROOM_CONNECTING roomConnecting-->
[[Special:MyLanguage/Event.ROOM_CREATED|Event.ROOM_CREATED]]<br/><!-- GIDEROSEVT:Event.ROOM_CREATED -->
+
[[Special:MyLanguage/Event.ROOM_CREATED|Event.ROOM_CREATED]]<br/><!-- GIDEROSEVT:Event.ROOM_CREATED roomCreated-->
[[Special:MyLanguage/Event.STATE_CONFLICT|Event.STATE_CONFLICT]]<br/><!-- GIDEROSEVT:Event.STATE_CONFLICT -->
+
[[Special:MyLanguage/Event.STATE_CONFLICT|Event.STATE_CONFLICT]]<br/><!-- GIDEROSEVT:Event.STATE_CONFLICT stateConflict-->
[[Special:MyLanguage/Event.STATE_DELETED|Event.STATE_DELETED]]<br/><!-- GIDEROSEVT:Event.STATE_DELETED -->
+
[[Special:MyLanguage/Event.STATE_DELETED|Event.STATE_DELETED]]<br/><!-- GIDEROSEVT:Event.STATE_DELETED stateDeleted-->
[[Special:MyLanguage/Event.STATE_ERROR|Event.STATE_ERROR]]<br/><!-- GIDEROSEVT:Event.STATE_ERROR -->
+
[[Special:MyLanguage/Event.STATE_ERROR|Event.STATE_ERROR]]<br/><!-- GIDEROSEVT:Event.STATE_ERROR stateError-->
[[Special:MyLanguage/Event.STATE_LOADED|Event.STATE_LOADED]]<br/><!-- GIDEROSEVT:Event.STATE_LOADED -->
+
[[Special:MyLanguage/Event.STATE_LOADED|Event.STATE_LOADED]]<br/><!-- GIDEROSEVT:Event.STATE_LOADED stateLoaded-->
 
=== <translate>Constants</translate> ===
 
=== <translate>Constants</translate> ===
[[Special:MyLanguage/Gaming.ALL_PLAYERS|Gaming.ALL_PLAYERS]]<br/><!-- GIDEROSCST:Gaming.ALL_PLAYERS -->
+
[[Special:MyLanguage/Gaming.ALL_PLAYERS|Gaming.ALL_PLAYERS]]<br/><!-- GIDEROSCST:Gaming.ALL_PLAYERS 1-->
[[Special:MyLanguage/Gaming.ALL_TIME|Gaming.ALL_TIME]]<br/><!-- GIDEROSCST:Gaming.ALL_TIME -->
+
[[Special:MyLanguage/Gaming.ALL_TIME|Gaming.ALL_TIME]]<br/><!-- GIDEROSCST:Gaming.ALL_TIME 2-->
[[Special:MyLanguage/Gaming.FRIENDS|Gaming.FRIENDS]]<br/><!-- GIDEROSCST:Gaming.FRIENDS -->
+
[[Special:MyLanguage/Gaming.FRIENDS|Gaming.FRIENDS]]<br/><!-- GIDEROSCST:Gaming.FRIENDS 0-->
[[Special:MyLanguage/Gaming.HIDDEN|Gaming.HIDDEN]]<br/><!-- GIDEROSCST:Gaming.HIDDEN -->
+
[[Special:MyLanguage/Gaming.HIDDEN|Gaming.HIDDEN]]<br/><!-- GIDEROSCST:Gaming.HIDDEN 2-->
[[Special:MyLanguage/Gaming.REVEALED|Gaming.REVEALED]]<br/><!-- GIDEROSCST:Gaming.REVEALED -->
+
[[Special:MyLanguage/Gaming.REVEALED|Gaming.REVEALED]]<br/><!-- GIDEROSCST:Gaming.REVEALED 1-->
[[Special:MyLanguage/Gaming.TODAY|Gaming.TODAY]]<br/><!-- GIDEROSCST:Gaming.TODAY -->
+
[[Special:MyLanguage/Gaming.TODAY|Gaming.TODAY]]<br/><!-- GIDEROSCST:Gaming.TODAY 0-->
[[Special:MyLanguage/Gaming.UNLOCKED|Gaming.UNLOCKED]]<br/><!-- GIDEROSCST:Gaming.UNLOCKED -->
+
[[Special:MyLanguage/Gaming.UNLOCKED|Gaming.UNLOCKED]]<br/><!-- GIDEROSCST:Gaming.UNLOCKED 0-->
[[Special:MyLanguage/Gaming.WEEK|Gaming.WEEK]]<br/><!-- GIDEROSCST:Gaming.WEEK -->
+
[[Special:MyLanguage/Gaming.WEEK|Gaming.WEEK]]<br/><!-- GIDEROSCST:Gaming.WEEK 1-->
 
|}
 
|}

Revision as of 15:33, 13 September 2018


Supported platforms: Platform android.pngPlatform ios.png
Available since: Gideros 2012.09

Description


The Gaming class is defined in the module "gaming". Therefore, you need to call
require("gaming") before using it. Loading the Gaming module
also creates a global class Gaming.

Currently supports:

  • Gaming.new("googleplay") -- Android
  • Gaming.new("gamekit") -- iOS

Methods

Gaming.new
Gaming:autoMatch
Gaming:deleteState
Gaming:getAllPlayers
Gaming:getPlayerId
Gaming:getPlayerInfo
Gaming:getPlayerName
Gaming:getPlayerPicture
Gaming:getPlayerScore
Gaming:incrementAchievement
Gaming:invitePlayers
Gaming:isLoggedIn
Gaming:joinRoom
Gaming:loadAchievements
Gaming:loadPlayerCenteredScores
Gaming:loadScores
Gaming:loadState
Gaming:login
Gaming:logout
Gaming:reportAchievement
Gaming:reportScore
Gaming:resolveState
Gaming:revealAchievement
Gaming:sendTo
Gaming:sendToAll
Gaming:showAchievements
Gaming:showInvitations
Gaming:showLeaderboard
Gaming:showWaitingRoom
Gaming:updateState

Events

Event.CONNECTED_TO_ROOM
Event.DATA_RECEIVED
Event.DISCONNECTED_FROM_ROOM
Event.GAME_STARTED
Event.INVITATION_RECEIVED
Event.JOINED_ROOM
Event.LEFT_ROOM
Event.LOAD_ACHIEVEMENTS_COMPLETE
Event.LOAD_ACHIEVEMENTS_ERROR
Event.LOAD_SCORES_COMPLETE
Event.LOAD_SCORES_ERROR
Event.LOGIN_COMPLETE
Event.LOGIN_ERROR
Event.PEER_CONNECTED
Event.PEER_DECLINED
Event.PEER_DISCONNECTED
Event.PEER_INVITED
Event.PEER_JOINED
Event.PEER_LEFT
Event.PLAYER_INFORMATION_COMPLETE
Event.PLAYER_INFORMATION_ERROR
Event.PLAYER_SCORE_COMPLETE
Event.PLAYER_SCORE_ERROR
Event.REPORT_ACHIEVEMENT_COMPLETE
Event.REPORT_ACHIEVEMENT_ERROR
Event.REPORT_SCORE_COMPLETE
Event.REPORT_SCORE_ERROR
Event.ROOM_AUTO_MATCHING
Event.ROOM_CONNECTED
Event.ROOM_CONNECTING
Event.ROOM_CREATED
Event.STATE_CONFLICT
Event.STATE_DELETED
Event.STATE_ERROR
Event.STATE_LOADED

Constants

Gaming.ALL_PLAYERS
Gaming.ALL_TIME
Gaming.FRIENDS
Gaming.HIDDEN
Gaming.REVEALED
Gaming.TODAY
Gaming.UNLOCKED
Gaming.WEEK