models

package
v0.0.0-...-fda175b Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthType

type AuthType int
const (
	Steam AuthType = iota + 1
	EGS
)

type CDGameData

type CDGameData struct {
	SpawnCycle    *string `json:"spawn_cycle"`
	MaxMonsters   *int    `json:"max_monsters"`
	WaveSizeFakes *int    `json:"wave_size_fakes"`
	ZedsType      *string `json:"zeds_type"`
}

type GameData

type GameData struct {
	MaxPlayers    int `json:"max_players"`
	PlayersOnline int `json:"players_online"`
	PlayersAlive  int `json:"players_alive"`

	Wave         int  `json:"wave"`
	IsTraderTime bool `json:"is_trader_time"`
	ZedsLeft     int  `json:"zeds_left"`
}

type GameDifficulty

type GameDifficulty = int
const (
	Normal GameDifficulty = iota + 1
	Hard
	Suicidal
	HellOnEarth
)

type GameLength

type GameLength = int
const (
	Short  GameLength = 4
	Medium GameLength = 7
	Long   GameLength = 10
	Custom GameLength = -1
)

type GameMode

type GameMode = int
const (
	Any GameMode = iota
	Survival
	Endless
	ControlledDifficulty
	Weekly
	Objective
	Versus
)

type GameStatus

type GameStatus = int
const (
	Lobby GameStatus = iota
	InProgress
	Win
	Lose
	Solomode
	Aborted GameStatus = -1
)

type PaginationRequest

type PaginationRequest struct {
	Page           int `json:"page"`
	ResultsPerPage int `json:"results_per_page"`
}

type PaginationResponse

type PaginationResponse struct {
	Page           int `json:"page"`
	ResultsPerPage int `json:"results_per_page"`
	TotalResults   int `json:"total_results"`
}

type Perk

type Perk = int
const (
	Berserker Perk = iota + 1
	Commando
	Medic
	Sharpshooter
	Gunslinger
	Support
	Swat
	Demolitionist
	Firebug
	Survivalist
)

Jump to

Keyboard shortcuts

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