Files
AdventuresInLestoria/Crawler/ConnectionPoint.h
T

15 lines
439 B
C++
Raw Normal View History

#pragma once
#include "olcUTIL_Geometry2D.h"
struct 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);
}
};