标记枚举类型。
@Enum()
@Enum
@Enum("Low", "Medium", "High")
attr buildingType = "Medium"
@StartRule
Lot --> primitiveCube(6, 0.2, 6)
case buildingType == "High" : extrude(20)
case buildingType == "Medium" : extrude(10)
else : extrude(5)
comp(f) { top: Roof | side: Wall }
Roof --> color(0.5, 0.25, 0.15)
Wall --> color(0.75, 0.72, 0.68)