More scene metadata

* Added the ability to specify a change to play
* Added the ability to specify if a scene can play multiple times to the same player
This commit is contained in:
wincent
2023-10-30 19:02:54 +01:00
parent cdc9dda3c4
commit 9954e20eac
4 changed files with 30 additions and 4 deletions

View File

@@ -101,6 +101,8 @@ private:
NiPoint3 m_Center;
float m_Bounds = 0.0f;
float m_ShowingDistance = 0.0f;
float m_ChanceToPlay = 1.0f;
bool m_Repeatable = true;
std::vector<std::pair<PreconditionExpression, bool>> m_Preconditions;
@@ -110,6 +112,8 @@ private:
std::unordered_set<LWOOBJID> m_Audience;
std::unordered_set<LWOOBJID> m_HasBeenOutside;
std::unordered_set<LWOOBJID> m_VisitedPlayers;
static std::unordered_map<std::string, Scene> m_Scenes;
};