This commit is contained in:
Josh Deprez 2021-08-02 12:22:11 +10:00 committed by Josh Deprez
parent 11a2382b56
commit a11c66c076

View file

@ -104,7 +104,8 @@ func (g *Game) walk(c interface{}, v func(interface{}) bool) {
}
}
// Build builds the component database.
// Build builds the component database, and calls Build, on all components
// reachable via Scan.
func (g *Game) Build() {
g.componentsByID = make(map[string]interface{})
g.Walk(func(c interface{}) bool {