Navigation between unlocked stages is now possible.

This commit is contained in:
2023-11-04 22:19:25 -05:00
parent 54614d31dc
commit 4f65d2240a
11 changed files with 136 additions and 9 deletions
+3 -2
View File
@@ -1,3 +1,4 @@
#pragma once
#include "olcUTIL_Geometry2D.h"
struct ConnectionPoint{
@@ -5,8 +6,8 @@ struct ConnectionPoint{
std::string name;
std::string map;
std::string unlockCondition;
std::array<int,4>neighbors; //Indices into the connectionPoint array.
ConnectionPoint(geom2d::rect<float>rect,std::string name,std::string map,std::string unlockCondition)
std::array<int,8>neighbors; //Indices into the connectionPoint array.
inline ConnectionPoint(geom2d::rect<float>rect,std::string name,std::string map,std::string unlockCondition)
:rect(rect),name(name),map(map),unlockCondition(unlockCondition){
neighbors.fill(-1);
}