From dd4215d0fde43ff49feccc92a74daa9a59a50df0 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Mon, 23 Sep 2013 09:55:31 -0700 Subject: [PATCH] add a destructive voxel add command to VoxelScriptingInterface --- assignment-client/src/voxels/VoxelScriptingInterface.cpp | 2 +- assignment-client/src/voxels/VoxelScriptingInterface.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assignment-client/src/voxels/VoxelScriptingInterface.cpp b/assignment-client/src/voxels/VoxelScriptingInterface.cpp index 0335dde221..8c31d0b5f8 100644 --- a/assignment-client/src/voxels/VoxelScriptingInterface.cpp +++ b/assignment-client/src/voxels/VoxelScriptingInterface.cpp @@ -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}; diff --git a/assignment-client/src/voxels/VoxelScriptingInterface.h b/assignment-client/src/voxels/VoxelScriptingInterface.h index 00d1b065f0..6ac2cd6bfe 100644 --- a/assignment-client/src/voxels/VoxelScriptingInterface.h +++ b/assignment-client/src/voxels/VoxelScriptingInterface.h @@ -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;