Class UnityAchievementService
Unity-facing AchievementService specialization.
Namespace: Serenity.Achievements.Infrastructure.Services
Assembly: Serenity.UnityAchievements.Infrastructure.dll
Syntax
public class UnityAchievementService : AchievementService
Remarks
Adds no behavior beyond the engine-agnostic base. This subclass exists to stamp a concrete
Id/Guid identity on construction, matching the registration convention every other Unity
service implementation follows (e.g. UnityLeaderboardService).
Constructors
UnityAchievementService(AchievementRegistry, AchievementStoreAccess, AchievementPlatformSyncPass, AchievementScreenshotAttachment, AchievementPointsMirror, AchievementSessionGeneration, IAchievementPlayerIdentityProvider, IAchievementSettings, IEventDispatcherService, ILogService)
Initializes a new instance of the UnityAchievementService class.
Declaration
public UnityAchievementService(AchievementRegistry registry, AchievementStoreAccess store, AchievementPlatformSyncPass platformSync, AchievementScreenshotAttachment screenshotAttachment, AchievementPointsMirror pointsMirror, AchievementSessionGeneration sessionGeneration, IAchievementPlayerIdentityProvider identity, IAchievementSettings settings, IEventDispatcherService eventDispatcherService, ILogService logService)
Parameters
| Type | Name | Description |
|---|---|---|
| AchievementRegistry | registry | The achievements this project declares. |
| AchievementStoreAccess | store | Never-throwing access to the backend store. |
| AchievementPlatformSyncPass | platformSync | Owns every call to the platform account. |
| AchievementScreenshotAttachment | screenshotAttachment | Owns the detached unlock-frame capture. |
| AchievementPointsMirror | pointsMirror | Projects unlocked points into a Score metric. |
| AchievementSessionGeneration | sessionGeneration | The reset counter detached work is gated on. |
| IAchievementPlayerIdentityProvider | identity | Provider that answers whose achievements these are. |
| IAchievementSettings | settings | Achievement configuration read model. |
| IEventDispatcherService | eventDispatcherService | Dispatcher used to broadcast achievement signals. May be |
| ILogService | logService | Logging service. May be |