20 lines
218 B
Go
20 lines
218 B
Go
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
|
|
}
|