This repository has been archived on 2022-09-04. You can view files and clone it, but cannot push or open issues or pull requests.
api/servermap/usecase.go

23 lines
495 B
Go

package servermap
import (
"context"
"github.com/tribalwarshelp/map-generator/generator"
)
type GetMarkersConfig struct {
Server string
Tribes []string
Players []string
ShowBarbarianVillages bool
ShowOtherPlayerVillages bool
LargerMarkers bool
PlayerVillageColor string
BarbarianVillageColor string
}
type Usecase interface {
GetMarkers(ctx context.Context, cfg GetMarkersConfig) ([]*generator.Marker, error)
}