The open source repository for the action RPG game in development by Sig Productions titled 'Adventures in Lestoria'!
https://forums.lestoria.net
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
576 B
17 lines
576 B
#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.
|
|
std::vector<int>spawns;
|
|
bool levelDataExists=false;
|
|
inline ConnectionPoint(geom2d::rect<float>rect,std::string name,std::string map,std::string unlockCondition,std::vector<int>spawns)
|
|
:rect(rect),name(name),map(map),unlockCondition(unlockCondition),spawns(spawns){
|
|
neighbors.fill(-1);
|
|
}
|
|
bool IsNeighbor(ConnectionPoint&testPoint);
|
|
};
|
|
|