forked from teamnwah/openmw-tes3coop
[Client] Update method names in ActorList
This commit is contained in:
parent
5c1d7f614a
commit
56aeb85965
4 changed files with 11 additions and 11 deletions
|
@ -28,7 +28,7 @@ void ActorList::reset()
|
|||
cell.blank();
|
||||
baseActors.clear();
|
||||
positionActors.clear();
|
||||
drawStateActors.clear();
|
||||
animFlagsActors.clear();
|
||||
guid = mwmp::Main::get().getNetworking()->getLocalPlayer()->guid;
|
||||
}
|
||||
|
||||
|
@ -47,9 +47,9 @@ void ActorList::addPositionActor(LocalActor localActor)
|
|||
positionActors.push_back(localActor);
|
||||
}
|
||||
|
||||
void ActorList::addDrawStateActor(LocalActor localActor)
|
||||
void ActorList::addAnimFlagsActor(LocalActor localActor)
|
||||
{
|
||||
drawStateActors.push_back(localActor);
|
||||
animFlagsActors.push_back(localActor);
|
||||
}
|
||||
|
||||
void ActorList::sendPositionActors()
|
||||
|
@ -62,11 +62,11 @@ void ActorList::sendPositionActors()
|
|||
}
|
||||
}
|
||||
|
||||
void ActorList::sendDrawStateActors()
|
||||
void ActorList::sendAnimFlagsActors()
|
||||
{
|
||||
if (drawStateActors.size() > 0)
|
||||
if (animFlagsActors.size() > 0)
|
||||
{
|
||||
baseActors = drawStateActors;
|
||||
baseActors = animFlagsActors;
|
||||
Main::get().getNetworking()->getActorPacket(ID_ACTOR_ANIM_FLAGS)->setActorList(this);
|
||||
Main::get().getNetworking()->getActorPacket(ID_ACTOR_ANIM_FLAGS)->Send();
|
||||
}
|
||||
|
|
|
@ -22,10 +22,10 @@ namespace mwmp
|
|||
void addActor(LocalActor localActor);
|
||||
|
||||
void addPositionActor(LocalActor localActor);
|
||||
void addDrawStateActor(LocalActor localActor);
|
||||
void addAnimFlagsActor(LocalActor localActor);
|
||||
|
||||
void sendPositionActors();
|
||||
void sendDrawStateActors();
|
||||
void sendAnimFlagsActors();
|
||||
|
||||
void editActorsInCell(MWWorld::CellStore* cellStore);
|
||||
|
||||
|
@ -35,7 +35,7 @@ namespace mwmp
|
|||
Networking *getNetworking();
|
||||
|
||||
std::vector<BaseActor> positionActors;
|
||||
std::vector<BaseActor> drawStateActors;
|
||||
std::vector<BaseActor> animFlagsActors;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ void Cell::updateLocal(bool forceUpdate)
|
|||
}
|
||||
|
||||
actorList->sendPositionActors();
|
||||
actorList->sendDrawStateActors();
|
||||
actorList->sendAnimFlagsActors();
|
||||
}
|
||||
|
||||
void Cell::updateDedicated(float dt)
|
||||
|
|
|
@ -107,7 +107,7 @@ void LocalActor::updateAnimFlags(bool forceUpdate)
|
|||
if (isJumping)
|
||||
updatePosition(true); // fix position after jump;
|
||||
|
||||
mwmp::Main::get().getNetworking()->getActorList()->addDrawStateActor(*this);
|
||||
mwmp::Main::get().getNetworking()->getActorList()->addAnimFlagsActor(*this);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue