diff options
author | yexo <yexo@openttd.org> | 2009-07-31 19:50:01 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-07-31 19:50:01 +0000 |
commit | c2ed8840123cc81f58b3db8d6341b22349b4ac78 (patch) | |
tree | 71e42277f511c8cdfa800e9d564d159e20b595ff /src/ai/api/ai_abstractlist.hpp.sq | |
parent | 0bb3d7030ffdd336acd0131a00b93c6aa1b26419 (diff) | |
download | openttd-c2ed8840123cc81f58b3db8d6341b22349b4ac78.tar.xz |
(svn r17005) -Add [NoAI]: AIAbstractList::SORT_ASCENDING / SORT_DESCENDING
Diffstat (limited to 'src/ai/api/ai_abstractlist.hpp.sq')
-rw-r--r-- | src/ai/api/ai_abstractlist.hpp.sq | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ai/api/ai_abstractlist.hpp.sq b/src/ai/api/ai_abstractlist.hpp.sq index 1ab62061a..cf84420fb 100644 --- a/src/ai/api/ai_abstractlist.hpp.sq +++ b/src/ai/api/ai_abstractlist.hpp.sq @@ -24,6 +24,9 @@ void SQAIAbstractList_Register(Squirrel *engine) { SQAIAbstractList.DefSQConst(engine, AIAbstractList::SORT_BY_VALUE, "SORT_BY_VALUE"); SQAIAbstractList.DefSQConst(engine, AIAbstractList::SORT_BY_ITEM, "SORT_BY_ITEM"); + SQAIAbstractList.DefSQConst(engine, AIAbstractList::SORT_ASCENDING, "SORT_ASCENDING"); + SQAIAbstractList.DefSQConst(engine, AIAbstractList::SORT_DESCENDING, "SORT_DESCENDING"); + SQAIAbstractList.DefSQMethod(engine, &AIAbstractList::Clear, "Clear", 1, "x"); SQAIAbstractList.DefSQMethod(engine, &AIAbstractList::HasItem, "HasItem", 2, "xi"); SQAIAbstractList.DefSQMethod(engine, &AIAbstractList::Begin, "Begin", 1, "x"); |