Asynchronously loads the data from the file of the given player and then synchronizes it with all other players. The listener will be invoked with the synced data string.
Re-exports: FileIO
public interface LoadListener
Members:
onLoad(LoadStatus status, ChunkedString data)public enum LoadStatus
Values: SUCCESS, FAIL_PLAYER_OFFLINE, FAIL_FILE_EMPTY, FAIL_CANT_READ
public function LoadStatus.toString() returns string
public function LoadStatus.isFail() returns boolean
public function player.saveData(string slotName, string data)
Blockingly saves the given data string for the given player.
public function player.saveData(string slotName, ChunkedString data)
Blockingly saves the given data string for the given player.
public function player.loadData(string slotName, LoadListener listener)
public constant READ_FILES_IN_REPLAYS = false
🔧 Configurable. Override it in your map’s config package.