Script: Only log each string parameter warning message once

This commit is contained in:
Jonathan G Rennison
2023-03-27 20:14:49 +01:00
parent ce5c758f2b
commit 29c451d1a8
8 changed files with 38 additions and 4 deletions

View File

@@ -75,6 +75,12 @@ public:
*/
static void FreeLogPointer();
/**
* Log this message once.
* @api -all
*/
static void LogOnce(ScriptLog::ScriptLogType level, std::string &&message);
private:
/**
* Internal command to log the message in a common way.