cleaning up the component system just a bit more...
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
package stacks
|
||||
|
||||
import (
|
||||
"git.vezzani.net/ben/games/common/elements/v1"
|
||||
)
|
||||
import "git.vezzani.net/ben/games/common/elements/v1"
|
||||
|
||||
type OptFunc func(*Stack)
|
||||
|
||||
func Children(children ...elements.InitFunc) OptFunc {
|
||||
func Core(f elements.OptFunc) OptFunc {
|
||||
return func(s *Stack) {
|
||||
s.childrenInit = children
|
||||
f(&s.Core)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user