mirror of
https://github.com/fedddddd/iw5-gsc-utils.git
synced 2025-07-04 10:11:54 +00:00
Refactoring + update some stuff
This commit is contained in:
@ -71,6 +71,19 @@ namespace scripting
|
||||
}
|
||||
}
|
||||
|
||||
std::string find_token(unsigned int id)
|
||||
{
|
||||
for (const auto& token : token_map)
|
||||
{
|
||||
if (token.second == id)
|
||||
{
|
||||
return token.first;
|
||||
}
|
||||
}
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
int find_token_id(const std::string& name)
|
||||
{
|
||||
const auto result = token_map.find(name);
|
||||
|
Reference in New Issue
Block a user