(svn r15055) -Add [NoAI]: add the AICONFIG_RANDOM and AICONFIG_BOOLEAN consts (Yexo)

This commit is contained in:
truebrain 2009-01-13 12:51:46 +00:00
parent 04ea0b9316
commit e6543c2776
1 changed files with 2 additions and 0 deletions

View File

@ -160,6 +160,8 @@ AIScanner::AIScanner()
this->engine->AddClassBegin("AILibrary");
this->engine->AddClassEnd();
this->engine->AddMethod("RegisterLibrary", &AILibrary::Constructor, 2, "tx");
this->engine->AddConst("AICONFIG_RANDOM", AICONFIG_RANDOM);
this->engine->AddConst("AICONFIG_BOOLEAN", AICONFIG_BOOLEAN);
/* Mark this class as global pointer */
this->engine->SetGlobalPointer(this);