quarkshologridledger/tongo-core/internal/application/events/generator.go

25 lines
574 B
Go

package events
import (
"log/slog"
"github.com/costap/quarkshologridledger/tongo-core/internal/domain/entity"
)
// Generator produces random in-match events.
type Generator struct {
logger *slog.Logger
}
// New creates a new Generator instance.
func New(logger *slog.Logger) *Generator {
return &Generator{
logger: logger,
}
}
// Roll checks for and generates any random events this tick.
func (g *Generator) Roll(match *entity.Match, tickResult entity.TickResult) []entity.MatchEvent {
g.logger.Debug("Rolling for random events", "id", match.ID)
return nil
}