diff options
author | fonsinchen <fonsinchen@openttd.org> | 2014-09-21 16:25:15 +0000 |
---|---|---|
committer | fonsinchen <fonsinchen@openttd.org> | 2014-09-21 16:25:15 +0000 |
commit | 1a5b2f0e17c5e694401e4d3730ed348e9f6d5f76 (patch) | |
tree | 5da4da1b8ae7c4c5b201583a93b55adc63174905 /src/script/api/game | |
parent | 2128f1e92906563fc7237b8a43f6fa723de70e7c (diff) | |
download | openttd-1a5b2f0e17c5e694401e4d3730ed348e9f6d5f76.tar.xz |
(svn r26894) -Feature: Swap method for script lists
Diffstat (limited to 'src/script/api/game')
-rw-r--r-- | src/script/api/game/game_list.hpp.sq | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/script/api/game/game_list.hpp.sq b/src/script/api/game/game_list.hpp.sq index 03049b314..a46696def 100644 --- a/src/script/api/game/game_list.hpp.sq +++ b/src/script/api/game/game_list.hpp.sq @@ -40,6 +40,7 @@ void SQGSList_Register(Squirrel *engine) SQGSList.DefSQMethod(engine, &ScriptList::SetValue, "SetValue", 3, "xii"); SQGSList.DefSQMethod(engine, &ScriptList::Sort, "Sort", 3, "xib"); SQGSList.DefSQMethod(engine, &ScriptList::AddList, "AddList", 2, "xx"); + SQGSList.DefSQMethod(engine, &ScriptList::SwapList, "SwapList", 2, "xx"); SQGSList.DefSQMethod(engine, &ScriptList::RemoveAboveValue, "RemoveAboveValue", 2, "xi"); SQGSList.DefSQMethod(engine, &ScriptList::RemoveBelowValue, "RemoveBelowValue", 2, "xi"); SQGSList.DefSQMethod(engine, &ScriptList::RemoveBetweenValue, "RemoveBetweenValue", 3, "xii"); |