VoxelStreamRegionFiles
Loads and saves blocks to region files indexed by world position, under a directory.
Loads and saves blocks to region files indexed by world position, under a directory.
Loads and saves blocks to the filesystem, in multiple region files indexed by world position, under a directory. Regions pack many blocks together, so it reduces file switching and improves performance. Inspired by Seed of Andromeda and Minecraft. Region files are not thread-safe. Because of this, internal mutexing may often constrain the use by one thread only.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
VoxelStreamRegionFilesConstructor
public VoxelStreamRegionFiles();Properties4
BlockSizePo2Property
public int BlockSizePo2 { get; set; }DirectoryProperty
public string Directory { get; set; }Directory under which the data is saved.
RegionSizePo2Property
public int RegionSizePo2 { get; set; }SectorSizeProperty
public int SectorSize { get; set; }Methods10
ConvertFilesvoid
public void ConvertFiles(Reckfell.Collections.Dictionary newSettings);| Name | Type | Default |
|---|---|---|
newSettings | Reckfell.Collections.Dictionary | — |
GetBlockSizePo2int
public int GetBlockSizePo2();Returns
intGetDirectorystring
public string GetDirectory();Returns
stringGetRegionSizeVector3
public Vector3 GetRegionSize();Returns
Vector3GetRegionSizePo2int
public int GetRegionSizePo2();Returns
intGetSectorSizeint
public int GetSectorSize();Returns
intSetBlockSizePo2void
public void SetBlockSizePo2(int _UnnamedArg0);| Name | Type | Default |
|---|---|---|
_UnnamedArg0 | int | — |
SetDirectoryvoid
public void SetDirectory(string directory);| Name | Type | Default |
|---|---|---|
directory | string | — |
SetRegionSizePo2void
public void SetRegionSizePo2(int _UnnamedArg0);| Name | Type | Default |
|---|---|---|
_UnnamedArg0 | int | — |
SetSectorSizevoid
public void SetSectorSize(int _UnnamedArg0);| Name | Type | Default |
|---|---|---|
_UnnamedArg0 | int | — |
Reckfell Engine documentationBack to top ↑