mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 23:19:56 +00:00
26 lines
654 B
C++
26 lines
654 B
C++
|
#ifndef OPENMW_PROCESSORCLIENTSCRIPTGLOBAL_HPP
|
||
|
#define OPENMW_PROCESSORCLIENTSCRIPTGLOBAL_HPP
|
||
|
|
||
|
#include "../WorldstateProcessor.hpp"
|
||
|
|
||
|
namespace mwmp
|
||
|
{
|
||
|
class ProcessorClientScriptGlobal : public WorldstateProcessor
|
||
|
{
|
||
|
public:
|
||
|
ProcessorClientScriptGlobal()
|
||
|
{
|
||
|
BPP_INIT(ID_CLIENT_SCRIPT_GLOBAL)
|
||
|
}
|
||
|
|
||
|
void Do(WorldstatePacket &packet, Player &player, BaseWorldstate &worldstate) override
|
||
|
{
|
||
|
DEBUG_PRINTF(strPacketID.c_str());
|
||
|
|
||
|
Script::Call<Script::CallbackIdentity("OnClientScriptGlobal")>(player.getId());
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif //OPENMW_PROCESSORCLIENTSCRIPTGLOBAL_HPP
|