Documentation
¶
Index ¶
Constants ¶
View Source
const (
WORLD_ID = 1022
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Match ¶
type Match struct { TotalKills int Players map[int]*Player MeansOfDeath map[MeanOfDeath]int }
func (*Match) DisconnectPlayer ¶
Disconnect a player for the current match Generate a hash based on player name to allow kill count restore if user reconnects
func (*Match) ProcessKill ¶
Process a kill event If the killer is World, decrement the victim kill count Update the match kill count and the deaths by weapon count
func (*Match) ToMatchJSON ¶
Transform the Match model to the desired output format
type MeanOfDeath ¶
type MeanOfDeath int
const ( MOD_UNKNOWN MeanOfDeath = iota MOD_SHOTGUN MOD_GAUNTLET MOD_MACHINEGUN MOD_GRENADE MOD_GRENADE_SPLASH MOD_ROCKET MOD_ROCKET_SPLASH MOD_PLASMA MOD_PLASMA_SPLASH MOD_RAILGUN MOD_LIGHTNING MOD_BFG MOD_BFG_SPLASH MOD_WATER MOD_SLIME MOD_LAVA MOD_CRUSH MOD_TELEFRAG MOD_FALLING MOD_SUICIDE MOD_TARGET_LASER MOD_TRIGGER_HURT )
func (MeanOfDeath) String ¶
func (m MeanOfDeath) String() string
Click to show internal directories.
Click to hide internal directories.