summaryrefslogtreecommitdiff |
diff options
Diffstat (limited to 'elm/battlemap/src/Character.elm')
-rw-r--r-- | elm/battlemap/src/Character.elm | 5 |
1 files changed, 4 insertions, 1 deletions
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 |