MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / GetActionName

Function GetActionName

src/openrct2/scripting/ScriptEngine.cpp:1730–1738  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1728// clang-format on
1729
1730static std::string GetActionName(GameCommand commandId)
1731{
1732 auto it = ActionNameToType.find(commandId);
1733 if (it != ActionNameToType.end())
1734 {
1735 return std::string{ it->first };
1736 }
1737 return {};
1738}
1739
1740static std::unique_ptr<GameActions::GameAction> CreateGameActionFromActionId(const std::string& name)
1741{

Callers 1

RunGameActionHooksMethod · 0.85

Calls 2

findMethod · 0.80
endMethod · 0.65

Tested by

no test coverage detected