VoxelStreamScript¶
Inherits: VoxelStream
Base class for custom streams defined with a script.
Methods:¶
| Return | Signature |
|---|---|
| int | _get_used_channels_mask ( ) virtual const |
| int | _load_voxel_block ( VoxelBuffer out_buffer, Vector3i position_in_blocks, int lod ) virtual |
| void | _save_voxel_block ( VoxelBuffer buffer, Vector3i position_in_blocks, int lod ) virtual |
Method Descriptions¶
int _get_used_channels_mask( )¶
Tells which channels in VoxelBuffer are supported to save voxel data, in case the stream only saves specific ones.
int _load_voxel_block( VoxelBuffer out_buffer, Vector3i position_in_blocks, int lod )¶
Called when a block of voxels needs to be loaded. Assumes out_buffer always has the same size. Returns ResultCode.
void _save_voxel_block( VoxelBuffer buffer, Vector3i position_in_blocks, int lod )¶
Called when a block of voxels needs to be saved. Assumes out_buffer always has the same size.
Generated on Jan 26, 2026