summaryrefslogtreecommitdiff |
diff options
author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2018-11-15 22:08:22 +0100 |
---|---|---|
committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2018-11-15 22:08:22 +0100 |
commit | 9939f0f046198823857e316faaf08b267e7ec03d (patch) | |
tree | 2b59ee20c8bd363de9bb6cd3312affe636be92f9 /src/map/struct/map_map.erl | |
parent | a0d1713808f0682180fa04492a8ccc14627c0748 (diff) |
ID as strings.
Diffstat (limited to 'src/map/struct/map_map.erl')
-rw-r--r-- | src/map/struct/map_map.erl | 8 |
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 { |