From c14e56360447d5581913d5a535b0540378f04a04 Mon Sep 17 00:00:00 2001 From: nsensfel Date: Fri, 3 May 2019 17:23:24 +0200 Subject: Adds partial Marker edition (no permissions yet). --- src/shared/battle-map/BattleMap/Struct/Map.elm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/shared/battle-map/BattleMap/Struct/Map.elm') diff --git a/src/shared/battle-map/BattleMap/Struct/Map.elm b/src/shared/battle-map/BattleMap/Struct/Map.elm index 97f0ae8..fb3f8fb 100644 --- a/src/shared/battle-map/BattleMap/Struct/Map.elm +++ b/src/shared/battle-map/BattleMap/Struct/Map.elm @@ -5,6 +5,7 @@ module BattleMap.Struct.Map exposing empty, get_height, get_markers, + set_markers, get_movement_cost_function, get_omnimods_at, get_tiles, @@ -76,6 +77,9 @@ get_tiles map = map.content get_markers : Type -> (Dict.Dict String BattleMap.Struct.Marker.Type) get_markers map = map.markers +set_markers : (Dict.Dict String BattleMap.Struct.Marker.Type) -> Type -> Type +set_markers markers map = {map | markers = markers} + set_tile_to : BattleMap.Struct.Location.Type -> BattleMap.Struct.TileInstance.Type -> Type -> Type set_tile_to loc tile_inst map = {map | -- cgit v1.2.3-70-g09d2