(define-module (mudsync game-master)
#:use-module (mudsync networking)
- #:use-module (8sync systems actors)
+ #:use-module (8sync actors)
#:use-module (8sync agenda)
#:use-module (oop goops)
#:use-module (ice-9 match)
(new-conn-handler #:getter gm-new-conn-handler
#:init-keyword #:new-conn-handler)
- (message-handler
+ (actions
+ #:allocation #:each-subclass
#:init-value
- (make-action-dispatch
- (init-world (wrap-apply gm-init-world))
- (client-input (wrap-apply gm-handle-client-input))
- (lookup-special (wrap-apply gm-lookup-special))
- (new-client (wrap-apply gm-new-client))
- (write-home (wrap-apply gm-write-home))
- (client-closed (wrap-apply gm-client-closed))
- (inject-special! (wrap-apply gm-inject-special!)))))
+ (build-actions
+ (init-world gm-init-world)
+ (client-input gm-handle-client-input)
+ (lookup-special gm-lookup-special)
+ (new-client gm-new-client)
+ (write-home gm-write-home)
+ (client-closed gm-client-closed)
+ (inject-special! gm-inject-special!))))
;;; .. begin world init stuff ..
#:input data))
(define* (gm-lookup-special actor message #:key symbol)
- (<-reply actor message
- #:val (hash-ref (slot-ref actor 'special-dir) symbol)))
+ (<-reply actor message (hash-ref (slot-ref actor 'special-dir) symbol)))
(define* (gm-write-home actor message #:key text)
(define client-id (hash-ref (gm-reverse-client-dir actor)