Skip to content

atl/sm/terraingeneration

import "atl/sm/terraingeneration"

Data a terrain script keeps between runs and shares with game scripts (sm.terrainGeneration).

func LoadGameStorage(key any) atl.Value

Reads stored data.

func SaveGameStorage(key, data any)

Stores data and saves it.

func SaveAndSyncGameStorage(key, data any)

Stores data, saves it and sends it to clients.

func SetGameStorageNoSave(key, data any)
func SetAndSyncGameStorageNoSave(key, data any)

Stores data without saving it, optionally sending it to clients.

func TempData(key any) atl.Value

Temporary (unsaved) data.

func SetTempData(key, data any)

Sets temporary (unsaved) data.