From 91523f47696925e22fddfc5fac0132d9ac107799 Mon Sep 17 00:00:00 2001 From: Josh Deprez Date: Mon, 30 Aug 2021 15:08:22 +1000 Subject: [PATCH] fix comments --- engine/game.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/game.go b/engine/game.go index 829687f..64fddcb 100644 --- a/engine/game.go +++ b/engine/game.go @@ -143,7 +143,7 @@ func (g *Game) LoadAndPrepare(assets fs.FS) error { } func (g *Game) registerComponent(c interface{}, path []interface{}) error { - // register in g.dex + // register in g.byAB ct := reflect.TypeOf(c) for _, b := range Behaviours { if !ct.Implements(b) { @@ -163,7 +163,7 @@ func (g *Game) registerComponent(c interface{}, path []interface{}) error { } } - // register in g.db + // register in g.byID i, ok := c.(Identifier) if !ok || i.Ident() == "" { return nil @@ -177,7 +177,7 @@ func (g *Game) registerComponent(c interface{}, path []interface{}) error { } func (g *Game) unregisterComponent(c interface{}, path []interface{}) { - // unregister from g.dex + // unregister from g.byAB ct := reflect.TypeOf(c) for _, b := range Behaviours { if !ct.Implements(b) { @@ -196,7 +196,7 @@ func (g *Game) unregisterComponent(c interface{}, path []interface{}) { } } - // unregister from g.db + // unregister from g.byID i, ok := c.(Identifier) if !ok || i.Ident() == "" { return