mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Added Clear() method in ScriptThreadLabel
This commit is contained in:
parent
ac6b5ef1f7
commit
d7350d8629
2 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -165,6 +165,7 @@ public:
|
|||
void Execute(Listener *listener, Event *ev);
|
||||
void Execute(const SafePtr<Listener> &listener, const SafePtr<Listener> ¶m);
|
||||
|
||||
void Clear();
|
||||
void Set(const char *label);
|
||||
void Set(const_str label);
|
||||
void SetScript(const ScriptVariable& label);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue