From d2b5c94b717e2d1b7b73a74a1f1ec6af70890a96 Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Wed, 27 Sep 2017 10:48:49 +0200 Subject: Small cleanups. --- elm/battlemap/src/Character.elm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'elm/battlemap/src/Character.elm') diff --git a/elm/battlemap/src/Character.elm b/elm/battlemap/src/Character.elm index 41cfc84..f98dfd9 100644 --- a/elm/battlemap/src/Character.elm +++ b/elm/battlemap/src/Character.elm @@ -1,4 +1,4 @@ -module Character exposing (Type, Ref, get_ref) +module Character exposing (Type, Ref, get_ref, get_location) import Battlemap.Location @@ -18,3 +18,6 @@ type alias Ref = String get_ref : Type -> Ref get_ref c = c.id + +get_location : Type -> Battlemap.Location.Type +get_location t = t.location -- cgit v1.2.3-70-g09d2