note for the future

This commit is contained in:
Josh Deprez 2021-08-27 15:50:40 +10:00
parent 12e3254a34
commit 78dddb4f6c

View file

@ -62,6 +62,7 @@ func (g *Game) registerComponent(c interface{}, path []interface{}) error {
if !ct.Implements(b) { if !ct.Implements(b) {
continue continue
} }
// TODO: sub-quadratic?
k := dexKey{c, b} k := dexKey{c, b}
g.dex[k] = append(g.dex[k], c) g.dex[k] = append(g.dex[k], c)
for _, p := range path { for _, p := range path {