mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 14:02:59 +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 { | ||||
|   | ||||
| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue