mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 15:59:49 +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() {
|
VoxelAgentData::VoxelAgentData() {
|
||||||
lastSentLevel = 0;
|
lastSentLevel = 0;
|
||||||
|
rootMarkerNode = new MarkerNode();
|
||||||
}
|
}
|
||||||
|
|
||||||
VoxelAgentData::~VoxelAgentData() {
|
VoxelAgentData::~VoxelAgentData() {
|
||||||
// nothing to explicitly destroy here
|
delete rootMarkerNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
VoxelAgentData::VoxelAgentData(const VoxelAgentData &otherAgentData) {
|
VoxelAgentData::VoxelAgentData(const VoxelAgentData &otherAgentData) {
|
||||||
lastSentLevel = otherAgentData.lastSentLevel;
|
lastSentLevel = otherAgentData.lastSentLevel;
|
||||||
memcpy(position, otherAgentData.position, sizeof(float) * 3);
|
memcpy(position, otherAgentData.position, sizeof(float) * 3);
|
||||||
|
rootMarkerNode = new MarkerNode(*otherAgentData.rootMarkerNode);
|
||||||
}
|
}
|
||||||
|
|
||||||
VoxelAgentData* VoxelAgentData::clone() const {
|
VoxelAgentData* VoxelAgentData::clone() const {
|
||||||
|
|
|
@ -9,13 +9,15 @@
|
||||||
#ifndef __hifi__VoxelAgentData__
|
#ifndef __hifi__VoxelAgentData__
|
||||||
#define __hifi__VoxelAgentData__
|
#define __hifi__VoxelAgentData__
|
||||||
|
|
||||||
#include <AgentData.h>
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <AgentData.h>
|
||||||
|
#include "MarkerNode.h"
|
||||||
|
|
||||||
class VoxelAgentData : public AgentData {
|
class VoxelAgentData : public AgentData {
|
||||||
public:
|
public:
|
||||||
float position[3];
|
float position[3];
|
||||||
int lastSentLevel;
|
int lastSentLevel;
|
||||||
|
MarkerNode *rootMarkerNode;
|
||||||
|
|
||||||
VoxelAgentData();
|
VoxelAgentData();
|
||||||
~VoxelAgentData();
|
~VoxelAgentData();
|
||||||
|
|
Loading…
Reference in a new issue