1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-13 17:06:52 +00:00

rogueviz:: function id_known

This commit is contained in:
Zeno Rogue 2021-06-25 14:00:31 +02:00
parent 279cd5a6ba
commit 9d2faeef51
2 changed files with 5 additions and 0 deletions

View File

@ -161,6 +161,10 @@ vector<vertexdata> vdata;
map<string, int> labeler;
bool id_known(const string& s) {
return labeler.count(s);
}
int getid(const string& s) {
if(labeler.count(s)) return labeler[s];
else {

View File

@ -238,6 +238,7 @@ function<void(presmode)> roguevizslide_action(char c, const T& t, const U& act)
void createViz(int id, cell *c, transmatrix at);
extern map<string, int> labeler;
bool id_known(const string& s);
int getid(const string& s);
int getnewid(string s);
extern string fname;