summaryrefslogtreecommitdiff
path: root/src/wasp-overlay.el
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2026-09-22 00:06:29 -0400
committerLLLL Colonq <llll@colonq>2026-09-22 00:06:29 -0400
commit7abb751eb3d9213ba690ed4ae6b0dbbc099d8e46 (patch)
treec051022c2eca4373233a874d1d714d58e807d97e /src/wasp-overlay.el
parent07f5a19d7930d1d912d05c95d9cc5b4b0c407383 (diff)
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