forked from mirror/openmw-tes3mp
[Server] Move packet.Send(true) to parent class
This commit is contained in:
parent
9ecc70d17c
commit
c8fb7d9c1a
11 changed files with 6 additions and 46 deletions
|
@ -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
|
||||
{
|
||||
packet.Send(true);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -16,11 +16,6 @@ namespace mwmp
|
|||
{
|
||||
BPP_INIT(ID_OBJECT_ANIM_PLAY)
|
||||
}
|
||||
|
||||
void Do(WorldPacket &packet, Player &player, BaseEvent &event) override
|
||||
{
|
||||
packet.Send(true);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -16,11 +16,6 @@ namespace mwmp
|
|||
{
|
||||
BPP_INIT(ID_OBJECT_MOVE)
|
||||
}
|
||||
|
||||
void Do(WorldPacket &packet, Player &player, BaseEvent &event) override
|
||||
{
|
||||
packet.Send(true);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -16,11 +16,6 @@ namespace mwmp
|
|||
{
|
||||
BPP_INIT(ID_OBJECT_ROTATE)
|
||||
}
|
||||
|
||||
void Do(WorldPacket &packet, Player &player, BaseEvent &event) override
|
||||
{
|
||||
packet.Send(true);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -16,11 +16,6 @@ namespace mwmp
|
|||
{
|
||||
BPP_INIT(ID_SCRIPT_GLOBAL_SHORT)
|
||||
}
|
||||
|
||||
void Do(WorldPacket &packet, Player &player, BaseEvent &event) override
|
||||
{
|
||||
packet.Send(true);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -16,11 +16,6 @@ namespace mwmp
|
|||
{
|
||||
BPP_INIT(ID_SCRIPT_LOCAL_FLOAT)
|
||||
}
|
||||
|
||||
void Do(WorldPacket &packet, Player &player, BaseEvent &event) override
|
||||
{
|
||||
packet.Send(true);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -16,11 +16,6 @@ namespace mwmp
|
|||
{
|
||||
BPP_INIT(ID_SCRIPT_LOCAL_SHORT)
|
||||
}
|
||||
|
||||
void Do(WorldPacket &packet, Player &player, BaseEvent &event) override
|
||||
{
|
||||
packet.Send(true);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -16,11 +16,6 @@ namespace mwmp
|
|||
{
|
||||
BPP_INIT(ID_SCRIPT_MEMBER_SHORT)
|
||||
}
|
||||
|
||||
void Do(WorldPacket &packet, Player &player, BaseEvent &event) override
|
||||
{
|
||||
packet.Send(true);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -16,11 +16,6 @@ namespace mwmp
|
|||
{
|
||||
BPP_INIT(ID_VIDEO_PLAY)
|
||||
}
|
||||
|
||||
void Do(WorldPacket &packet, Player &player, BaseEvent &event) override
|
||||
{
|
||||
packet.Send(true);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue