kill

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HistoryRecord

type HistoryRecord struct {
	Player PlayerRef
	Other  PlayerStub
	Kills  uint16
	// Relation of the other player to the player.
	// Read as [other] is top [relation type] of [player].
	RelationType RelationType
}

type HistoryRecordRepository

type HistoryRecordRepository interface {
	FindTopRelatedByPlayerID(ctx context.Context, playerID uint32) ([]HistoryRecord, error)
}

type PlayerRef

type PlayerRef struct {
	ID uint32
}

type PlayerStub

type PlayerStub struct {
	ID     uint32
	Name   string
	RankID uint32
}

type RelationType

type RelationType int
const (
	RelationTypeVictim RelationType = iota
	RelationTypeAttacker
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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