Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
recolouring automatically at build time. Each recolouring should
hae a ``map`` entry which is a sub-sub-table mapping inputcolours
(strings in ``#rrggbb`` format) to output colours.
+
+ * ``desc``: [string: template]. If specified, provides a template
+ for the description, to allow formulaic descriptions of pieces in
+ thisf group. The string specified ``desc`` must contain ``_desc``
+ exaclty once; it will be replaced with the description calculated
+ according to the other rules. (``_desc`` substitution happens
+ after ``_colour`` substitution.)
#[serde(default)] pub back: Option<Box <dyn PieceSpec>>,
#[serde(default="num_traits::identities::One::one")] pub scale: f64,
#[serde(default)] pub colours: HashMap<String, RecolourData>,
-
- /// If specified, provides a template for the description. The
- /// description previously calculated replaces `_desc` in this
- /// string.
pub desc_template: Option<String>,
/// If specified, pieces in this group can be occulted.