@ -9,6 +9,11 @@ using namespace mwmp;
WorldProcessor::processors_t WorldProcessor::processors;
void WorldProcessor::Do(WorldPacket &packet, Player &player, BaseEvent &event)
{
packet.Send(true);
}
void WorldProcessor::AddProcessor(mwmp::WorldProcessor *processor) noexcept
for(auto &p : processors)
@ -23,7 +23,7 @@ namespace mwmp
public:
virtual void Do(WorldPacket &packet, Player &player, BaseEvent &event) = 0;
virtual void Do(WorldPacket &packet, Player &player, BaseEvent &event);
static bool Process(RakNet::Packet &packet) noexcept;
static void AddProcessor(WorldProcessor *processor) noexcept;
@ -16,11 +16,6 @@ namespace mwmp
BPP_INIT(ID_MUSIC_PLAY)
void Do(WorldPacket &packet, Player &player, BaseEvent &event) override
};
BPP_INIT(ID_OBJECT_ANIM_PLAY)
BPP_INIT(ID_OBJECT_MOVE)
BPP_INIT(ID_OBJECT_ROTATE)
BPP_INIT(ID_SCRIPT_GLOBAL_SHORT)
BPP_INIT(ID_SCRIPT_LOCAL_FLOAT)
BPP_INIT(ID_SCRIPT_LOCAL_SHORT)
BPP_INIT(ID_SCRIPT_MEMBER_SHORT)
BPP_INIT(ID_VIDEO_PLAY)