forked from teamnwah/openmw-tes3coop
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.
29 lines
704 B
C++
29 lines
704 B
C++
#ifndef OPENMW_PROCESSORACTORAI_HPP
|
|
#define OPENMW_PROCESSORACTORAI_HPP
|
|
|
|
#include "../ActorProcessor.hpp"
|
|
|
|
namespace mwmp
|
|
{
|
|
class ProcessorActorAI : public ActorProcessor
|
|
{
|
|
public:
|
|
ProcessorActorAI()
|
|
{
|
|
BPP_INIT(ID_ACTOR_AI)
|
|
}
|
|
|
|
void Do(ActorPacket &packet, Player &player, BaseActorList &actorList) override
|
|
{
|
|
Cell *serverCell = CellController::get()->getCell(&actorList.cell);
|
|
|
|
if (serverCell != nullptr)
|
|
{
|
|
Script::Call<Script::CallbackIdentity("OnActorAI")>(player.getId(), actorList.cell.getDescription().c_str());
|
|
}
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif //OPENMW_PROCESSORACTORAI_HPP
|