overte/voxel-server/src/VoxelAgentData.cpp
2013-04-23 21:17:39 -07:00

28 lines
568 B
C++

//
// VoxelAgentData.cpp
// hifi
//
// Created by Stephen Birarda on 3/21/13.
//
//
#include "VoxelAgentData.h"
#include <cstring>
#include <cstdio>
VoxelAgentData::VoxelAgentData() {
rootMarkerNode = new MarkerNode();
}
VoxelAgentData::~VoxelAgentData() {
delete rootMarkerNode;
}
VoxelAgentData::VoxelAgentData(const VoxelAgentData &otherAgentData) {
memcpy(&_position, &otherAgentData._position, sizeof(_position));
rootMarkerNode = new MarkerNode();
}
VoxelAgentData* VoxelAgentData::clone() const {
return new VoxelAgentData(*this);
}