Rename basic-map-layer to map-layer
This commit is contained in:
@@ -121,8 +121,8 @@
|
||||
"Material" {"material" :methods
|
||||
"material!" :methods}
|
||||
"MathUtils" {"math!" :static-methods}
|
||||
"MapLayer" {"basic-map-layer" :methods
|
||||
"basic-map-layer!" :methods}
|
||||
"MapLayer" {"map-layer" :methods
|
||||
"map-layer!" :methods}
|
||||
"Matrix3" {"matrix-3" :methods
|
||||
"matrix-3!" :methods}
|
||||
"Matrix4" {"matrix-4" :methods
|
||||
|
||||
@@ -155,27 +155,27 @@ from the tiled map in `screen` from the given `layer` and position `x` and `y`.
|
||||
[object k & options]
|
||||
`(u/call! ^TiledMapTileLayer$Cell ~object ~k ~@options))
|
||||
|
||||
(defn basic-map-layer*
|
||||
(defn map-layer*
|
||||
([]
|
||||
(MapLayer.))
|
||||
([screen layer]
|
||||
(tiled-map-layer* screen layer)))
|
||||
|
||||
(defmacro basic-map-layer
|
||||
(defmacro map-layer
|
||||
"Returns a [MapLayer](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/maps/MapLayer.html)
|
||||
from the tiled map in `screen` that matches `layer`. This is necessary for
|
||||
non-tile layers, like object and image layers.
|
||||
|
||||
(basic-map-layer screen \"objects\")"
|
||||
(map-layer screen \"objects\")"
|
||||
[screen layer & options]
|
||||
`(let [^MapLayer object# (basic-map-layer* ~screen ~layer)]
|
||||
`(let [^MapLayer object# (map-layer* ~screen ~layer)]
|
||||
(u/calls! object# ~@options)))
|
||||
|
||||
(defmacro basic-map-layer!
|
||||
"Calls a single method on a `basic-map-layer`.
|
||||
(defmacro map-layer!
|
||||
"Calls a single method on a `map-layer`.
|
||||
|
||||
(basic-map-layer! (basic-map-layer screen \"objects\")
|
||||
:set-visible false)"
|
||||
(map-layer! (map-layer screen \"objects\")
|
||||
:set-visible false)"
|
||||
[object k & options]
|
||||
`(u/call! ^MapLayer ~object ~k ~@options))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user