mirror of
https://github.com/overte-org/overte.git
synced 2025-06-06 01:11:01 +02:00
repairs to temporary standalone voxel-server for assignment subclass
This commit is contained in:
parent
8bb77ecc9e
commit
89546f7140
3 changed files with 10 additions and 1 deletions
|
@ -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) {
|
VoxelServer::VoxelServer(const unsigned char* dataBuffer, int numBytes) : Assignment(dataBuffer, numBytes) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
/// Handles assignments of type VoxelServer - sending voxels to various clients.
|
/// Handles assignments of type VoxelServer - sending voxels to various clients.
|
||||||
class VoxelServer : public Assignment {
|
class VoxelServer : public Assignment {
|
||||||
public:
|
public:
|
||||||
|
VoxelServer(Assignment::Command command,
|
||||||
|
Assignment::Location location = Assignment::GlobalLocation);
|
||||||
VoxelServer(const unsigned char* dataBuffer, int numBytes);
|
VoxelServer(const unsigned char* dataBuffer, int numBytes);
|
||||||
|
|
||||||
/// runs the voxel server assignment
|
/// runs the voxel server assignment
|
||||||
|
|
|
@ -39,7 +39,9 @@ int main(int argc, const char * argv[]) {
|
||||||
}
|
}
|
||||||
|
|
||||||
VoxelServer::setArguments(argc, const_cast<char**>(argv));
|
VoxelServer::setArguments(argc, const_cast<char**>(argv));
|
||||||
VoxelServer::run();
|
|
||||||
|
VoxelServer dummyAssignedVoxelServer(Assignment::CreateCommand);
|
||||||
|
dummyAssignedVoxelServer.run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue