From: Christopher Allan Webber Date: Mon, 2 May 2016 16:03:21 +0000 (-0500) Subject: some example room commands X-Git-Tag: fosdem-2017~200 X-Git-Url: https://jxself.org/git/?p=mudsync.git;a=commitdiff_plain;h=023ca5e3222fa0f53a30440c23e538b411af5195;hp=5650e1452ded5d26afeba3c9ef2714bad277b03c some example room commands --- diff --git a/mudsync.scm b/mudsync.scm index 5dd58b1..a15f5b9 100644 --- a/mudsync.scm +++ b/mudsync.scm @@ -485,7 +485,14 @@ with an anonymous persona" (hash-remove! (slot-ref actor 'occupants) who)) (wire-exits! (wrap-apply room-wire-exits!))))) -(define %room-contain-commands 'TODO) +(define always (const #t)) + +(define %room-contain-commands + (list + (command "look" cmatch-just-verb always 'look-room) + (command "look" cmatch-direct-obj always 'look-member) + (command "go" cmathc-just-verb always 'go-where) + (command "go" cmatch-direct-obj always 'go-exit))) (define (room-wire-exits! room message)