Commit graph

10 commits

Author SHA1 Message Date
NepDisk
2f84779d41 Update rest of the existing files to use blankart branding 2025-07-01 00:23:30 -04:00
James R
8b0d2bb158 Better check for tag list userdata 2020-12-14 08:08:01 -08:00
James R
20c6259821 Push "valid" only once 2020-12-14 05:53:57 -08:00
James R
a4ea83b1dc Invalidate taglist userdata 2020-12-05 02:26:00 -08:00
James R
22270d354b Reset taggroup iterator on successive calls 2020-12-05 02:08:00 -08:00
James R
1c6133a39a Lua: taglist.add and taglist.remove for sector tag lists 2020-12-05 02:02:06 -08:00
James R
408d31431f Fix removing a tag unsetting the bit array even if more elements with that tag exist 2020-12-05 01:14:52 -08:00
James R
01e7c48630 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.
2020-12-04 13:53:27 -08:00
James R
3c0c15f28c Mkae Lua taggroups indexable
They are 1-indexed.
2020-12-04 04:54:12 -08:00
James R
4cf8e32135 hehehehehe what if I forgot to git add? 2020-12-04 02:27:46 -08:00