#pragma once #include "olcUTIL_Geometry2D.h" struct ConnectionPoint{ geom2d::rectrect; std::string name; std::string map; std::string unlockCondition; std::arrayneighbors; //Indices into the connectionPoint array. std::vectorspawns; bool levelDataExists=false; inline ConnectionPoint(geom2d::rectrect,std::string name,std::string map,std::string unlockCondition,std::vectorspawns) :rect(rect),name(name),map(map),unlockCondition(unlockCondition),spawns(spawns){ neighbors.fill(-1); } bool IsNeighbor(ConnectionPoint&testPoint); };