field

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package field would be called "map" if that wasn't a reserved keyword

Index

Constants

View Source
const (
	KubraDam             uint16 = 0
	MashtuurCity         uint16 = 1
	OperationCleanSweep  uint16 = 2
	ZatarWetlands        uint16 = 3
	StrikeAtKarkand      uint16 = 4
	SharqiPeninsula      uint16 = 5
	GulfOfOman           uint16 = 6
	OperationSmokescreen uint16 = 10
	TarabaQuarry         uint16 = 11
	RoadToJalalabad      uint16 = 12
	DaqingOilfields      uint16 = 100
	DalianPlant          uint16 = 101
	DragonValley         uint16 = 102
	FushePass            uint16 = 103
	HinganHills          uint16 = 104
	SonghuaStalemate     uint16 = 105
	GreatWall            uint16 = 110
	MidnightSun          uint16 = 200
	OperationRoadRage    uint16 = 201
	OperationHarvest     uint16 = 202
	DevilsPerch          uint16 = 300
	IronGator            uint16 = 301
	NightFlight          uint16 = 302
	Warlord              uint16 = 303
	Leviathan            uint16 = 304
	MassDestruction      uint16 = 305
	Surge                uint16 = 306
	GhostTown            uint16 = 307
	WakeIsland2007       uint16 = 601
	HighwayTampa         uint16 = 602
	// OperationBluePearl currently is referenced as 603 in the database, rather than 120
	OperationBluePearl uint16 = 603
)

Variables

Functions

This section is empty.

Types

type FieldRef

type FieldRef struct {
	ID uint16
}

type PlayerRef

type PlayerRef struct {
	ID uint32
}

type Record

type Record struct {
	Player PlayerRef
	Field  FieldRef
	Time   uint32
	Wins   uint16
	Losses uint16
}

Record Only used fields are modeled

type RecordRepository

type RecordRepository interface {
	FindByPlayerID(ctx context.Context, playerID uint32) ([]Record, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL