Skip to main content

Module store

Module store 

Source
Expand description

Where a server keeps its rooms’ towns between games, when its settings name a folder: the last save each room’s host sent, by room code. With a kept town, a host who opens the room again goes on from it.

Structs§

FolderStore
Towns kept in a folder: CODE.sav and CODE.update for each room.
Kept
A room’s kept town: the save, and the update it was made at.
MemoryStore
Towns kept in memory (tests).

Traits§

Store
Where rooms’ towns are kept.

Functions§

keepable
Whether a room code can name a kept town: 1 to 16 letters and digits. A code is chosen by a player, so nothing else may become a file name.