Minetest-WorldEditAdditions/worldeditadditions_core/utils/parse/init.lua

29 lines
1.2 KiB
Lua
Raw Normal View History

2022-09-18 16:32:13 +00:00
local wea_c = worldeditadditions_core
2021-06-03 02:27:04 +00:00
-- ██████ █████ ██████ ███████ ███████
-- ██ ██ ██ ██ ██ ██ ██ ██
-- ██████ ███████ ██████ ███████ █████
-- ██ ██ ██ ██ ██ ██ ██
-- ██ ██ ██ ██ ██ ███████ ███████
-- Unified Axes Keyword Parser
2022-09-18 16:32:13 +00:00
local uak_parse = dofile(wea_c.modpath.."/utils/parse/axes_parser.lua")
-- Old axis parsing functions
2022-09-18 16:32:13 +00:00
local axes = dofile(wea_c.modpath.."/utils/parse/axes.lua")
2022-09-18 16:32:13 +00:00
wea_c.parse = {
2022-05-24 01:49:24 +00:00
direction_keyword = uak_parse.keyword,
directions = uak_parse.keytable,
-- Old parse functions (marked for deprecation).
-- Use parse.keytable or parse.keyword instead
axes = axes.parse_axes,
axis_name = axes.parse_axis_name,
2022-09-18 16:32:13 +00:00
seed = dofile(wea_c.modpath.."/utils/parse/seed.lua"),
chance = dofile(wea_c.modpath.."/utils/parse/chance.lua"),
map = dofile(wea_c.modpath.."/utils/parse/map.lua"),
weighted_nodes = dofile(wea_c.modpath.."/utils/parse/weighted_nodes.lua")
}
2022-09-18 16:32:13 +00:00
dofile(wea_c.modpath.."/utils/parse/tokenise_commands.lua")