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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user