Liking cljdoc? Tell your friends :D


Heroes of Might and Magic III: The Shadow of Death maps parser. Parse only visual elements. A lot of gameplay elements are omit or unknown.



(ns h3m-lwp-clj.core
  (:require [ :as io]
            [h3m-parser.main :as h3m]))

(def file-path "./resources/invasion.h3m")

(if (not (.exists (io/file file-path)))
    (throw (Exception. (str "File " file-path " doesn't exists")))
    (println (h3m/parse-file file-path)))
{:description "This map is taken from the catalogue\n",
 :teams-count 2,
 :heroes [],
 :difficulty 3,
 :map-version 28,
 :has-players? true,
 ... }

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close