OpenMW
|
#include <actoradapter.hpp>
Classes | |
class | ActorData |
class | RaceData |
Contains base race data shared between actors. More... | |
Public Types | |
using | ActorPartList = std::map< ESM::PartReferenceType, std::pair< std::string, int >> |
A list indexed by ESM::PartReferenceType. More... | |
using | RacePartList = std::array< std::string, ESM::BodyPart::MP_Count > |
A list indexed by ESM::BodyPart::MeshPart. More... | |
using | StringSet = std::unordered_set< std::string > |
Tracks unique strings. More... | |
using | RaceDataPtr = std::shared_ptr< RaceData > |
using | ActorDataPtr = std::shared_ptr< ActorData > |
Public Slots | |
void | handleReferenceablesInserted (const QModelIndex &, int, int) |
void | handleReferenceableChanged (const QModelIndex &, const QModelIndex &) |
void | handleReferenceablesAboutToBeRemoved (const QModelIndex &, int, int) |
void | handleReferenceablesRemoved (const QModelIndex &, int, int) |
void | handleRacesInserted (const QModelIndex &, int, int) |
void | handleRaceChanged (const QModelIndex &, const QModelIndex &) |
void | handleRacesAboutToBeRemoved (const QModelIndex &, int, int) |
void | handleRacesRemoved (const QModelIndex &, int, int) |
void | handleBodyPartsInserted (const QModelIndex &, int, int) |
void | handleBodyPartChanged (const QModelIndex &, const QModelIndex &) |
void | handleBodyPartsAboutToBeRemoved (const QModelIndex &, int, int) |
void | handleBodyPartsRemoved (const QModelIndex &, int, int) |
Signals | |
void | actorChanged (const std::string &refId) |
Public Member Functions | |
ActorAdapter (Data &data) | |
ActorDataPtr | getActorData (const std::string &refId) |
Obtains the shared data for a given actor. More... | |
Private Member Functions | |
ActorAdapter (const ActorAdapter &)=delete | |
ActorAdapter & | operator= (const ActorAdapter &)=delete |
QModelIndex | getHighestIndex (QModelIndex) const |
bool | is1stPersonPart (const std::string &id) const |
RaceDataPtr | getRaceData (const std::string &raceId) |
void | setupActor (const std::string &id, ActorDataPtr data) |
void | setupRace (const std::string &id, RaceDataPtr data) |
void | setupNpc (const std::string &id, ActorDataPtr data) |
void | addNpcItem (const std::string &itemId, ActorDataPtr data) |
void | setupCreature (const std::string &id, ActorDataPtr data) |
void | markDirtyDependency (const std::string &dependency) |
void | updateDirty () |
Private Attributes | |
RefIdCollection & | mReferenceables |
IdCollection< ESM::Race > & | mRaces |
IdCollection< ESM::BodyPart > & | mBodyParts |
Misc::WeakCache< std::string, ActorData > | mCachedActors |
Misc::WeakCache< std::string, RaceData > | mCachedRaces |
StringSet | mDirtyActors |
StringSet | mDirtyRaces |
Adapts multiple collections to provide the data needed to render an npc or creature.
using CSMWorld::ActorAdapter::ActorDataPtr = std::shared_ptr<ActorData> |
using CSMWorld::ActorAdapter::ActorPartList = std::map<ESM::PartReferenceType, std::pair<std::string, int>> |
A list indexed by ESM::PartReferenceType.
using CSMWorld::ActorAdapter::RaceDataPtr = std::shared_ptr<RaceData> |
using CSMWorld::ActorAdapter::RacePartList = std::array<std::string, ESM::BodyPart::MP_Count> |
A list indexed by ESM::BodyPart::MeshPart.
using CSMWorld::ActorAdapter::StringSet = std::unordered_set<std::string> |
Tracks unique strings.
CSMWorld::ActorAdapter::ActorAdapter | ( | Data & | data | ) |
|
privatedelete |
|
signal |
|
private |
ActorAdapter::ActorDataPtr CSMWorld::ActorAdapter::getActorData | ( | const std::string & | refId | ) |
Obtains the shared data for a given actor.
|
private |
|
private |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
private |
|
private |
|
privatedelete |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |