Skip to main content

ChunkFileHelper

A static class in Root.Township, Alta.Chunks.

Server helper for finding chunk save files: shared chunks go in the server's chunks folder, personal chunks in a subfolder of the owner's player folder.

Properties​

MemberWhat it is
static string OverrideFolderSavePath { get; set; }Settable path. Not read by this class.

Methods​

MemberWhat it is
static void CleanCavesSave()Deletes every chunk save file whose name contains Cave Layer. Called by CaveLayerManager.
static IAltaFile GetFile(IAltaFolder folder, string name)Gets a chunk's .bytes save file, by folder and name or from a Chunk (in its owner's folder if it is a personal chunk).
static IAltaFile GetFile(Chunk chunk)Gets a chunk's .bytes save file, by folder and name or from a Chunk (in its owner's folder if it is a personal chunk).
static IAltaFolder GetFolder(int playerIdentifier = 0)The server's chunks folder, or for a non-zero player id, that player's subfolder.