()
| 184 | } |
| 185 | |
| 186 | func 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 | } |
no test coverage detected