diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-06-11 11:05:25 +0200 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-06-11 11:05:25 +0200 |
commit | 0c78a3864f42e3a869f38c4f1b10ce61a7cc70b4 (patch) | |
tree | a39f41cf7a7104d3545a5823f7c4b0deeafe697f /src/common/group_lists.lua | |
parent | 891fc7ef41049e8e29b160eef93b3e9233b4a97f (diff) | |
download | skycraft-0c78a3864f42e3a869f38c4f1b10ce61a7cc70b4.tar.xz |
Daily Enhancements
Diffstat (limited to 'src/common/group_lists.lua')
-rw-r--r-- | src/common/group_lists.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/common/group_lists.lua b/src/common/group_lists.lua new file mode 100644 index 0000000..624b322 --- /dev/null +++ b/src/common/group_lists.lua @@ -0,0 +1,15 @@ +skycraft.group_lists = {} + +function skycraft.register_group_list(group) + local grouplist = {} + skycraft.group_lists[group] = grouplist + return grouplist +end + +function skycraft.get_group_list(group) + return skycraft.group_lists[group] or {} +end + +function skycraft.insert_group_list(item, group) + table.insert(skycraft.get_group_list(group), item) +end |