summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2018-08-28 18:30:19 +0200
committernsensfel <SpamShield0@noot-noot.org>2018-08-28 18:30:19 +0200
commitc41e76dc8fcbef9b64bee69e921304a2cad2fdd4 (patch)
tree0df6e3d4647ef7860d4fb4dc5f5a9004e0dd7455 /src/battle/struct/btl_map.erl
parentea42e4ea8667ddf8e9c30cbf234c109a139c25ff (diff)
Adds the structure for omnimods, merges *_tile.erl
Diffstat (limited to 'src/battle/struct/btl_map.erl')
-rw-r--r--src/battle/struct/btl_map.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/battle/struct/btl_map.erl b/src/battle/struct/btl_map.erl
index ddf2bb1..c784bca 100644
--- a/src/battle/struct/btl_map.erl
+++ b/src/battle/struct/btl_map.erl
@@ -12,7 +12,7 @@
id :: id(),
width :: integer(),
height :: integer(),
- tile_ids :: array:array(btl_tile:instance())
+ tile_ids :: array:array(shr_tile:instance())
}
).
@@ -72,10 +72,10 @@ get_width (Map) -> Map#map.width.
-spec get_height (type()) -> integer().
get_height (Map) -> Map#map.height.
--spec get_tile_instances (type()) -> array:array(btl_tile:instance()).
+-spec get_tile_instances (type()) -> array:array(shr_tile:instance()).
get_tile_instances (Map) -> Map#map.tile_ids.
--spec get_tile_instance (btl_location:type(), type()) -> btl_tile:instance().
+-spec get_tile_instance (btl_location:type(), type()) -> shr_tile:instance().
get_tile_instance (Location, Map) ->
TileIX = location_to_array_index(Map#map.width, Location),
array:get(TileIX, Map#map.tile_ids).
@@ -89,7 +89,7 @@ get_tile_instance (Location, Map) ->
)
-> type().
from_list (ID, Width, Height, List) ->
- TileInstances = lists:map(fun btl_tile:instance_from_ints/1, List),
+ TileInstances = lists:map(fun shr_tile:instance_from_ints/1, List),
#map
{