summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2018-11-15 22:08:22 +0100
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2018-11-15 22:08:22 +0100
commit9939f0f046198823857e316faaf08b267e7ec03d (patch)
tree2b59ee20c8bd363de9bb6cd3312affe636be92f9 /src/map/struct/map_map.erl
parenta0d1713808f0682180fa04492a8ccc14627c0748 (diff)
ID as strings.
Diffstat (limited to 'src/map/struct/map_map.erl')
-rw-r--r--src/map/struct/map_map.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/struct/map_map.erl b/src/map/struct/map_map.erl
index cc30645..4cce9cf 100644
--- a/src/map/struct/map_map.erl
+++ b/src/map/struct/map_map.erl
@@ -105,11 +105,11 @@ get_tile_instances_field () -> #map.tile_instances.
binary(),
non_neg_integer(),
non_neg_integer(),
- list(list(non_neg_integer()))
+ list(list(binary()))
)
-> type().
from_list (Owner, Width, Height, List) ->
- TileInstances = lists:map(fun shr_tile:instance_from_ints/1, List),
+ TileInstances = lists:map(fun shr_tile:instance_from_binary_list/1, List),
#map
{
@@ -124,11 +124,11 @@ from_list (Owner, Width, Height, List) ->
type(),
non_neg_integer(),
non_neg_integer(),
- list(list(non_neg_integer()))
+ list(list(binary()))
)
-> type().
update_from_list (Map, Width, Height, List) ->
- TileInstances = lists:map(fun shr_tile:instance_from_ints/1, List),
+ TileInstances = lists:map(fun shr_tile:instance_from_binary_list/1, List),
Map#map
{