From 5621bd5d513a2be44608f09f2b821e42387dd8f0 Mon Sep 17 00:00:00 2001 From: nsensfel Date: Fri, 10 Nov 2017 13:03:11 +0100 Subject: Still have to create the ETS tables... --- src/shim_database.erl | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/shim_database.erl (limited to 'src/shim_database.erl') 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) + } + }. -- cgit v1.2.3-70-g09d2