Can someone explain what the function of onGMActions is and how I can use it in modules?
I've looked everywhere for answers and have hit a dead end.
protocolcodes.h
luafunctions.cpp
game.cpp
Even after finding so many uses of it and links in the code I still can't seem to figure out what it does or how exactly it works.
Any guidance would be wonderful.
More of a general question would be I can't seem to figure out how this all links to how the client identifies a players access level as a gamemaster.
I've looked everywhere for answers and have hit a dead end.
protocolcodes.h
GameServerOpcodes : uint8
{
GameServerGMActions = 11,
luafunctions.cpp
g_lua.bindSingletonFunction("g_game", "getGMActions", &Game::getGMActions, &g_game);
game.cpp
void Game:: ProcessGMActions(const std::vector<uint8>& actions)
{
m_gmActions = actions;
g_lua.callGlobalField("g_game", "onGMActions", actions);
}
Even after finding so many uses of it and links in the code I still can't seem to figure out what it does or how exactly it works.
Any guidance would be wonderful.
More of a general question would be I can't seem to figure out how this all links to how the client identifies a players access level as a gamemaster.
Last edited: