From f5bd131297413e81c29e08ed940d5f40eff027d3 Mon Sep 17 00:00:00 2001 From: Josh Deprez Date: Sun, 15 Aug 2021 15:52:40 +1000 Subject: [PATCH] comments --- engine/game.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/game.go b/engine/game.go index b91eca0..a869217 100644 --- a/engine/game.go +++ b/engine/game.go @@ -29,7 +29,7 @@ type Game struct { componentsByID map[string]interface{} } -// Draw draws the entire thing, with no geometric transform. +// Draw draws the entire thing, with default draw options. func (g *Game) Draw(screen *ebiten.Image) { g.Scene.Draw(screen, ebiten.DrawImageOptions{}) } @@ -54,6 +54,7 @@ func (g *Game) RegisterComponent(c interface{}) { } // UnregisterComponent tells the game the component is no more. +// Note this does not remove any references held by other components. func (g *Game) UnregisterComponent(c interface{}) { i, ok := c.(Identifier) if !ok {