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/script_list.hpp | |
parent | 2128f1e92906563fc7237b8a43f6fa723de70e7c (diff) | |
download | openttd-1a5b2f0e17c5e694401e4d3730ed348e9f6d5f76.tar.xz |
(svn r26894) -Feature: Swap method for script lists
Diffstat (limited to 'src/script/api/script_list.hpp')
-rw-r--r-- | src/script/api/script_list.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/script/api/script_list.hpp b/src/script/api/script_list.hpp index e6f4d137d..4e844e1c9 100644 --- a/src/script/api/script_list.hpp +++ b/src/script/api/script_list.hpp @@ -153,6 +153,12 @@ public: void AddList(ScriptList *list); /** + * Swap the contents of two lists. + * @param list The list that will be swapped with. + */ + void SwapList(ScriptList *list); + + /** * Removes all items with a higher value than 'value'. * @param value the value above which all items are removed. */ |