Added modpol.menu() functions modpol and modpol_minetest. Not sure if latter works.

This commit is contained in:
Nathan Schneider
2021-03-14 22:51:53 -06:00
parent 8faca7931a
commit ac6bae3f85
5 changed files with 51 additions and 7 deletions

View File

@@ -3,6 +3,20 @@
-- User interaction functions for Modular Politics
-- Called by modpol.lua
-- ===================================================================
-- Function: modpol.menu(user)
-- Params: user (string)
-- Q: Should this return a menu of commands relevant to the specific user?
-- Output: Displays a menu of commands to the user
-- TKTK currently just prints all of modpol---needs major improvement
modpol.menu = function(user)
local output = "Command list:\n"
for key,value in pairs(modpol) do
output = output .. "- modpol." .. key .. "\n"
end
print(output)
end
-- ===================================================================
-- Function: modpol.binary_poll_user(user, question)
-- Params: user (string), question (string)

View File

@@ -70,7 +70,6 @@ modpol.load_storage()
-- ===================================================================
-- ModPol core features
dofile (topdir .. "/api.lua")