15 lines
242 B
Go
15 lines
242 B
Go
package utils
|
|
|
|
import (
|
|
"time"
|
|
|
|
"gitea.konchin.com/ytshih/inp2025/game/types"
|
|
tea "github.com/charmbracelet/bubbletea"
|
|
)
|
|
|
|
func Tick(d time.Duration) tea.Cmd {
|
|
return tea.Tick(d, func(t time.Time) tea.Msg {
|
|
return types.TickMsg(t)
|
|
})
|
|
}
|