mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-03-13 23:18:16 +00:00
rogueviz:: function id_known
This commit is contained in:
parent
279cd5a6ba
commit
9d2faeef51
@ -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 {
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user