chiark / gitweb /
dice: Change SpecialClientRendering representation
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 16 Apr 2022 10:12:25 +0000 (11:12 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 16 Apr 2022 11:50:11 +0000 (12:50 +0100)
commit65a77c28a50c9d1799593437e701a17704e3ea1f
tree5bd3f4347c440840a2c60c516d36728b4f282793
parentf757a4d3b6fbe52f79f55f39347483d1d12d4270
dice: Change SpecialClientRendering representation

Making this an internally-tageed union is going to be nicer for the
JS, which then doesn't have to prat about with Object.keys(thing)[0]
etc.

And the special rendering is Die, not DieCooldown, since if dice get a
second kind of special rendering thta will have to be here too.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/dice.rs
src/pcrender.rs