summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2017-11-10 13:03:11 +0100
committernsensfel <SpamShield0@noot-noot.org>2017-11-10 13:03:11 +0100
commit5621bd5d513a2be44608f09f2b821e42387dd8f0 (patch)
tree4fc3d35b7921c970effd2725a59d9820f9309421 /src/shim_database.erl
parentfde7249bb3b185f2447585e9406775f351133632 (diff)
Still have to create the ETS tables...
Diffstat (limited to 'src/shim_database.erl')
-rw-r--r--src/shim_database.erl12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/shim_database.erl b/src/shim_database.erl
new file mode 100644
index 0000000..237ff4d
--- /dev/null
+++ b/src/shim_database.erl
@@ -0,0 +1,12 @@
+-module(shim_database).
+-export([fetch/2]).
+
+fetch(battlemaps_db, _Object_ID) ->
+ Width = (rand:uniform(54) + 10),
+ Height = (rand:uniform(54) + 10),
+ {ok,
+ {
+ shim_battlemap_battlemap:generate(Width, Height),
+ shim_battlemap_character:generate(Width, Height)
+ }
+ }.