diff options
author | stuebinm | 2021-12-29 02:00:55 +0100 |
---|---|---|
committer | stuebinm | 2021-12-29 02:00:55 +0100 |
commit | bfe19c53c8540c298fa76650be03a189baa66fa5 (patch) | |
tree | 369fbebb5860d2139aab617ff35ede94f6c67b34 /lib/Util.hs | |
parent | a129ad47dd8d4202e3e64e9868e9eba4ff004fb2 (diff) |
tiles can also have properties like tile layers
Diffstat (limited to 'lib/Util.hs')
-rw-r--r-- | lib/Util.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Util.hs b/lib/Util.hs index a6c8354..d760fc2 100644 --- a/lib/Util.hs +++ b/lib/Util.hs @@ -15,6 +15,7 @@ import qualified Data.Text as T import Tiled (Layer (layerData), PropertyValue (..), Tileset (tilesetName), layerName, mkTiledId) + -- | helper function to create proxies mkProxy :: a -> Proxy a mkProxy = const Proxy @@ -65,10 +66,9 @@ printPretty :: PrettyPrint a => a -> IO () printPretty = putStr . T.unpack . prettyprint -layerIsEmpty :: Layer -> Bool -layerIsEmpty layer = case layerData layer of - Nothing -> True - Just d -> all ((==) $ mkTiledId 0) d + + + -- | naive escaping of html sequences, just to be sure that -- | workadventure won't mess things up again … |