sm.terrainGeneration.saveAndSyncGameStorage
Saves data produced from terrain generation and synchronizes to clients. Saved data can be retrived in later game sessions and by the game lua environment.
Kind: Function
Environments: Terrain
Terrain
sm.terrainGeneration.saveAndSyncGameStorage( key, data )
Open the full Terrain reference
Parameters:
| Name | Type | Description |
|---|---|---|
key |
any | Key used to lookup the saved data. |
data |
any | Data to save. |