Class AchievementDefinitionCreator.DeleteResult
Outcome of a Delete(UnityAchievementDefinition) call.
Namespace: Serenity.Achievements.Infrastructure.Editor.Builder
Assembly: Serenity.UnityAchievements.Infrastructure.Editor.dll
Syntax
public sealed class AchievementDefinitionCreator.DeleteResult : SerenityCreationResult
Remarks
Shares Serenity.Global.Infrastructure.Editor.SerenityCreationResult so a window reads one shape of Success/Error/Warnings from every call this engine answers; its Serenity.Global.Infrastructure.Editor.SerenityCreationResult.CreatedPaths is always empty, a deletion having created nothing.
There are exactly three outcomes, and a caller that only branches on Serenity.Global.Infrastructure.Editor.SerenityCreationResult.Success still shows the author something in all of them:
- Deleted —
Successtrue, the asset is in the OS trash. - Handed over —
Successfalse and AwaitingSafeDeleteConfirmation true: the achievement is still referenced, the safe-delete review owns the deletion now, and Serenity.Global.Infrastructure.Editor.SerenityCreationResult.Error says so. The asset is still in the project. - Refused —
Successfalse and AwaitingSafeDeleteConfirmation false: nothing happened andErrorsays why.
Constructors
DeleteResult()
Declaration
public DeleteResult()
Fields
AwaitingSafeDeleteConfirmation
Declaration
public bool AwaitingSafeDeleteConfirmation
Field Value
| Type | Description |
|---|---|
| bool | Whether the safe-delete review took the deletion over because other assets still reference this achievement. That is a pending decision, not a failure — but the asset IS still in the project, so Serenity.Global.Infrastructure.Editor.SerenityCreationResult.Success stays false and a listing must not drop the row yet. Read this to tell a pending removal apart from a refused one. |
DeletedAssetPath
Declaration
public string DeletedAssetPath
Field Value
| Type | Description |
|---|---|
| string | Path of the achievement the call was asked to remove. |