mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 17:54:20 +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) {
|
||||
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue