Files
games/common/elements/v1/stacks/options.go
2025-09-05 21:21:18 -04:00

20 lines
268 B
Go

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