summaryrefslogtreecommitdiff
blob: f1abd8b952110cccedf9f77c4a8f7db7048d5e43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
-module(shim_database).
-export([fetch/2]).

fetch(battlemaps_db, Object_ID) ->
   Width = (rand:uniform(54) + 10),
   Height = (rand:uniform(54) + 10),
   io:format
   (
      "~nGenerating new Battlemap ~p of size (~p, ~p)...~n",
      [Object_ID, Width, Height]
   ),
   {ok,
      {
         shim_battlemap_battlemap:generate(Width, Height),
         shim_battlemap_character:generate(Width, Height)
      }
   }.