summaryrefslogtreecommitdiff
blob: 4628664d835432a0032b07a2aa673a0f001533d2 (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 neew 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)
      }
   }.