some refinement and beginning of a table element

This commit is contained in:
2025-09-05 22:18:36 -04:00
parent 4e6d720a91
commit 99675e874b
18 changed files with 393 additions and 119 deletions

View File

@@ -0,0 +1,3 @@
package tables
type OptFunc func(*Table)

View File

@@ -0,0 +1,19 @@
package tables
import (
"git.vezzani.net/ben/games/common/elements/v1/core"
)
type Table struct {
core.Element
}
func New(ops ...OptFunc) *Table {
t := &Table{}
for i := range ops {
ops[i](t)
}
return t
}