mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-05-17 06:34:07 +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;
|
map<string, int> labeler;
|
||||||
|
|
||||||
|
bool id_known(const string& s) {
|
||||||
|
return labeler.count(s);
|
||||||
|
}
|
||||||
|
|
||||||
int getid(const string& s) {
|
int getid(const string& s) {
|
||||||
if(labeler.count(s)) return labeler[s];
|
if(labeler.count(s)) return labeler[s];
|
||||||
else {
|
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);
|
void createViz(int id, cell *c, transmatrix at);
|
||||||
|
|
||||||
extern map<string, int> labeler;
|
extern map<string, int> labeler;
|
||||||
|
bool id_known(const string& s);
|
||||||
int getid(const string& s);
|
int getid(const string& s);
|
||||||
int getnewid(string s);
|
int getnewid(string s);
|
||||||
extern string fname;
|
extern string fname;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user