some refinement

This commit is contained in:
2025-09-05 22:18:36 -04:00
parent 4e6d720a91
commit 8e7db331a7
16 changed files with 371 additions and 119 deletions

View File

@@ -1,12 +1,16 @@
package stacks
import "git.vezzani.net/ben/games/common/elements/v1"
import (
"git.vezzani.net/ben/games/common/elements/v1/core"
)
type OptFunc func(*Stack)
func Core(f elements.OptFunc) OptFunc {
func Core(fs ...core.OptFunc) OptFunc {
return func(s *Stack) {
f(&s.Core)
for _, f := range fs {
f(&s.Element)
}
}
}