20 lines
401 B
Go
20 lines
401 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
|
||
|
}
|
||
|
|
||
|
type Usecase interface {
|
||
|
GetMarkers(ctx context.Context, cfg GetMarkersConfig) ([]*generator.Marker, error)
|
||
|
}
|