Wrote the WaypointManager API skeleton

This commit is contained in:
Kayne Ruse
2015-01-10 14:03:13 +11:00
parent b391dde089
commit 8ea667a0b5
3 changed files with 42 additions and 2 deletions
+19
View File
@@ -21,6 +21,25 @@
*/
#include "waypoint_manager.hpp"
WaypointManager::WaypointManager() {
//EMPTY
}
WaypointManager::~WaypointManager() {
UnloadAll();
}
int WaypointManager::Create() {
//implicitly creates the element
WaypointData& waypointData = elementMap[counter];
//no real values set
waypointData.origin = {0, 0};
waypointData.bounds = {0, 0, 0, 0};
return counter++;
}
int WaypointManager::Create(Vector2 origin, BoundingBox bounds) {
//implicitly creates the element
WaypointData& waypointData = elementMap[counter];