Class GameSaveCreator
Generates (or updates) the project-wide UnityGameSaveSettings asset, plus optionally
its backend, from a single description. Mirrors
Serenity.Leaderboard.Infrastructure.Editor.Builder.LeaderboardCreator and its own sibling
Serenity.GameProgress.Infrastructure.Editor.Builder.GameProgressCreator: static class,
Input/Result DTOs, Validate/ValidateIdentity, Create with created-paths rollback on failure.
CreateGameSaveSettingsWindow only collects input and renders results; every asset
mutation lives here.
Inheritance
GameSaveCreator
Assembly: Serenity.UnityGameSave.Infrastructure.Editor.dll
Syntax
public static class GameSaveCreator
Fields
DefaultLocalFileDirectoryName
Declaration
public const string DefaultLocalFileDirectoryName = "game-save"
Field Value
DefaultSqliteDatabaseFileName
Declaration
public const string DefaultSqliteDatabaseFileName = "game_save.db"
Field Value
Methods
Validates the request, then resolves/creates the settings asset and, optionally, creates the
backend. On any failure every mutation is rolled back so the project is left untouched.
Declaration
public static GameSaveCreator.Result Create(GameSaveCreator.Input input)
Parameters
Returns
Full validation, re-checked at creation time so Create(Input) is safe to call independently of the window's live validation.
Declaration
public static SerenityCreationValidationResult Validate(GameSaveCreator.Input input)
Parameters
Returns
| Type |
Description |
| SerenityCreationValidationResult |
|
Asset-name-only validation, usable before a folder or backend choice has been made.
Declaration
public static SerenityCreationValidationResult ValidateIdentity(GameSaveCreator.Input input)
Parameters
Returns
| Type |
Description |
| SerenityCreationValidationResult |
|