Battle Pass Data Artifact
Store battle pass runtime data
Artifact storing runtime battle pass data such as selected quests and dates.
字段
| 字段 | 类型 | 默认值 | 描述 | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
artifactId | String | — | — | ||||||||||||
storage | BattlePassArtifactStorage | — | —
|
| 字段 | 类型 | 默认值 | 描述 |
|---|---|---|---|
mode | StorageMode | PLAYER | Controls how runtime data is segmented inside the artifact可选值:PLAYERGROUP |
group | Ref<GroupEntry> | — | Group used when storage mode is set to GROUP |
How to use it
Create one artifact per battle pass and link it in the definition's data field. artifactId is generated by the web panel as a UUID: do not edit it, as it names the stored data. storage.mode is PLAYER for individual progress, or GROUP to share progress through the TypeWriter group in storage.group.
Data goes through the MySQL extension's asset storage and is cached in memory for five minutes. On a network, a change on one server invalidates the cache of the others over Redis.