diff options
author | Shauren <shauren.trinity@gmail.com> | 2024-01-12 12:40:20 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2024-01-12 12:40:20 +0100 |
commit | 151dd67e2eb22e49ce84c2eb28b08985bcce7602 (patch) | |
tree | 4b52296cbcd0d16758cdf2f726eca8523f1e6dd7 /src/server/game/Conditions/ConditionMgr.h | |
parent | 0b5406dd882c6d96bc1be6fd0a78375c3b316415 (diff) |
Core/Conditions: Added stringid condition type
Diffstat (limited to 'src/server/game/Conditions/ConditionMgr.h')
-rw-r--r-- | src/server/game/Conditions/ConditionMgr.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/server/game/Conditions/ConditionMgr.h b/src/server/game/Conditions/ConditionMgr.h index cedc07ed67c..1eb24ca1b92 100644 --- a/src/server/game/Conditions/ConditionMgr.h +++ b/src/server/game/Conditions/ConditionMgr.h @@ -116,6 +116,7 @@ enum ConditionTypes CONDITION_SCENE_IN_PROGRESS = 55, // SceneScriptPackageId 0 0 true if player is playing a scene with ScriptPackageId equal to given value CONDITION_PLAYER_CONDITION = 56, // PlayerConditionId 0 0 true if player satisfies PlayerCondition CONDITION_PRIVATE_OBJECT = 57, // 0 0 0 true if entity is private object + CONDITION_STRING_ID = 58, CONDITION_MAX }; @@ -251,6 +252,7 @@ struct TC_GAME_API Condition uint32 ConditionValue1; uint32 ConditionValue2; uint32 ConditionValue3; + std::string ConditionStringValue1; uint32 ErrorType; uint32 ErrorTextId; uint32 ReferenceId; @@ -335,6 +337,7 @@ class TC_GAME_API ConditionMgr bool HasConditionValue1; bool HasConditionValue2; bool HasConditionValue3; + bool HasConditionStringValue1; }; static char const* const StaticSourceTypeData[CONDITION_SOURCE_TYPE_MAX_DB_ALLOWED]; static ConditionTypeInfo const StaticConditionTypeData[CONDITION_MAX]; @@ -349,7 +352,8 @@ class TC_GAME_API ConditionMgr void addToGraveyardData(ConditionId const& id, std::shared_ptr<std::vector<Condition>> conditions) const; bool IsObjectMeetToConditionList(ConditionSourceInfo& sourceInfo, ConditionContainer const& conditions) const; - static void LogUselessConditionValue(Condition* cond, uint8 index, uint32 value); + static void LogUselessConditionValue(Condition const* cond, uint8 index, uint32 value); + static void LogUselessConditionValue(Condition const* cond, uint8 index, std::string_view value); void Clean(); // free up resources |