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
Kichiyaki 6fc64fadbf - bump github.com/tribalwarshelp/map-generator and github.com/tribalwarshelp/shared
- add one new field to the PlayerFilter and VillageFilter

server map generator:
- make player village color configurable
- make barbarian village color configurable
- fix issue with missing villages
- refactor map_usecase.GetMarkers
2020-12-30 17:04:40 +01:00

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)
}