2019-07-11 15:51:10 +00:00

29 lines
786 B
Lua

-- Visual Bots v0.3
-- (c)2019 Nigel Garnett.
--
-- see licence.txt
--
vbots={}
vbots.modpath = minetest.get_modpath("vbots")
vbots.bot_info = {}
-------------------------------------
-- Generate 32 bit key for formspec identification
-------------------------------------
function vbots.get_key()
math.randomseed(minetest.get_us_time())
local w = math.random()
local key = tostring( math.random(255) +
math.random(255) * 256 +
math.random(255) * 256*256 +
math.random(255) * 256*256*256 )
return key
end
dofile(vbots.modpath.."/formspec.lua")
dofile(vbots.modpath.."/formspec_handler.lua")
dofile(vbots.modpath.."/register_bot.lua")
dofile(vbots.modpath.."/register_commands.lua")
dofile(vbots.modpath.."/register_joinleave.lua")