chiark / gitweb /
dice: Break out OccultSpec (breaking change)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 16 Apr 2022 13:17:22 +0000 (14:17 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 17 Apr 2022 13:26:23 +0000 (14:26 +0100)
commitd97483fbfd27005d04aaa0bfabb6c5957d3578d5
treeb96deec81740cf794d76c0cd919a7cce2ac63f38
parent2c44da2cdb51fdd9af5f58c3494373fd7225f9fb
dice: Break out OccultSpec (breaking change)

Earlier I wrote: We want to add an ilk here.

But this is no longer going to be true, because we are getting rid of
ilk mixing for dice.  Nevertheless, this change is going in a roughly
good direction in spec API terms since it will allow us to add other
things to occult.

Notably, if we allow composition of a die image from a base and faces,
or if we allow specifying an occulted face image separately from the
face images.

And `occult_label` is just a bad pattern.

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