forked from mirror/openmw-tes3mp
4ca5da5666
Use LibFFI for Public & Timer APIs Use "PlayerId" type instead "unsigned short" Add GetPluginDir() function
25 lines
572 B
C++
25 lines
572 B
C++
#ifndef OPENMW_PROCESSORWORLDMAP_HPP
|
|
#define OPENMW_PROCESSORWORLDMAP_HPP
|
|
|
|
#include "../WorldstateProcessor.hpp"
|
|
|
|
namespace mwmp
|
|
{
|
|
class ProcessorWorldMap : public WorldstateProcessor
|
|
{
|
|
public:
|
|
ProcessorWorldMap()
|
|
{
|
|
BPP_INIT(ID_WORLD_MAP)
|
|
}
|
|
|
|
void Do(WorldstatePacket &packet, Player &player, BaseWorldstate &worldstate) override
|
|
{
|
|
DEBUG_PRINTF(strPacketID.c_str());
|
|
|
|
Plugin::Call<CallbackIndex("OnWorldMap")>(player.getId());
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif //OPENMW_PROCESSORWORLDMAP_HPP
|