dorfylegends/backend/model/process.go
2022-04-29 12:21:27 +00:00

17 lines
294 B
Go

package model
func (w *DfWorld) Process() {
// set site in structure
for _, site := range w.Sites {
for _, structure := range site.Structures {
structure.SiteId = site.Id_
}
}
// check events texts
for _, e := range w.HistoricalEvents {
e.Details.Html(&Context{World: w})
}
}