Added Clear() method in ScriptThreadLabel

This commit is contained in:
smallmodel 2023-11-27 20:05:21 +01:00
parent ac6b5ef1f7
commit d7350d8629
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512
2 changed files with 7 additions and 0 deletions

View file

@ -904,6 +904,12 @@ void ScriptThreadLabel::Execute(const SafePtr<Listener>& listener, const SafePtr
}
}
void ScriptThreadLabel::Clear()
{
m_Script = NULL;
m_Label = STRING_EMPTY;
}
void ScriptThreadLabel::Set(const char *label)
{
str script;

View file

@ -165,6 +165,7 @@ public:
void Execute(Listener *listener, Event *ev);
void Execute(const SafePtr<Listener> &listener, const SafePtr<Listener> &param);
void Clear();
void Set(const char *label);
void Set(const_str label);
void SetScript(const ScriptVariable& label);