Class GameProgressRecordMapping
Inheritance
GameProgressRecordMapping
Assembly: Serenity.GameProgress.Infrastructure.dll
Syntax
public static class GameProgressRecordMapping
Fields
CompletionCountField
Declaration
public const string CompletionCountField = "completion_count"
Field Value
CustomPayloadField
Declaration
public const string CustomPayloadField = "custom_payload"
Field Value
DefaultTableName
The default table or collection name used when the settings leave it blank.
Declaration
public const string DefaultTableName = "serenity_game_progress"
Field Value
GlobalPartitionValue
The single partition value every game-progress row is stored under (progress is slot-independent).
Declaration
public const string GlobalPartitionValue = "global"
Field Value
PartitionField
Field name partitioning the single, global game-progress row.
Declaration
public const string PartitionField = "partition"
Field Value
PartitionKeyFields
The PartitionField key used to identify the single global row for upsert-if-newer.
Declaration
public static readonly IReadOnlyList<string> PartitionKeyFields
Field Value
Declaration
public const string UnlockedExtrasField = "unlocked_extras"
Field Value
UpdatedAtTicksField
Declaration
public const string UpdatedAtTicksField = "updated_at_ticks"
Field Value
Methods
BuildGlobalScopeFilters()
Builds the partition = "global" scope filter every game-progress operation shares.
Declaration
public static IReadOnlyList<FieldFilter> BuildGlobalScopeFilters()
Returns
BuildSchema(StoreTable)
Builds the game-progress table schema: fields and the partition index.
Declaration
public static StructuredTableSchema BuildSchema(StoreTable table)
Parameters
Returns
ToData(StructuredRecord)
Declaration
public static GameProgressData ToData(StructuredRecord record)
Parameters
Returns
ToRecord(GameProgressData)
Declaration
public static StructuredRecord ToRecord(GameProgressData data)
Parameters
Returns