note for the future
This commit is contained in:
parent
12e3254a34
commit
78dddb4f6c
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue