mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 13:19:56 +00:00
7393e3def6
ESM::Cell's getDescription() method was modified by aa5161f99e
despite being used heavily by TES3MP. All instances of it in the TES3MP code have now been changed into the newly added getShortDescription() that is identical to the previous getDescription().
66 lines
1.9 KiB
C++
66 lines
1.9 KiB
C++
#ifndef OPENMW_MPCELL_HPP
|
|
#define OPENMW_MPCELL_HPP
|
|
|
|
#include "ActorList.hpp"
|
|
#include "LocalActor.hpp"
|
|
#include "DedicatedActor.hpp"
|
|
#include "../mwworld/cellstore.hpp"
|
|
|
|
namespace mwmp
|
|
{
|
|
class Cell
|
|
{
|
|
public:
|
|
|
|
Cell(MWWorld::CellStore* cellStore);
|
|
virtual ~Cell();
|
|
|
|
void updateLocal(bool forceUpdate);
|
|
void updateDedicated(float dt);
|
|
|
|
void readPositions(ActorList& actorList);
|
|
void readAnimFlags(ActorList& actorList);
|
|
void readAnimPlay(ActorList& actorList);
|
|
void readStatsDynamic(ActorList& actorList);
|
|
void readDeath(ActorList& actorList);
|
|
void readEquipment(ActorList& actorList);
|
|
void readSpeech(ActorList& actorList);
|
|
void readSpellsActive(ActorList& actorList);
|
|
void readAi(ActorList& actorList);
|
|
void readAttack(ActorList& actorList);
|
|
void readCast(ActorList& actorList);
|
|
void readCellChange(ActorList& actorList);
|
|
|
|
void initializeLocalActor(const MWWorld::Ptr& ptr);
|
|
void initializeLocalActors();
|
|
|
|
void initializeDedicatedActor(const MWWorld::Ptr& ptr);
|
|
void initializeDedicatedActors(ActorList& actorList);
|
|
|
|
void uninitializeLocalActors();
|
|
void uninitializeDedicatedActors(ActorList& actorList);
|
|
void uninitializeDedicatedActors();
|
|
|
|
virtual LocalActor *getLocalActor(std::string actorIndex);
|
|
virtual DedicatedActor *getDedicatedActor(std::string actorIndex);
|
|
|
|
bool hasLocalAuthority();
|
|
void setAuthority(const RakNet::RakNetGUID& guid);
|
|
|
|
MWWorld::CellStore* getCellStore();
|
|
std::string getShortDescription();
|
|
|
|
bool shouldInitializeActors;
|
|
|
|
private:
|
|
MWWorld::CellStore* store;
|
|
RakNet::RakNetGUID authorityGuid;
|
|
|
|
std::map<std::string, LocalActor *> localActors;
|
|
std::map<std::string, DedicatedActor *> dedicatedActors;
|
|
|
|
float updateTimer;
|
|
};
|
|
}
|
|
|
|
#endif //OPENMW_MPCELL_HPP
|