Lua tag lists
Index and take length of tag lists like a table, 1-indexed. There are three methods which may be used on tag lists: list:iterate() - returns an iterator over the tags in the list list:has(tag) - returns a boolean whether the tag is in the list list.shares(list2) - returns whether two lists share a tag "find" is also an alias to "has". Each method may be accessed from the global taglist library too, e.g. taglist.iterate(list) Tag lists may be compared with an equality operator too. This will tell you if the two lists are composed of identical tags. Accessible from sector.taglist, line.taglist and mapthing.taglist.
parent
c2217bb4
No related branches found
No related tags found
Showing
- src/lua_baselib.c 3 additions, 0 deletionssrc/lua_baselib.c
- src/lua_libs.h 3 additions, 0 deletionssrc/lua_libs.h
- src/lua_maplib.c 12 additions, 0 deletionssrc/lua_maplib.c
- src/lua_mobjlib.c 7 additions, 0 deletionssrc/lua_mobjlib.c
- src/lua_script.h 2 additions, 0 deletionssrc/lua_script.h
- src/lua_taglib.c 156 additions, 0 deletionssrc/lua_taglib.c
Loading
Please register or sign in to comment