C# Class Strokes.Service.StrokesAchievementServiceBase

Inheritance: IAchievementService
显示文件 Open project: jonasswiatek/strokes

Protected Properties

Property Type Description
AchievementRepository IAchievementRepository

Public Methods

Method Description
GetAllAchievements ( ) : IEnumerable
GetUnlockableAchievements ( ) : IEnumerable
LoadAchievementsFrom ( Assembly assembly ) : void
PerformStaticAnalysis ( Strokes.Core.StaticAnalysisManifest staticAnalysisManifest, bool onlyUnlockable ) : IEnumerable
ResetAchievementProgress ( ) : void
UnlockAchievement ( Strokes.Core.AchievementBase achievement ) : void
UpdateLocalization ( Strokes.Core.Service.Model.Achievement achievement, CultureInfo culture ) : void

Protected Methods

Method Description
GetUnlockedAchievements ( StatisAnalysisSession statisAnalysisSession, IEnumerable availableAchievements ) : IEnumerable
StrokesAchievementServiceBase ( IAchievementRepository achievementRepository ) : System

Private Methods

Method Description
OnAchievementsUnlocked ( object sender, AchievementEventArgs e ) : void
OnStaticAnalysisCompleted ( object sender, Strokes.Core.Service.StaticAnalysisEventArgs e ) : void
OnStaticAnalysisStarted ( object sender, EventArgs e ) : void

Method Details

GetAllAchievements() public method

public GetAllAchievements ( ) : IEnumerable
return IEnumerable

GetUnlockableAchievements() public method

public GetUnlockableAchievements ( ) : IEnumerable
return IEnumerable

GetUnlockedAchievements() protected abstract method

protected abstract GetUnlockedAchievements ( StatisAnalysisSession statisAnalysisSession, IEnumerable availableAchievements ) : IEnumerable
statisAnalysisSession StatisAnalysisSession
availableAchievements IEnumerable
return IEnumerable

LoadAchievementsFrom() public method

public LoadAchievementsFrom ( Assembly assembly ) : void
assembly System.Reflection.Assembly
return void

PerformStaticAnalysis() public method

public PerformStaticAnalysis ( Strokes.Core.StaticAnalysisManifest staticAnalysisManifest, bool onlyUnlockable ) : IEnumerable
staticAnalysisManifest Strokes.Core.StaticAnalysisManifest
onlyUnlockable bool
return IEnumerable

ResetAchievementProgress() public method

public ResetAchievementProgress ( ) : void
return void

StrokesAchievementServiceBase() protected method

protected StrokesAchievementServiceBase ( IAchievementRepository achievementRepository ) : System
achievementRepository IAchievementRepository
return System

UnlockAchievement() public method

public UnlockAchievement ( Strokes.Core.AchievementBase achievement ) : void
achievement Strokes.Core.AchievementBase
return void

UpdateLocalization() public method

public UpdateLocalization ( Strokes.Core.Service.Model.Achievement achievement, CultureInfo culture ) : void
achievement Strokes.Core.Service.Model.Achievement
culture System.Globalization.CultureInfo
return void

Property Details

AchievementRepository protected_oe property

protected IAchievementRepository AchievementRepository
return IAchievementRepository