X-Git-Url: https://jxself.org/git/?p=mudsync.git;a=blobdiff_plain;f=mudsync%2Fgameobj.scm;h=3e23ae6ff7b7054e7fe3fe26e614588b724f1b2f;hp=827876955432036712c4f8bae655f89573e66ee6;hb=d198683d31a3b359e26cc688cc04cebc8ca978c6;hpb=a07b01054f0c8bd8dc2bc4e278ed6a00e339bc79 diff --git a/mudsync/gameobj.scm b/mudsync/gameobj.scm index 8278769..3e23ae6 100644 --- a/mudsync/gameobj.scm +++ b/mudsync/gameobj.scm @@ -52,7 +52,7 @@ (set-loc! (wrap-apply gameobj-set-loc!)) (get-name (wrap-apply gameobj-get-name)) (get-desc (wrap-apply gameobj-get-desc)) - (goes-by (wrap-apply gameobj-goes-by)) + (goes-by (wrap-apply gameobj-act-goes-by)) (visible-name (wrap-apply gameobj-visible-name)))) ;;; *all* game components that talk to players should somehow @@ -77,7 +77,7 @@ (goes-by #:init-keyword #:goes-by #:init-value #f) - (desc #:init-value "" + (desc #:init-value #f #:init-keyword #:desc) ;; how to print our name @@ -127,6 +127,11 @@ (list name))) (else '()))) +(define (gameobj-act-goes-by actor message) + "Reply to a message requesting what we go by." + (<-reply actor message + #:goes-by (gameobj-goes-by actor))) + (define (val-or-run val-or-proc) "Evaluate if a procedure, or just return otherwise" (if (procedure? val-or-proc)