minor clarification

This commit is contained in:
Josh Deprez 2021-08-02 12:21:24 +10:00 committed by Josh Deprez
parent 3d75693cc2
commit 11a2382b56
2 changed files with 2 additions and 2 deletions

View file

@ -25,7 +25,7 @@ type Builder interface {
// Scanner components can be scanned. It is called when the game tree is walked
// (such as when the game component database is constructed).
// Scan should return a slice containing all subcomponents.
// Scan should return a slice containing all immediate subcomponents.
type Scanner interface {
Scan() []interface{}
}

View file

@ -64,7 +64,7 @@ func (s *Scene) sortByZ() {
})
}
// Scan returns all subcomponents.
// Scan returns all immediate subcomponents.
func (s *Scene) Scan() []interface{} { return s.Components }
// Update calls Update on all Updater components.