Update region system to current codebase due to PR rot

This commit is contained in:
mothbeanie
2024-07-05 14:59:15 -07:00
committed by Misa Elizabeth Kai
parent 94620d809e
commit dedf941b25
9 changed files with 366 additions and 115 deletions
+34 -2
View File
@@ -12,6 +12,21 @@
#include "TowerBG.h"
#include "WarpClass.h"
struct MapRenderData
{
int zoom;
int xoff;
int yoff;
int legendxoff;
int legendyoff;
int startx;
int starty;
int width;
int height;
int pixelsx;
int pixelsy;
};
struct Roomtext
{
int x, y;
@@ -163,8 +178,6 @@ public:
//Variables for playing custom levels
bool custommode;
bool custommodeforreal;
int custommmxoff, custommmyoff, custommmxsize, custommmysize;
int customzoom;
bool customshowmm;
//final level colour cycling stuff
@@ -198,6 +211,25 @@ public:
//Map cursor
int cursorstate, cursordelay;
//Region system
struct regionstruct
{
bool isvalid;
int rx;
int ry;
int rx2;
int ry2;
};
struct regionstruct region[401];
void setregion(int id, int rx, int ry, int rx2, int ry2);
void removeregion(int id);
void changeregion(int id);
int currentregion;
int regionx, regiony;
int regionwidth, regionheight;
MapRenderData get_render_data(void);
};
#ifndef MAP_DEFINITION