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

Function LoadSpellFiles

internal/spells/spells.go:186–199  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

184}
185
186func LoadSpellFiles() {
187
188 start := time.Now()
189
190 tmpAllSpells, err := fileloader.LoadAllFlatFiles[string, *SpellData](string(configs.GetFilePathsConfig().DataFiles) + `/spells`)
191 if err != nil {
192 panic(err)
193 }
194
195 allSpells = tmpAllSpells
196
197 mudlog.Info("spells.loadAllSpells()", "loadedCount", len(allSpells), "Time Taken", time.Since(start))
198
199}

Callers 1

loadAllDataFilesFunction · 0.92

Calls 2

GetFilePathsConfigFunction · 0.92
InfoFunction · 0.92

Tested by

no test coverage detected