Liking cljdoc? Tell your friends :D

advenjure.plugins.dark

Plugin that allows marking a room as :dark, in which case a :lit source is required to display it. If missing, a dark version of the room is presented instead.

Plugin that allows marking a room as :dark, in which case a :lit source
is required to display it. If missing, a dark version of the room is presented
instead.
raw docstring

build-dark-roomclj/s

(build-dark-room game-state)

Make a dark version of the current room, preserving only the connection to the previous one.

Make a dark version of the current room, preserving only the connection to the
previous one.
sourceraw docstring

dark-roomclj/s

source

hookclj/s

(hook game-state)

If this is a regular room marked as :dark and there's no light source, replace it with a generated dark copy of the room. If this is a generated dark copy of a room, and there's a light source, replace it with the regular room.

If this is a regular room marked as :dark and there's no light source, replace
it with a generated dark copy of the room.
If this is a generated dark copy of a room, and there's a light source, replace
it with the regular room.
sourceraw docstring

light-available?clj/s

(light-available? game-state)

Returns true if the room is dark and there are no light sources available.

Returns true if the room is dark and there are no light sources available.
sourceraw docstring

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

× close