Skip to content

Commit

Permalink
Possibility to query if player logout is supported by game service
Browse files Browse the repository at this point in the history
  • Loading branch information
MrStahlfelge committed Feb 15, 2019
1 parent c4cdd8a commit 6a3bfd4
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ public boolean isFeatureSupported(GameServiceFeature feature) {
case ShowAchievementsUI:
case ShowAllLeaderboardsUI:
case ShowLeaderboardUI:
case PlayerLogOut:
return true;
default:
return false;
Expand Down
1 change: 1 addition & 0 deletions android-gpgs/src/de/golfgl/gdxgamesvcs/GpgsClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,7 @@ public boolean isFeatureSupported(GameServiceFeature feature) {
case SubmitEvents:
case FetchAchievements:
case FetchLeaderBoardEntries:
case PlayerLogOut:
return true;
default:
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,7 @@ public boolean isFeatureSupported(GameServiceFeature feature) {
case FetchAchievements:
case GameStateDelete:
case FetchGameStates:
case PlayerLogOut:
return true;
default:
return false;
Expand Down
5 changes: 4 additions & 1 deletion core/src/de/golfgl/gdxgamesvcs/IGameServiceClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public interface IGameServiceClient {
public static final String GS_GOOGLEPLAYGAMES_ID = "GPGS";
public static final String GS_AMAZONGC_ID = "GS_AMAZONGC";
public static final String GS_KONGREGATE_ID = "GS_KONG";
public static final String GS_NEWGROUNDS_ID = "GS_NGIO";
public static final String GS_GAMECENTER_ID = "GS_APPLE";

/**
* Gets an id for this game service for identifiying or showing labels
Expand Down Expand Up @@ -277,6 +277,9 @@ public static enum GameServiceFeature {
SubmitEvents,

FetchLeaderBoardEntries,

PlayerLogOut,

ShowLeaderboardUI,
ShowAllLeaderboardsUI
}
Expand Down
1 change: 1 addition & 0 deletions desktop-gpgs/src/de/golfgl/gdxgamesvcs/GpgsClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,7 @@ public boolean isFeatureSupported(GameServiceFeature feature) {
return driveApiEnabled;
case FetchAchievements:
case FetchLeaderBoardEntries:
case PlayerLogOut:
return true;
default:
return false;
Expand Down
2 changes: 2 additions & 0 deletions html-gpgs/src/de/golfgl/gdxgamesvcs/GpgsClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,8 @@ public boolean isFeatureSupported(GameServiceFeature feature) {
case GameStateDelete:
case FetchGameStates:
return enableDrive;
case PlayerLogOut:
return true;
default:
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ public boolean isFeatureSupported(GameServiceFeature feature) {
case SubmitEvents:
case ShowLeaderboardUI:
case ShowAllLeaderboardsUI:
case PlayerLogOut:
return true;

default:
Expand Down

0 comments on commit 6a3bfd4

Please sign in to comment.