Class GameSettingReferenceFailure
The one message a service writes when a field on a settings asset names a game setting that no loaded game setting carries: it names the asset the key was read from, the field, and the unresolved Id, so the author can go straight to the asset and the field instead of reading a bare dereference failure.
Inherited Members
Namespace: Serenity.GameSettings.Application.Validation
Assembly: Serenity.Global.Application.dll
Syntax
public static class GameSettingReferenceFailure
Methods
Describe(string, string, string, string)
Builds the message for an unresolved game-setting reference.
Declaration
public static string Describe(string assetKind, string assetId, string fieldName, string unresolvedSettingId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | assetKind | What kind of asset holds the field, as the author reads it (e.g. "Audio player settings"). |
| string | assetId | Id of the asset the key was read from. |
| string | fieldName | The field that carried the unresolved value. |
| string | unresolvedSettingId | The stored game-setting Id that resolved to nothing. |
Returns
| Type | Description |
|---|---|
| string |