Navigation between unlocked stages is now possible.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user