terrain animation broken, mobs rendering right

This commit is contained in:
2019-11-16 04:31:57 +03:00
parent 7e9f7686a9
commit 0d8649498c
6 changed files with 128 additions and 139 deletions

View File

@ -210,6 +210,13 @@ func (c *Controller) AddSystem(system System, priority int) {
}
}
func (c *Controller) GetSystem(systemType string) System {
if system, ok := c.systems[systemType]; ok {
return system
}
return nil
}
// Process kicks off system processing for all systems attached to the controller. Systems will be processed in the
// order they are found, or if they have a priority, in priority order. If there is a mix of systems with priority and
// without, systems with priority will be processed first (in order).