Skip to content

atl/sm/storage

import "atl/sm/storage"

Game-wide save data (sm.storage).

func Save(key string, value any)

Saves a value under a key.

func Load(key string) atl.Value

Loads a value saved under a key.

func SaveAndSync(key string, value any)

Saves a value and also syncs it to clients.

func LoadTerrainData(worldID int) atl.Value

The terrain data a world's terrain script saved.