[Server] Add ReadCellActorList() script function

0.6.1
David Cernat 8 years ago
parent a73cbac226
commit 217894100a

@ -25,6 +25,13 @@ void ActorFunctions::ReadLastActorList() noexcept
readActorList = mwmp::Networking::getPtr()->getLastActorList();
}
void ActorFunctions::ReadCellActorList(const char* cellDescription) noexcept
{
ESM::Cell esmCell = Utils::getCellFromDescription(cellDescription);
Cell *serverCell = CellController::get()->getCell(&esmCell);
readActorList = serverCell->getActorList();
}
void ActorFunctions::InitializeActorList(unsigned short pid) noexcept
{
Player *player;

@ -3,6 +3,7 @@
#define ACTORAPI \
{"ReadLastActorList", ActorFunctions::ReadLastActorList},\
{"ReadCellActorList", ActorFunctions::ReadCellActorList},\
{"InitializeActorList", ActorFunctions::InitializeActorList},\
\
{"GetActorListSize", ActorFunctions::GetActorListSize},\
@ -57,6 +58,7 @@ class ActorFunctions
public:
static void ReadLastActorList() noexcept;
static void ReadCellActorList(const char* cellDescription) noexcept;
static void InitializeActorList(unsigned short pid) noexcept;
static unsigned int GetActorListSize() noexcept;

Loading…
Cancel
Save