Files
games/common/elements/v1/stacks/options.go

18 lines
262 B
Go

package stacks
import "git.vezzani.net/ben/games/common/elements/v1"
type OptFunc func(*Stack)
func Core(f elements.OptFunc) OptFunc {
return func(s *Stack) {
f(&s.Core)
}
}
func Horizontal() OptFunc {
return func(s *Stack) {
s.horizontal = true
}
}