(svn r23611) -Add: run the begin of the script already while generating, and don't sleep on DoCommand while doing so

This commit is contained in:
truebrain
2011-12-19 20:56:50 +00:00
parent cbe43abe5d
commit 83f2785f54
7 changed files with 30 additions and 4 deletions

View File

@@ -159,6 +159,12 @@ public:
*/
void InsertEvent(class ScriptEvent *event);
/**
* Check if the instance is sleeping, which either happened because the
* script executed a DoCommand, or executed this.Sleep().
*/
bool IsSleeping() { return this->suspend != 0; }
protected:
class Squirrel *engine; ///< A wrapper around the squirrel vm.