~lthms/fairy.lisp

b46b47e3d0d4e973d1ae66d4155ad98a3fc491b9 — Thomas Letan 6 years ago aebbf29
fix: Revert the resource-key function, fix setf get-child
2 files changed, 2 insertions(+), 4 deletions(-)

M fairy.lisp
M tiled.lisp
M fairy.lisp => fairy.lisp +1 -3
@@ 113,9 113,7 @@
      (cdr (assoc key (children el)))))

(defmethod (setf get-child) (value (el layer) key &key test)
  (setf (if test
            (cdr (assoc key (children el) :test test))
            (cdr (assoc key (children el))))
  (setf (cdr (assoc key (children el) :test (if test test 'eq)))
        value))

(defmethod update ((el layer) dt)

M tiled.lisp => tiled.lisp +1 -1
@@ 28,7 28,7 @@
(cl:in-package :fairy/tiled)

(defun resource-key (path)
  (alexandria:make-keyword (namestring path)))
  (alexandria:make-keyword (file-namestring path)))

(defclass tile (fairy:element)
  ((path :initarg :path