C# Class Indiefreaks.Xna.IndieCity.IndieCityManager

Inheritance: IManagerService, IUpdatableManager, IEventHandler, IAchievementEventHandler, ILeaderboardEventHandler, IDisposable
Afficher le fichier Open project: Indiefreaks/igf Class Usage Examples

Méthodes publiques

Méthode Description
ApplyPreferences ( ISystemPreferences preferences ) : void

Use to apply user quality and performance preferences to the resources managed by this object.

Clear ( ) : void

Removes resources managed by this object. Commonly used while clearing the scene.

Dispose ( ) : void

Exécute les tâches définies par l'application associées à la libération ou à la redéfinition des ressources non managées.

EndSession ( ) : void
GetAchievementById ( long achievementId ) : CoAchievement
GetAchievementByIndex ( int index ) : CoAchievement
GetAchievementCount ( ) : int
HandleEvent ( uint eventId, uint eventType, Array args ) : void
IndieCityManager ( string gameId, string serviceId, string serviceSecret, bool hasAchievements, bool hasLeaderboards, IManagerServiceProvider serviceProvider, SessionEndDelegate sessionEndDelegate ) : System
IsAchievementUnlocked ( long achievementId ) : bool
OnAchievementGroupInitialised ( CoAchievementGroup pGroup, bool modificationsDetected ) : void
OnAchievementUnlocked ( int userId, CoAchievement achievement ) : void
OnAchievementUpdated ( long achievementId, uint trueValue, uint awardCount ) : void
OnAllAchievementsUpdated ( ) : void
OnLeaderboardsInitialised ( bool modificationsDetected ) : void
OnRowsDelivered ( RowRequestContext context, Array rows ) : void
OnUserAchievementsFetched ( int userId, Array args ) : void
PostLeaderboardScore ( int leaderboardId, long score ) : void
RequestAchievementDataRefresh ( NotificationDelegate refreshCompleteDelegate ) : void
RequestFirstPage ( CoLeaderboardPage page, LeaderboardPageLoadDelegate pageCompleteDelegate ) : void
RequestLastPage ( CoLeaderboardPage page, LeaderboardPageLoadDelegate pageCompleteDelegate ) : void
RequestNextPage ( CoLeaderboardPage page, LeaderboardPageLoadDelegate pageCompleteDelegate ) : void
RequestOpenLeaderboard ( int leaderboardId, int pageSize, LeaderboardPageLoadDelegate pageCompleteDelegate ) : CoLeaderboardPage
RequestPreviousPage ( CoLeaderboardPage page, LeaderboardPageLoadDelegate pageCompleteDelegate ) : void
RequestSessionStart ( NotificationDelegate startedDelegate ) : void
RequestUserPage ( CoLeaderboardPage page, LeaderboardPageLoadDelegate pageCompleteDelegate ) : void
RequestUsersScores ( UserScoresLoadDelegate scoresCompleteDelegate ) : CoLeaderboardUserRows
Unload ( ) : void

Disposes any graphics resource used internally by this object, and removes scene resources managed by this object. Commonly used during Game.UnloadContent.

UnlockAchievement ( long achievementId ) : void
Update ( GameTime gameTime ) : void

Updates the object and its contained resources.

Private Methods

Méthode Description
CheckIfAchievementDataComplete ( ) : void
OnSessionActiveStateReached ( ) : void

Method Details

ApplyPreferences() public méthode

Use to apply user quality and performance preferences to the resources managed by this object.
public ApplyPreferences ( ISystemPreferences preferences ) : void
preferences ISystemPreferences
Résultat void

Clear() public méthode

Removes resources managed by this object. Commonly used while clearing the scene.
public Clear ( ) : void
Résultat void

Dispose() public méthode

Exécute les tâches définies par l'application associées à la libération ou à la redéfinition des ressources non managées.
public Dispose ( ) : void
Résultat void

EndSession() public méthode

public EndSession ( ) : void
Résultat void

GetAchievementById() public méthode

public GetAchievementById ( long achievementId ) : CoAchievement
achievementId long
Résultat CoAchievement

GetAchievementByIndex() public méthode

public GetAchievementByIndex ( int index ) : CoAchievement
index int
Résultat CoAchievement

GetAchievementCount() public méthode

public GetAchievementCount ( ) : int
Résultat int

HandleEvent() public méthode

public HandleEvent ( uint eventId, uint eventType, Array args ) : void
eventId uint
eventType uint
args System.Array
Résultat void

IndieCityManager() public méthode

