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

Function LoadDataFiles

internal/races/races.go:179–192  ·  view source on GitHub ↗

file self loads due to init()

()

Source from the content-addressed store, hash-verified

177
178// file self loads due to init()
179func LoadDataFiles() {
180
181 start := time.Now()
182
183 tmpRaces, err := fileloader.LoadAllFlatFiles[int, *Race](configs.GetFilePathsConfig().DataFiles.String() + `/races`)
184 if err != nil {
185 panic(err)
186 }
187
188 races = tmpRaces
189
190 mudlog.Info("races.LoadDataFiles()", "loadedCount", len(races), "Time Taken", time.Since(start))
191
192}

Callers 1

loadAllDataFilesFunction · 0.92

Calls 3

GetFilePathsConfigFunction · 0.92
InfoFunction · 0.92
StringMethod · 0.65

Tested by

no test coverage detected