file self loads due to init()
()
| 182 | |
| 183 | // file self loads due to init() |
| 184 | func 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 | } |
no test coverage detected