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

Function LoadDataFiles

internal/quests/quests.go:186–199  ·  view source on GitHub ↗

file self loads due to init()

()

Source from the content-addressed store, hash-verified

184
185// file self loads due to init()
186func LoadDataFiles() {
187
188 start := time.Now()
189
190 tmpQuests, err := fileloader.LoadAllFlatFiles[int, *Quest](configs.GetFilePathsConfig().DataFiles.String() + `/quests`)
191 if err != nil {
192 panic(err)
193 }
194
195 quests = tmpQuests
196
197 mudlog.Info("quests.LoadDataFiles()", "loadedCount", len(quests), "Time Taken", time.Since(start))
198
199}

Callers 1

loadAllDataFilesFunction · 0.92

Calls 3

GetFilePathsConfigFunction · 0.92
InfoFunction · 0.92
StringMethod · 0.65

Tested by

no test coverage detected