repairs to temporary standalone voxel-server for assignment subclass

This commit is contained in:
Stephen Birarda 2013-09-17 15:38:54 -07:00
parent 8bb77ecc9e
commit 89546f7140
3 changed files with 10 additions and 1 deletions

View file

@ -73,6 +73,11 @@ void attachVoxelNodeDataToNode(Node* newNode) {
}
}
VoxelServer::VoxelServer(Assignment::Command command, Assignment::Location location) :
Assignment(command, Assignment::VoxelServerType, location) {
}
VoxelServer::VoxelServer(const unsigned char* dataBuffer, int numBytes) : Assignment(dataBuffer, numBytes) {
}

View file

@ -15,6 +15,8 @@
/// Handles assignments of type VoxelServer - sending voxels to various clients.
class VoxelServer : public Assignment {
public:
VoxelServer(Assignment::Command command,
Assignment::Location location = Assignment::GlobalLocation);
VoxelServer(const unsigned char* dataBuffer, int numBytes);
/// runs the voxel server assignment

View file

@ -39,7 +39,9 @@ int main(int argc, const char * argv[]) {
}
VoxelServer::setArguments(argc, const_cast<char**>(argv));
VoxelServer::run();
VoxelServer dummyAssignedVoxelServer(Assignment::CreateCommand);
dummyAssignedVoxelServer.run();
}