From 2d20dc042a386bc9f66bc5f535403227f9acf1b1 Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Fri, 22 Sep 2017 13:46:32 +0200 Subject: No more import ... exposing. It got too confusing. --- client/elm/battlemap/src/Character.elm | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'client/elm/battlemap/src/Character.elm') diff --git a/client/elm/battlemap/src/Character.elm b/client/elm/battlemap/src/Character.elm index 5c64d45..6b6a7c7 100644 --- a/client/elm/battlemap/src/Character.elm +++ b/client/elm/battlemap/src/Character.elm @@ -1,18 +1,19 @@ -module Character exposing (Character, CharacterRef, to_comparable) +module Character exposing (Type, Ref, get_ref) -import Battlemap.Location exposing (Location) +import Battlemap.Location -type alias Character = +type alias Type = { id : String, name : String, icon : String, portrait : String, - location : Location, + location : Battlemap.Location.Type, movement_points : Int } -type alias CharacterRef = String -to_comparable : Character -> CharacterRef -to_comparable c = +type alias Ref = String + +get_ref : Type -> Ref +get_ref c = c.id -- cgit v1.2.3-70-g09d2