reckfellENGINE

VoxelStreamRegionFiles

Loads and saves blocks to region files indexed by world position, under a directory.

On this page
class VoxelStreamRegionFilesReckfellSharpInherits VoxelStream

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
# VoxelStreamRegionFiles
C#
public VoxelStreamRegionFiles();

Properties4

BlockSizePo2Property
# BlockSizePo2
C#
public int BlockSizePo2 { get; set; }
DirectoryProperty
# Directory
C#
public string Directory { get; set; }

Directory under which the data is saved.

RegionSizePo2Property
# RegionSizePo2
C#
public int RegionSizePo2 { get; set; }
SectorSizeProperty
# SectorSize
C#
public int SectorSize { get; set; }

Methods10

ConvertFilesvoid
# ConvertFiles
C#
public void ConvertFiles(Reckfell.Collections.Dictionary newSettings);
Parameters
NameTypeDefault
newSettingsReckfell.Collections.Dictionary—
GetBlockSizePo2int
# GetBlockSizePo2
C#
public int GetBlockSizePo2();
Returns int
GetDirectorystring
# GetDirectory
C#
public string GetDirectory();
Returns string
GetRegionSizeVector3
# GetRegionSize
C#
public Vector3 GetRegionSize();
Returns Vector3
GetRegionSizePo2int
# GetRegionSizePo2
C#
public int GetRegionSizePo2();
Returns int
GetSectorSizeint
# GetSectorSize
C#
public int GetSectorSize();
Returns int
SetBlockSizePo2void
# SetBlockSizePo2
C#
public void SetBlockSizePo2(int _UnnamedArg0);
Parameters
NameTypeDefault
_UnnamedArg0int—
SetDirectoryvoid
# SetDirectory
C#
public void SetDirectory(string directory);
Parameters
NameTypeDefault
directorystring—
SetRegionSizePo2void
# SetRegionSizePo2
C#
public void SetRegionSizePo2(int _UnnamedArg0);
Parameters
NameTypeDefault
_UnnamedArg0int—
SetSectorSizevoid
# SetSectorSize
C#
public void SetSectorSize(int _UnnamedArg0);
Parameters
NameTypeDefault
_UnnamedArg0int—
Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.