summaryrefslogtreecommitdiff
path: root/src/wasp-overlay.el
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasp-overlay.el')
-rw-r--r--src/wasp-overlay.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/wasp-overlay.el b/src/wasp-overlay.el
index cd0df601..0c480ca5 100644
--- a/src/wasp-overlay.el
+++ b/src/wasp-overlay.el
@@ -230,5 +230,16 @@ Optionally, make the cells be COLOR."
(w/overlay-display-asset type path)))))))
(add-to-list 'eldoc-display-functions #'w/overlay-asset-eldoc-display-function)
+;;;; Dueling
+(defun w/overlay-duel (user1 user2 card1 card2)
+ "Initiate a duel between USER1 and USER2.
+User1 holds CARD1, and USER2 holds CARD2."
+ (w/binary-pub "overlay tcg duel"
+ (s-concat
+ (w/bus-binary-build-length-prefixed user1)
+ (w/bus-binary-build-length-prefixed user2)
+ (w/bus-binary-build-length-prefixed card1)
+ (w/bus-binary-build-length-prefixed card2))))
+
(provide 'wasp-overlay)
;;; wasp-overlay.el ends here