From e77609c5bc8b44aa22ef88063246fd05add5e705 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Fri, 24 Mar 2023 21:11:10 +0000 Subject: use lmdb for world storage; plus other small things support numpad 8456 for movement in addition to wasd refactor server and add player module update outdated documentation slightly --- db.lua | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 db.lua (limited to 'db.lua') diff --git a/db.lua b/db.lua new file mode 100644 index 0000000..e87b1b6 --- /dev/null +++ b/db.lua @@ -0,0 +1,6 @@ +local lmdb=require'lmdb' +local env=lmdb.open('data',{maxdbs=16}) +return { + env=env, + txn=function(...) return env.txn_begin(...) end, +} -- cgit v1.2.3