SaveSlotUtils
Functions
getDefaultSlotName
SaveSlotUtils.getDefaultSlotName(slotIndex: number) → stringThe name a slot gets when it is created without one, or when its name is cleared.
getTimePlayed
SaveSlotUtils.getTimePlayed(metadata: SaveSlotData.SaveSlotMetadata,isActive: boolean,now: number?) → number
Seconds the slot has been played, current as of now (defaults to os.time()). TimePlayed
only lands on the slot when its data saves or its session ends, so for the active slot the
running session is re-derived: the total minus the part of it already credited to this session,
plus the wall time since the slot was selected. It never reads below the credited total, so a
client clock behind the server's cannot make it go backwards.