|
|
|
@ -54,6 +54,7 @@ void Cell::updateLocal(bool forceUpdate)
|
|
|
|
|
|
|
|
|
|
actorList->sendPositionActors();
|
|
|
|
|
actorList->sendAnimFlagsActors();
|
|
|
|
|
actorList->sendAnimPlayActors();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Cell::updateDedicated(float dt)
|
|
|
|
@ -109,6 +110,28 @@ void Cell::readAnimFlags(ActorList& actorList)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Cell::readAnimPlay(ActorList& actorList)
|
|
|
|
|
{
|
|
|
|
|
initializeDedicatedActors(actorList);
|
|
|
|
|
|
|
|
|
|
BaseActor baseActor;
|
|
|
|
|
|
|
|
|
|
for (unsigned int i = 0; i < actorList.count; i++)
|
|
|
|
|
{
|
|
|
|
|
baseActor = actorList.baseActors.at(i);
|
|
|
|
|
std::string mapIndex = Main::get().getCellController()->generateMapIndex(baseActor);
|
|
|
|
|
|
|
|
|
|
if (dedicatedActors.count(mapIndex) > 0)
|
|
|
|
|
{
|
|
|
|
|
DedicatedActor *actor = dedicatedActors[mapIndex];
|
|
|
|
|
actor->animation.groupname = baseActor.animation.groupname;
|
|
|
|
|
actor->animation.mode = baseActor.animation.mode;
|
|
|
|
|
actor->animation.count = baseActor.animation.count;
|
|
|
|
|
actor->animation.persist = baseActor.animation.persist;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Cell::initializeLocalActors()
|
|
|
|
|
{
|
|
|
|
|
ESM::Cell esmCell = *store->getCell();
|
|
|
|
|