C# Class Indiefreaks.Xna.IndieCity.IndieCityManager

Inheritance: IManagerService, IUpdatableManager, IEventHandler, IAchievementEventHandler, ILeaderboardEventHandler, IDisposable
Exibir arquivo Open project: Indiefreaks/igf Class Usage Examples

Public Methods

Method 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

Method Description
CheckIfAchievementDataComplete ( ) : void
OnSessionActiveStateReached ( ) : void

Method Details

ApplyPreferences() public method

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

Clear() public method

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

Dispose() public method

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
return void

EndSession() public method

public EndSession ( ) : void
return void

GetAchievementById() public method

public GetAchievementById ( long achievementId ) : CoAchievement
achievementId long
return CoAchievement

GetAchievementByIndex() public method

public GetAchievementByIndex ( int index ) : CoAchievement
index int
return CoAchievement

GetAchievementCount() public method

public GetAchievementCount ( ) : int
return int

HandleEvent() public method

public HandleEvent ( uint eventId, uint eventType, Array args ) : void
eventId uint
eventType uint
args System.Array
return void

IndieCityManager() public method

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
return System

IsAchievementUnlocked() public method

public IsAchievementUnlocked ( long achievementId ) : bool
achievementId long
return bool

OnAchievementGroupInitialised() public method

public OnAchievementGroupInitialised ( CoAchievementGroup pGroup, bool modificationsDetected ) : void
pGroup CoAchievementGroup
modificationsDetected bool
return void

OnAchievementUnlocked() public method

public OnAchievementUnlocked ( int userId, CoAchievement achievement ) : void
userId int
achievement CoAchievement
return void

OnAchievementUpdated() public method

public OnAchievementUpdated ( long achievementId, uint trueValue, uint awardCount ) : void
achievementId long
trueValue uint
awardCount uint
return void

OnAllAchievementsUpdated() public method

public OnAllAchievementsUpdated ( ) : void
return void

OnLeaderboardsInitialised() public method

public OnLeaderboardsInitialised ( bool modificationsDetected ) : void
modificationsDetected bool
return void

OnRowsDelivered() public method

public OnRowsDelivered ( RowRequestContext context, Array rows ) : void
context RowRequestContext
rows System.Array
return void

OnUserAchievementsFetched() public method

public OnUserAchievementsFetched ( int userId, Array args ) : void
userId int
args System.Array
return void

PostLeaderboardScore() public method

public PostLeaderboardScore ( int leaderboardId, long score ) : void
leaderboardId int
score long
return void

RequestAchievementDataRefresh() public method

public RequestAchievementDataRefresh ( NotificationDelegate refreshCompleteDelegate ) : void
refreshCompleteDelegate NotificationDelegate
return void

RequestFirstPage() public method

public RequestFirstPage ( CoLeaderboardPage page, LeaderboardPageLoadDelegate pageCompleteDelegate ) : void
page CoLeaderboardPage
pageCompleteDelegate LeaderboardPageLoadDelegate
return void

RequestLastPage() public method

public RequestLastPage ( CoLeaderboardPage page, LeaderboardPageLoadDelegate pageCompleteDelegate ) : void
page CoLeaderboardPage
pageCompleteDelegate LeaderboardPageLoadDelegate
return void

RequestNextPage() public method

public RequestNextPage ( CoLeaderboardPage page, LeaderboardPageLoadDelegate pageCompleteDelegate ) : void
page CoLeaderboardPage
pageCompleteDelegate LeaderboardPageLoadDelegate
return void

RequestOpenLeaderboard() public method

public RequestOpenLeaderboard ( int leaderboardId, int pageSize, LeaderboardPageLoadDelegate pageCompleteDelegate ) : CoLeaderboardPage
leaderboardId int
pageSize int
pageCompleteDelegate LeaderboardPageLoadDelegate
return CoLeaderboardPage

RequestPreviousPage() public method

public RequestPreviousPage ( CoLeaderboardPage page, LeaderboardPageLoadDelegate pageCompleteDelegate ) : void
page CoLeaderboardPage
pageCompleteDelegate LeaderboardPageLoadDelegate
return void

RequestSessionStart() public method

public RequestSessionStart ( NotificationDelegate startedDelegate ) : void
startedDelegate NotificationDelegate
return void

RequestUserPage() public method

public RequestUserPage ( CoLeaderboardPage page, LeaderboardPageLoadDelegate pageCompleteDelegate ) : void
page CoLeaderboardPage
pageCompleteDelegate LeaderboardPageLoadDelegate
return void

RequestUsersScores() public method

public RequestUsersScores ( UserScoresLoadDelegate scoresCompleteDelegate ) : CoLeaderboardUserRows
scoresCompleteDelegate UserScoresLoadDelegate
return CoLeaderboardUserRows

Unload() public method

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
return void

UnlockAchievement() public method

public UnlockAchievement ( long achievementId ) : void
achievementId long
return void

Update() public method

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