Переглянути джерело

Merge branch 'asdf-setup' of swatson/clwars into features

Simon Watson 1 рік тому
батько
коміт
318f8a1687
3 змінених файлів з 14 додано та 13 видалено
  1. 13 0
      clwars.asd
  2. 1 4
      clwars.lisp
  3. 0 9
      game.lisp

+ 13 - 0
clwars.asd

@@ -0,0 +1,13 @@
+(asdf:defsystem clwars
+  :version "0.0.1"
+  :depends-on (:closer-mop)
+  :components ((:file "plumbing")
+               (:file "structs")
+               (:file "clwars")
+	       (:file "crew")
+	       (:file "economy")
+	       (:file "sector")
+	       (:file "ship")
+	       (:file "combat")
+	       (:file "ascii-assets")
+	       (:file "game")))

+ 1 - 4
clwars.lisp

@@ -1,8 +1,5 @@
-(ql:quickload "closer-mop")
-(load "~/Repos/clwars/game.lisp")
-
 (defun reload()
-  (load "~/Repos/clwars/clwars.lisp"))
+  (asdf:load-system 'clwars))
 
 (defun main ()
   (format t *menu-splash*)

+ 0 - 9
game.lisp

@@ -1,12 +1,3 @@
-(load "~/Repos/clwars/structs.lisp")
-(load "~/Repos/clwars/plumbing.lisp")
-(load "~/Repos/clwars/crew.lisp")
-(load "~/Repos/clwars/economy.lisp")
-(load "~/Repos/clwars/sector.lisp")
-(load "~/Repos/clwars/ship.lisp")
-(load "~/Repos/clwars/ascii-assets.lisp")
-
-
 (defvar *sector* NIL)
 	
 (defun init-game-state ()