mirror of
https://github.com/Kugelschieber/go-game.git
synced 2026-01-18 06:40:28 +00:00
Code restructuring.
This commit is contained in:
@@ -2,6 +2,10 @@ package goga
|
||||
|
||||
import ()
|
||||
|
||||
var (
|
||||
systems []System
|
||||
)
|
||||
|
||||
// A system provides logic for actors satisfying required components.
|
||||
// They are automatically updated on each frame.
|
||||
// When a system is removed from systems, the Cleanup() method will be called.
|
||||
@@ -17,10 +21,6 @@ type System interface {
|
||||
GetName() string
|
||||
}
|
||||
|
||||
var (
|
||||
systems []System
|
||||
)
|
||||
|
||||
// Adds a system to the game.
|
||||
// Returns false if the system exists already.
|
||||
func AddSystem(system System) bool {
|
||||
|
||||
Reference in New Issue
Block a user