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

fetch(battlemaps_db, Object_ID) ->
   io:format("~nGenerating new Battlemap ~p... ~n", [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)
      }
   }.