mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-07-28 01:51:49 +03:00
Update region system to current codebase due to PR rot
This commit is contained in:
committed by
Misa Elizabeth Kai
parent
94620d809e
commit
dedf941b25
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user