public IndieCityManager ( string gameId, string serviceId, string serviceSecret, bool hasAchievements, bool hasLeaderboards, IManagerServiceProvider serviceProvider, SessionEndDelegate sessionEndDelegate ) : System
gameId string
serviceId string
serviceSecret string
hasAchievements bool
hasLeaderboards bool
serviceProvider IManagerServiceProvider
sessionEndDelegate SessionEndDelegate
Résultat System

IsAchievementUnlocked() public méthode

public IsAchievementUnlocked ( long achievementId ) : bool
achievementId long
Résultat bool

OnAchievementGroupInitialised() public méthode

public OnAchievementGroupInitialised ( CoAchievementGroup pGroup, bool modificationsDetected ) : void
pGroup CoAchievementGroup
modificationsDetected bool
Résultat void

OnAchievementUnlocked() public méthode

public OnAchievementUnlocked ( int userId, CoAchievement achievement ) : void
userId int
achievement CoAchievement
Résultat void

OnAchievementUpdated() public méthode

public OnAchievementUpdated ( long achievementId, uint trueValue, uint awardCount ) : void
achievementId long
trueValue uint
awardCount uint
Résultat void

OnAllAchievementsUpdated() public méthode

public OnAllAchievementsUpdated ( ) : void
Résultat void

OnLeaderboardsInitialised() public méthode

public OnLeaderboardsInitialised ( bool modificationsDetected ) : void
modificationsDetected bool
Résultat void

OnRowsDelivered() public méthode

public OnRowsDelivered ( RowRequestContext context, Array rows ) : void
context RowRequestContext
rows System.Array
Résultat void

OnUserAchievementsFetched() public méthode

public OnUserAchievementsFetched ( int userId, Array args ) : void
userId int
args System.Array
Résultat void

PostLeaderboardScore() public méthode

public PostLeaderboardScore ( int leaderboardId, long score ) : void
leaderboardId int
score long
Résultat void

RequestAchievementDataRefresh() public méthode

public RequestAchievementDataRefresh ( NotificationDelegate refreshCompleteDelegate ) : void
refreshCompleteDelegate NotificationDelegate
Résultat void

RequestFirstPage() public méthode

public RequestFirstPage ( CoLeaderboardPage page, LeaderboardPageLoadDelegate pageCompleteDelegate ) : void
page CoLeaderboardPage
pageCompleteDelegate LeaderboardPageLoadDelegate
Résultat void

RequestLastPage() public méthode

public RequestLastPage ( CoLeaderboardPage page, LeaderboardPageLoadDelegate pageCompleteDelegate ) : void
page CoLeaderboardPage
pageCompleteDelegate LeaderboardPageLoadDelegate
Résultat void

RequestNextPage() public méthode

public RequestNextPage ( CoLeaderboardPage page, LeaderboardPageLoadDelegate pageCompleteDelegate ) : void
page CoLeaderboardPage
pageCompleteDelegate LeaderboardPageLoadDelegate
Résultat void

RequestOpenLeaderboard() public méthode

public RequestOpenLeaderboard ( int leaderboardId, int pageSize, LeaderboardPageLoadDelegate pageCompleteDelegate ) : CoLeaderboardPage
leaderboardId int
pageSize int
pageCompleteDelegate LeaderboardPageLoadDelegate
Résultat CoLeaderboardPage

RequestPreviousPage() public méthode

public RequestPreviousPage ( CoLeaderboardPage page, LeaderboardPageLoadDelegate pageCompleteDelegate ) : void
page CoLeaderboardPage
pageCompleteDelegate LeaderboardPageLoadDelegate
Résultat void

RequestSessionStart() public méthode

public RequestSessionStart ( NotificationDelegate startedDelegate ) : void
startedDelegate NotificationDelegate
Résultat void

RequestUserPage() public méthode

public RequestUserPage ( CoLeaderboardPage page, LeaderboardPageLoadDelegate pageCompleteDelegate ) : void
page CoLeaderboardPage
pageCompleteDelegate LeaderboardPageLoadDelegate
Résultat void

RequestUsersScores() public méthode

public RequestUsersScores ( UserScoresLoadDelegate scoresCompleteDelegate ) : CoLeaderboardUserRows
scoresCompleteDelegate UserScoresLoadDelegate
Résultat CoLeaderboardUserRows

Unload() public méthode

Disposes any graphics resource used internally by this object, and removes scene resources managed by this object. Commonly used during Game.UnloadContent.
public Unload ( ) : void
Résultat void

UnlockAchievement() public méthode

public UnlockAchievement ( long achievementId ) : void
achievementId long
Résultat void

Update() public méthode

Updates the object and its contained resources.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void