defnew &prop

This commit is contained in:
2021-05-16 17:18:56 -06:00
parent 285f318782
commit ed8b1191cb
3 changed files with 36 additions and 7 deletions

View File

@@ -1,7 +1,5 @@
(defnew [assetsBackend]
// TODO use &prop for this
[:AssetsBackend backend assetsBackend
:Map<String,Surface> _surfaces (new Map)])
(defnew [&prop :AssetsBackend backend]
[:Map<String,Surface> _surfaces (new Map)])
// TODO don't allow overriding a key -- use a macro so all load___() calls check their maps first
(defmethod loadSurface [key path]