mirror of
https://github.com/lubosz/overte.git
synced 2025-04-10 04:52:17 +02:00
add a destructive voxel add command to VoxelScriptingInterface
This commit is contained in:
parent
e774419f8d
commit
dd4215d0fd
2 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ void VoxelScriptingInterface::queueVoxelAdd(float x, float y, float z, float sca
|
|||
queueVoxelAdd(PACKET_TYPE_SET_VOXEL, addVoxelDetail);
|
||||
}
|
||||
|
||||
void VoxelScriptingInterface::queueDesctructiveVoxelAdd(float x, float y, float z, float scale,
|
||||
void VoxelScriptingInterface::queueDestructiveVoxelAdd(float x, float y, float z, float scale,
|
||||
uchar red, uchar green, uchar blue) {
|
||||
// setup a VoxelDetail struct with the data
|
||||
VoxelDetail addVoxelDetail = {x, y, z, scale, red, green, blue};
|
||||
|
|
|
@ -37,7 +37,7 @@ public slots:
|
|||
/// \param red the R value for RGB color of voxel
|
||||
/// \param green the G value for RGB color of voxel
|
||||
/// \param blue the B value for RGB color of voxel
|
||||
void queueDesctructiveVoxelAdd(float x, float y, float z, float scale, uchar red, uchar green, uchar blue);
|
||||
void queueDestructiveVoxelAdd(float x, float y, float z, float scale, uchar red, uchar green, uchar blue);
|
||||
private:
|
||||
/// attached VoxelEditPacketSender that handles queuing and sending of packets to VS
|
||||
VoxelEditPacketSender _voxelPacketSender;
|
||||
|
|
Loading…
Reference in a new issue