Unit CastleGameService

Functions and Procedures
Constants
Variables

Description

Integration with game service (Google Play Games or Apple Game Center) (TGameService).

Uses

Overview

Classes, Interfaces, Objects and Records

Name Description
Class TGameService Integration with a game service, that can be used to show achievements, leaderboards, and store save games "in the cloud".

Types

TPlayerBestScoreEvent = procedure (Sender: TObject; const LeaderboardId: string; const Score: Int64) of object;
TSaveGameChoice = (...);
TSaveGameChosenEvent = procedure (Sender: TObject; const Choice: TSaveGameChoice; const SaveGameName: string) of object;
TSaveGameLoadedEvent = procedure (Sender: TObject; const Success: boolean; const Content: string) of object;
TGameServiceStatus = (...);

Description

Types

TPlayerBestScoreEvent = procedure (Sender: TObject; const LeaderboardId: string; const Score: Int64) of object;

Event for TGameService.OnPlayerBestScoreReceived.

TSaveGameChoice = (...);

User choice at "save game" dialog displayed by TGameService.ShowSaveGames. Used as a parameter for TGameService.OnSaveGameChosen event.

Values
  • sgCancel
  • sgNew
  • sgExisting
TSaveGameChosenEvent = procedure (Sender: TObject; const Choice: TSaveGameChoice; const SaveGameName: string) of object;

Event for TGameService.OnSaveGameChosen.

TSaveGameLoadedEvent = procedure (Sender: TObject; const Success: boolean; const Content: string) of object;

Event for TGameService.OnSaveGameLoaded.

Parameters
Success
Whether we loaded the savegame successfully.
Content
The savegame content, if Success. If not Success, this is the error message.
TGameServiceStatus = (...);

Status of TGameService sign-in.

Values
  • gsSignedOut: Not signed-in to the service.
  • gsSigningIn: Not signed-in to the service, but during signing-in.
  • gsSignedIn: Signed-in to the service. All game service methods work now.
  • gsSigningOut: During signing-out from the service. You should not call other methods on the service now.

Generated by PasDoc 0.15.0.