Player Numericalstorage Artifact
Stores the numericalstorage amount per player
Persistent player storage artifact. Reads and writes are deliberately suspend-only at the persistence boundary. Synchronous getters are cache-only and therefore safe for placeholder/render paths; they never perform file, database or network I/O. Mutations are serialized per artifact and persist one complete, immutable snapshot, avoiding the old read-modify-write races.
字段
| 字段 | 类型 | 默认值 | 描述 |
|---|---|---|---|
artifactId | String | — | Technical stable artifact identifier. Leave empty so Typewriter can generate it. |
How to use it
Create one artifact and link it from one or several definitions. Leave artifactId empty: TypeWriter generates a technical identifier and the data is saved as artifacts/<id>.json in the TypeWriter assets (balances, levels and interest times per player, schema version 2). Definitions that share an artifact share its lock and its data, so give each store its own artifact unless you want them to share values.
A file saved with an old, non-UUID artifactId is copied to the new path on first access, with a backup under backups/numericalstorage/.