I'm trying to implement a turf that uses icon arithmetic to construct its icon from the icons of neighbouring turfs, the icon of the underlying area, and a set of 16 masks that define which parts of those icons will be used. Each subclass of this turf will use the same set of names for its mask icons, but with a different directory. It would be useful if the turf's New proc could refer to these icons with syntax similar to the following:
/turf/masked
var/MyMaskDir
New(Loc)
var/mask1 = '[MyMaskDir]/mask1.dmi'
var/mask2 = '[MyMaskDir]/mask2.dmi'
ConstructIcon(mask1,mask2)
so that its subclasses would only need to override the MyMaskDir variable:
/turf/masked/type1
MyMaskDir = "masks/type1"
/turf/masked/type2
MyMaskDir = "masks/type2"