(svn r23366) -Codechange: move most of the Dummy code to script/, unifying it

This commit is contained in:
truebrain
2011-11-29 23:26:52 +00:00
parent 4505edbd47
commit 3e6d026129
12 changed files with 61 additions and 55 deletions

View File

@@ -229,6 +229,12 @@ void AIInstance::Died()
}
}
void AIInstance::LoadDummyScript()
{
extern void Script_CreateDummy(HSQUIRRELVM vm, StringID string, const char *type);
Script_CreateDummy(this->engine->GetVM(), STR_ERROR_AI_NO_AI_FOUND, "AI");
}
/**
* DoCommand callback function for all commands executed by AIs.
* @param result The result of the command.