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.
37 lines
605 B
37 lines
605 B
#pragma once
|
|
#include "olcUTIL_Geometry2D.h"
|
|
|
|
struct XMLTag;
|
|
|
|
enum MapName{
|
|
LEVEL1,
|
|
LEVEL2,
|
|
CAMPAIGN_1_1,
|
|
};
|
|
|
|
struct TileCollisionData{
|
|
geom2d::rect<int>collision;
|
|
};
|
|
|
|
struct TilesetData{
|
|
Renderable*tileset;
|
|
std::map<int,XMLTag>foregroundTiles;
|
|
std::map<int,TileCollisionData>collision;
|
|
};
|
|
|
|
struct TileRenderData{
|
|
Decal*tileset;
|
|
vi2d pos;
|
|
vi2d tileSheetPos;
|
|
};
|
|
|
|
struct TileGroup{
|
|
private:
|
|
geom2d::rect<int>range;
|
|
std::vector<TileRenderData>tiles;
|
|
public:
|
|
geom2d::rect<int>GetRange();
|
|
std::vector<TileRenderData>&GetTiles();
|
|
void InsertTile(TileRenderData tile);
|
|
bool playerBehind=false;
|
|
}; |