MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / UtilApplyColorPattern

Function UtilApplyColorPattern

internal/scripting/util_func.go:169–175  ·  view source on GitHub ↗
(input string, patternName string, wordsOnly ...bool)

Source from the content-addressed store, hash-verified

167}
168
169func UtilApplyColorPattern(input string, patternName string, wordsOnly ...bool) string {
170
171 if len(wordsOnly) > 0 && wordsOnly[0] {
172 return colorpatterns.ApplyColorPattern(input, patternName, colorpatterns.Words)
173 }
174 return colorpatterns.ApplyColorPattern(input, patternName)
175}
176
177func UtilGetConfig() configs.Config {
178 return configs.GetConfig()

Callers 12

onEnterFunction · 0.85
onEnterFunction · 0.85
onEnterFunction · 0.85
onCommandFunction · 0.85
onEnterFunction · 0.85
onIdleFunction · 0.85
onAskFunction · 0.85
onEnterFunction · 0.85
onEnterFunction · 0.85
onEnterFunction · 0.85
onCommandFunction · 0.85
onEnterFunction · 0.85

Calls 1

ApplyColorPatternFunction · 0.92

Tested by

no test coverage detected