forked from mirror/openmw-tes3mp
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
766 B
C++
28 lines
766 B
C++
#ifndef OPENMW_PROCESSORACTORANIMFLAGS_HPP
|
|
#define OPENMW_PROCESSORACTORANIMFLAGS_HPP
|
|
|
|
#include "../ActorProcessor.hpp"
|
|
|
|
namespace mwmp
|
|
{
|
|
class ProcessorActorAnimFlags : public ActorProcessor
|
|
{
|
|
public:
|
|
ProcessorActorAnimFlags()
|
|
{
|
|
BPP_INIT(ID_ACTOR_ANIM_FLAGS)
|
|
}
|
|
|
|
void Do(ActorPacket &packet, Player &player, BaseActorList &actorList) override
|
|
{
|
|
// Send only to players who have the cell loaded
|
|
Cell *serverCell = CellController::get()->getCell(&actorList.cell);
|
|
|
|
if (serverCell != nullptr && *serverCell->getAuthority() == actorList.guid)
|
|
serverCell->sendToLoaded(&packet, &actorList);
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif //OPENMW_PROCESSORACTORANIMFLAGS_HPP
|