From d5afbda6ee186c27f6ea0079ff91ba68899e7289 Mon Sep 17 00:00:00 2001 From: Paul-Vincent Roll Date: Sat, 6 Feb 2016 20:59:59 +0100 Subject: [PATCH] Updated Module System Proposal (asciidoc) --- Module-System-Proposal.asciidoc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Module-System-Proposal.asciidoc b/Module-System-Proposal.asciidoc index 5ddb7c7..a532962 100644 --- a/Module-System-Proposal.asciidoc +++ b/Module-System-Proposal.asciidoc @@ -38,8 +38,15 @@ Every module in the module folder should contain the module.js file defining a c Any helper scrips (php) should be in the module folder, and should not affect any other module or the main system. There should be a way to start scripts (python, node etc.) as daemons. Maybe some kind of API to send data back to the modules should be implemented (socket.io & UNIX sockets). +## API functionality +### Multiuser +`function overwriteRegion(region, content) { ... }` - Function to temporarily overwrite regions used by other modules and replace their content (for multiuser applications or showing information after login) + +`function restoreRegion(region) { ... }` - Function to restore regions to their original state. Also add an `all` input to restore all regions changed by the plugin. + +Maybe it would be better to implement some kind of general multiuser system, so that in config.js you can specify different module sets for different users. Modules could than be used to switch them by providing face, speech or whatever recognition . *** -_... please edit with your suggestions ...._ +_... please edit with your suggestions ...._ \ No newline at end of file