( collection: CharacterCollection, id: string, )
| 278 | } |
| 279 | |
| 280 | export function setActiveCharacter( |
| 281 | collection: CharacterCollection, |
| 282 | id: string, |
| 283 | ): CharacterCollection { |
| 284 | if (!collection.items[id]) return collection; |
| 285 | return { ...collection, activeId: id }; |
| 286 | } |
| 287 | |
| 288 | // --------------------------------------------------------------------------- |
| 289 | // Backward compat: single-character load/save wrappers |
nothing calls this directly
no outgoing calls
no test coverage detected