mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
hook up VoxelAgentData to new MarkerNode class
This commit is contained in:
parent
761db13e90
commit
1c9d4de0d6
2 changed files with 6 additions and 2 deletions
|
@ -12,15 +12,17 @@
|
|||
|
||||
VoxelAgentData::VoxelAgentData() {
|
||||
lastSentLevel = 0;
|
||||
rootMarkerNode = new MarkerNode();
|
||||
}
|
||||
|
||||
VoxelAgentData::~VoxelAgentData() {
|
||||
// nothing to explicitly destroy here
|
||||
delete rootMarkerNode;
|
||||
}
|
||||
|
||||
VoxelAgentData::VoxelAgentData(const VoxelAgentData &otherAgentData) {
|
||||
lastSentLevel = otherAgentData.lastSentLevel;
|
||||
memcpy(position, otherAgentData.position, sizeof(float) * 3);
|
||||
rootMarkerNode = new MarkerNode(*otherAgentData.rootMarkerNode);
|
||||
}
|
||||
|
||||
VoxelAgentData* VoxelAgentData::clone() const {
|
||||
|
|
|
@ -9,13 +9,15 @@
|
|||
#ifndef __hifi__VoxelAgentData__
|
||||
#define __hifi__VoxelAgentData__
|
||||
|
||||
#include <AgentData.h>
|
||||
#include <iostream>
|
||||
#include <AgentData.h>
|
||||
#include "MarkerNode.h"
|
||||
|
||||
class VoxelAgentData : public AgentData {
|
||||
public:
|
||||
float position[3];
|
||||
int lastSentLevel;
|
||||
MarkerNode *rootMarkerNode;
|
||||
|
||||
VoxelAgentData();
|
||||
~VoxelAgentData();
|
||||
|
|
Loading…
Reference in a new issue