2021-06-03 02:57:46 +02:00
|
|
|
-- ████████ █████ ██████ ██ ███████ ███████
|
|
|
|
-- ██ ██ ██ ██ ██ ██ ██ ██
|
|
|
|
-- ██ ███████ ██████ ██ █████ ███████
|
|
|
|
-- ██ ██ ██ ██ ██ ██ ██ ██
|
|
|
|
-- ██ ██ ██ ██████ ███████ ███████ ███████
|
|
|
|
|
|
|
|
-- Functions that operate on tables.
|
|
|
|
-- Lua doesn't exactly come with batteries included, so this is quite an
|
|
|
|
-- extensive collection of functions :P
|
|
|
|
|
|
|
|
-- TODO: Refactor into its own worldeditadditions.tables namespace.
|
2021-06-03 04:27:23 +02:00
|
|
|
worldeditadditions.tables = {}
|
2021-06-03 02:57:46 +02:00
|
|
|
|
2021-06-03 04:18:49 +02:00
|
|
|
dofile(worldeditadditions.modpath.."/utils/tables/sets.lua")
|
2021-06-03 02:57:46 +02:00
|
|
|
dofile(worldeditadditions.modpath.."/utils/tables/shallowcopy.lua")
|
|
|
|
dofile(worldeditadditions.modpath.."/utils/tables/table_apply.lua")
|
2021-06-03 04:18:49 +02:00
|
|
|
dofile(worldeditadditions.modpath.."/utils/tables/table_filter.lua")
|
2021-06-03 02:57:46 +02:00
|
|
|
dofile(worldeditadditions.modpath.."/utils/tables/table_get_last.lua")
|
|
|
|
dofile(worldeditadditions.modpath.."/utils/tables/table_map.lua")
|
2021-06-03 04:18:49 +02:00
|
|
|
dofile(worldeditadditions.modpath.."/utils/tables/table_tostring.lua")
|
2021-06-03 02:57:46 +02:00
|
|
|
dofile(worldeditadditions.modpath.."/utils/tables/table_unique.lua")
|
2021-06-03 04:18:49 +02:00
|
|
|
dofile(worldeditadditions.modpath.."/utils/tables/table_unpack.lua")
|