projects
/
mudsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Injection almost works, you can pass along the appropriate action at least.
[mudsync.git]
/
mudsync
/
game-master.scm
diff --git
a/mudsync/game-master.scm
b/mudsync/game-master.scm
index 9ced9fadfdf5b4ee90259e145e9b19f75c843acb..6a06cb7bf1af4de62be822c901c8283568cc26ab 100644
(file)
--- a/
mudsync/game-master.scm
+++ b/
mudsync/game-master.scm
@@
-56,7
+56,8
@@
(lookup-special (wrap-apply gm-lookup-special))
(new-client (wrap-apply gm-new-client))
(write-home (wrap-apply gm-write-home))
(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)))))
+ (client-closed (wrap-apply gm-client-closed))
+ (inject-special! (wrap-apply gm-inject-special!)))))
;;; .. begin world init stuff ..
;;; .. begin world init stuff ..
@@
-169,6
+170,13
@@
(gm-unregister-client! gm client)))
(gm-unregister-client! gm client)))
+(define-mhandler (gm-inject-special! gm message
+ special-symbol gameobj-spec)
+ "Inject, possiibly replacing the original, special symbol
+using the gameobj-spec."
+ (pk 'special-symbol special-symbol)
+ (pk 'gameobj-spec gameobj-spec))
+
;;; GM utilities
(define (gm-register-client! gm client-id player)
;;; GM utilities
(define (gm-register-client! gm client-id player)