MCPcopy Create free account
hub / github.com/SolarLune/masterplan / ColorIndex

Method ColorIndex

contents.go:3129–3131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3127}
3128
3129func (mc *MapContents) ColorIndex() int {
3130 return MapDrawingColor | MapPattern
3131}
3132
3133func (mc *MapContents) ColorIndexToPattern(index int) int {
3134 c := index & (MapPatternSolid + MapPatternDotted + MapPatternCrossed + MapPatternChecked + MapPatternTerrain)

Callers 1

UpdateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected