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

Function LoadDataFiles

internal/buffs/buffspec.go:184–196  ·  view source on GitHub ↗

file self loads due to init()

()

Source from the content-addressed store, hash-verified

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

Callers 1

loadAllDataFilesFunction · 0.92

Calls 2

GetFilePathsConfigFunction · 0.92
InfoFunction · 0.92

Tested by

no test coverage detected