1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-18 06:35:12 +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 {