From 11a2382b56b6217998c92861f3d087779ee27480 Mon Sep 17 00:00:00 2001 From: Josh Deprez Date: Mon, 2 Aug 2021 12:21:24 +1000 Subject: [PATCH] minor clarification --- engine/game.go | 2 +- engine/scene.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/game.go b/engine/game.go index d26cfa5..6481e62 100644 --- a/engine/game.go +++ b/engine/game.go @@ -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{} } diff --git a/engine/scene.go b/engine/scene.go index 317c9e1..f0da471 100644 --- a/engine/scene.go +++ b/engine/scene.go @@ -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.