Abstract tileset/tilecol/enemy switching to functions

This results in me having to copy-paste less code around, because
editorinput() is big enough as it is.
This commit is contained in:
Misa
2020-06-30 21:39:10 -07:00
committed by Ethan Lee
parent a0f8b83563
commit e8cf521ed7
2 changed files with 138 additions and 67 deletions

View File

@@ -134,6 +134,11 @@ class editorclass{
int backmatch(int x, int y);
void switch_tileset(const bool reversed = false);
void switch_tilecol(const bool reversed = false);
void clamp_tilecol(const int rx, const int ry, const bool wrap = false);
void switch_enemy(const bool reversed = false);
bool load(std::string& _path);
bool save(std::string& _path);
void generatecustomminimap();