Skip to content

Commit

Permalink
NWN: Add model name getter for Situated
Browse files Browse the repository at this point in the history
  • Loading branch information
Supermanu committed Jul 4, 2018
1 parent b6e32cc commit c2f39dc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/engines/nwn/situated.cpp
Expand Up @@ -138,6 +138,10 @@ Object *Situated::getLastUsedBy() const {
return _lastUsedBy;
}

const Common::UString &Situated::getModelName() const {
return _modelName;
}

void Situated::load(const Aurora::GFF3Struct &instance, const Aurora::GFF3Struct *blueprint) {
// General properties

Expand Down
3 changes: 3 additions & 0 deletions src/engines/nwn/situated.h
Expand Up @@ -64,6 +64,9 @@ class Situated : public Object {
/** Return the object that last used this situated object. */
Object *getLastUsedBy () const;

/** Get the model name. */
const Common::UString &getModelName() const;

// Positioning

/** Set the situated object's position. */
Expand Down

0 comments on commit c2f39dc

Please sign in to comment.