mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-16 04:53:00 +00:00
Starbeamrainbowlabs
3311d80a2a
We need a way of defining metaballs per-player. Our solution to this is a custom in-memory per-player storage system. The reason for this is because just a position (e.g. that provided by pos1/pos2) is not enough - we need a radius as well.
15 lines
358 B
Lua
15 lines
358 B
Lua
local wea = worldeditadditions
|
|
local wea_m = wea.modpath .. "/lib/metaballs/"
|
|
|
|
local playerdata = dofile(wea_m.."playerdata.lua")
|
|
|
|
local metaballs_ns = {
|
|
render = dofile(wea_m.."render.lua"),
|
|
add = playerdata.add,
|
|
remove = playerdata.remove,
|
|
list = playerdata.list,
|
|
list_pretty = playerdata.list_pretty,
|
|
clear = playerdata.clear
|
|
}
|
|
|
|
return metaballs_ns
|