summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-11-06 21:02:23 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-11-07 18:54:37 +0100
commit391916f685afe93d9afb021b81f8d5b5789822bc (patch)
tree74c209d27da8db63bac99669b2dccb55f9e55650 /docs
parent80f0899c16931b41b51b062a3d020781c033bc87 (diff)
downloadmanaserv-391916f685afe93d9afb021b81f8d5b5789822bc.tar.gz
manaserv-391916f685afe93d9afb021b81f8d5b5789822bc.tar.xz
manaserv-391916f685afe93d9afb021b81f8d5b5789822bc.zip
Merged three global script states into one
These scripts could trivially share one script state, since the methods called on them from the server are not overlapping. This does leave them open to access each other's global variables, but that's the problem with global variables. The one remaining global script file name is now configurable, so that it may also be set to a script in a different scripting language. The two related script options are: script_mainFile (default: scripts/main.lua) script_defaultEngine (default: lua) - renamed from defaultScriptEngine Reviewed-by: jurkan Reviewed-by: Yohann Ferreira
Diffstat (limited to 'docs')
-rw-r--r--docs/manaserv.xml.example7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/manaserv.xml.example b/docs/manaserv.xml.example
index 75b7743..3ce0b41 100644
--- a/docs/manaserv.xml.example
+++ b/docs/manaserv.xml.example
@@ -289,4 +289,11 @@
<!-- end of mail configuration ******************************************** -->
+<!-- Scripting configuration ********************************************** -->
+
+ <option name="script_defaultEngine" value="lua"/>
+ <option name="script_mainFile" value="scripts/main.lua"/>
+
+<!-- End of scripting configuration *************************************** -->
+
</configuration>