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

Function LoadDataFiles

internal/mutators/mutators.go:322–336  ·  view source on GitHub ↗

file self loads due to init()

()

Source from the content-addressed store, hash-verified

320
321// file self loads due to init()
322func LoadDataFiles() {
323
324 start := time.Now()
325
326 tmpMutators, err := fileloader.LoadAllFlatFiles[string, *MutatorSpec](configs.GetFilePathsConfig().DataFiles.String() + `/mutators`)
327 if err != nil {
328 panic(err)
329 }
330
331 allMutators = tmpMutators
332
333 loadPluginMutators(allMutators)
334
335 mudlog.Info("mutators.LoadDataFiles()", "loadedCount", len(allMutators), "Time Taken", time.Since(start))
336}

Callers 1

loadAllDataFilesFunction · 0.92

Calls 4

GetFilePathsConfigFunction · 0.92
InfoFunction · 0.92
loadPluginMutatorsFunction · 0.85
StringMethod · 0.65

Tested by

no test coverage detected