summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2010-05-29 22:11:12 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2010-05-30 17:50:55 +0200
commit3e669831a05c36a38519b6f22cb1ed3c11837f2f (patch)
tree21a2763b425480c909d43efe0856cfbab48e3573 /example
parent8a95ed77fec7c2ef3c0fac81258f70db25009b48 (diff)
downloadmanaserv-3e669831a05c36a38519b6f22cb1ed3c11837f2f.tar.gz
manaserv-3e669831a05c36a38519b6f22cb1ed3c11837f2f.tar.bz2
manaserv-3e669831a05c36a38519b6f22cb1ed3c11837f2f.tar.xz
manaserv-3e669831a05c36a38519b6f22cb1ed3c11837f2f.zip
Copied basic Lua libs back from tmwserv-data and added dummy data
The dummy data is currently mostly empty data though, so still nothing to see as far as the example content is concerned. Reviewed-by: Bertram
Diffstat (limited to 'example')
-rw-r--r--example/clientdata/mana-skills.xml3
-rw-r--r--example/clientdata/maps/desert.tmx18
-rw-r--r--example/clientdata/monsters.xml3
-rw-r--r--example/clientdata/tilesets/tmw_desert_spacing.pngbin0 -> 37830 bytes
-rw-r--r--example/serverdata/maps.xml4
-rw-r--r--example/serverdata/permissions.xml42
-rw-r--r--example/serverdata/scripts/bomtest.lua7
7 files changed, 77 insertions, 0 deletions
diff --git a/example/clientdata/mana-skills.xml b/example/clientdata/mana-skills.xml
new file mode 100644
index 00000000..118450c6
--- /dev/null
+++ b/example/clientdata/mana-skills.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="utf-8"?>
+<skills>
+</skills>
diff --git a/example/clientdata/maps/desert.tmx b/example/clientdata/maps/desert.tmx
new file mode 100644
index 00000000..f35f5483
--- /dev/null
+++ b/example/clientdata/maps/desert.tmx
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<map version="1.0" orientation="orthogonal" width="40" height="40" tilewidth="32" tileheight="32">
+ <tileset firstgid="1" name="Desert" tilewidth="32" tileheight="32" spacing="1" margin="1">
+ <image source="../tilesets/tmw_desert_spacing.png"/>
+ </tileset>
+ <layer name="Ground" width="40" height="40">
+ <data encoding="base64" compression="gzip">
+ H4sIAAAAAAAAA+2Y2QrCMBBFo31wA+sCrlirdd/q/3+dIzZUhtAmMRlH6cPBBlJyvDO2g5EQIvJIFwiBnudzbLgp/JYMvH4lv2dWI2AMTBj4qKgBdSBA3j7OmgIzA+ZAC2gDHYIsVsDagMSj36HAbwOcgO0X/YrySzTzpPDbMfS7Iy/sdxGv/r8S++Gew+uyvHBfuvBT/Q4OKD95XeaHc3WV3x6tpY9pfr7riz0xx6x+upwd+DUymiJ/FxURaO6TLD70C0U+X8jvWkRHc5/qPhu/scjniz4wKGGouU91n8/eoyYW6jmHk2dM6GMzm1F43bJPnWfn+/sncXS+Ljp+T6d7tpfSL2Xoh/uam59Nfd/nCyq/1MAPZ8ktP1WtOftR5mczm1H6/QsxA4dfAWfF7b/BqsYVFZ/xABSXR5cAGQAA
+ </data>
+ </layer>
+ <objectgroup name="Objects" width="40" height="40">
+ <object name="Main script" type="SCRIPT" x="16" y="25" width="167" height="10">
+ <properties>
+ <property name="FILENAME" value="scripts/bomtest.lua"/>
+ </properties>
+ </object>
+ </objectgroup>
+</map>
diff --git a/example/clientdata/monsters.xml b/example/clientdata/monsters.xml
new file mode 100644
index 00000000..21ddc80a
--- /dev/null
+++ b/example/clientdata/monsters.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="utf-8"?>
+<monsters>
+</monsters>
diff --git a/example/clientdata/tilesets/tmw_desert_spacing.png b/example/clientdata/tilesets/tmw_desert_spacing.png
new file mode 100644
index 00000000..4e9995c0
--- /dev/null
+++ b/example/clientdata/tilesets/tmw_desert_spacing.png
Binary files differ
diff --git a/example/serverdata/maps.xml b/example/serverdata/maps.xml
new file mode 100644
index 00000000..94673852
--- /dev/null
+++ b/example/serverdata/maps.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<maps>
+ <map id="1" name="desert" />
+</maps>
diff --git a/example/serverdata/permissions.xml b/example/serverdata/permissions.xml
new file mode 100644
index 00000000..f2eeae36
--- /dev/null
+++ b/example/serverdata/permissions.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<permissions>
+ <class level="1">
+ <alias>player</alias>
+ <allow>@help</allow>
+ <allow>@where</allow>
+ <allow>@rights</allow>
+ <allow>@report</allow>
+ </class>
+ <class level="2">
+ <alias>tester</alias>
+ <allow>@warp</allow>
+ </class>
+ <class level="3">
+ <alias>dev</alias>
+ <allow>@item</allow>
+ <allow>@drop</allow>
+ <allow>@money</allow>
+ <allow>@spawn</allow>
+ <allow>@attribute</allow>
+ </class>
+ <class level="4">
+ <alias>gm</alias>
+ <allow>@goto</allow>
+ <allow>@recall</allow>
+ <allow>@ban</allow>
+ <allow>@history</allow>
+ </class>
+ <class level="5">
+ </class>
+ <class level="6">
+ </class>
+ <class level="7">
+ </class>
+ <class level="8">
+ <alias>admin</alias>
+ <allow>@reload</allow>
+ <allow>@givepermission</allow>
+ <allow>@takepermission</allow>
+ <allow>@announce</allow>
+ </class>
+</permissions>
diff --git a/example/serverdata/scripts/bomtest.lua b/example/serverdata/scripts/bomtest.lua
new file mode 100644
index 00000000..d4b02124
--- /dev/null
+++ b/example/serverdata/scripts/bomtest.lua
@@ -0,0 +1,7 @@
+-------------------------------------------------------------------------------
+-- This file verifies that an UTF-8 BOM is correctly handled by manaserv ------
+
+function testUtf8Bom()
+ -- Dummy function, the test is really about whether the hidden BOM at the
+ -- start of this file is skipped before tripping the Lua parser.
+end