VoxelStreamScript
Base class for custom streams defined with a script.
Base class for custom streams defined with a script.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
VoxelStreamScriptConstructor
public VoxelStreamScript();Methods3
_GetUsedChannelsMaskint
public virtual int _GetUsedChannelsMask();Tells which channels in VoxelBuffer are supported to save voxel data, in case the stream only saves specific ones.
Returns
int_LoadVoxelBlockint
public virtual int _LoadVoxelBlock(VoxelBuffer outBuffer, Vector3I positionInBlocks, int lod);Called when a block of voxels needs to be loaded. Assumes out_buffer always has the same size. Returns VoxelStream.ResultCode.
| Name | Type | Default |
|---|---|---|
outBuffer | VoxelBuffer | — |
positionInBlocks | Vector3I | — |
lod | int | — |
Returns
int_SaveVoxelBlockvoid
public virtual void _SaveVoxelBlock(VoxelBuffer buffer, Vector3I positionInBlocks, int lod);Called when a block of voxels needs to be saved. Assumes out_buffer always has the same size.
| Name | Type | Default |
|---|---|---|
buffer | VoxelBuffer | — |
positionInBlocks | Vector3I | — |
lod | int | — |
Reckfell Engine documentationBack to top ↑