Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSMap ¶
type GSIEvent ¶
type GSIEvent struct {
CSMap *CSMap `json:"map"`
Player *Player `json:"Player"`
Provider *Provider `json:"Provider"`
Round *Round `json:"Round"`
Previous *GSIEvent `json:"Previously"`
Added *GSIEventAdded `json:"Added"`
OriginalData string `json:"-"`
}
func NewGSIEvent ¶
func (*GSIEvent) GetOriginalRequestFlat ¶
type GSIEventAdded ¶
type Player ¶
type Player struct {
Steamid string `json:"steamid"`
Name string `json:"name"`
ObserverSlot int `json:"observer_slot"`
Team string `json:"Team"`
Activity PlayerActivity `json:"activity"`
MatchStats struct {
Kills int `json:"kills"`
Assists int `json:"assists"`
Deaths int `json:"deaths"`
Mvps int `json:"mvps"`
Score int `json:"score"`
} `json:"match_stats"`
State struct {
Health *int `json:"health"`
Armor *int `json:"armor"`
Helmet bool `json:"helmet"`
Flashed int `json:"flashed"`
Smoked int `json:"smoked"`
Burning int `json:"burning"`
Money int `json:"money"`
RoundKills int `json:"round_kills"`
RoundKillHS int `json:"round_killhs"`
EquipValue int `json:"equip_value"`
} `json:"state"`
Weapons WeaponCollection `json:"Weapons"`
}
type PlayerActivity ¶
type PlayerActivity string
const ( PlayerActivityPaused PlayerActivity = "menu" PlayerActivityPlaying PlayerActivity = "playing" PlayerActivityInTextInput PlayerActivity = "textinput" )
type Provider ¶
type Round ¶
type Team ¶
type Weapon ¶
type Weapon struct {
Name string `json:"name"`
Paintkit string `json:"paintkit"`
Type WeaponType `json:"type"`
AmmoClip *int `json:"ammo_clip"`
AmmoClipMax *int `json:"ammo_clip_max"`
AmmoReserve *int `json:"ammo_reserve"`
State WeaponState `json:"state"`
}
type WeaponCollection ¶
func (*WeaponCollection) String ¶
func (wCollection *WeaponCollection) String() string
type WeaponState ¶
type WeaponState string
const ( WeaponStateHolstered WeaponState = "holstered" WeaponStateActive WeaponState = "active" WeaponStateReloading WeaponState = "reloading" )
type WeaponType ¶
type WeaponType string
const ( WeaponTypePistol WeaponType = "Pistol" WeaponTypeGrenade WeaponType = "Grenade" )
Click to show internal directories.
Click to hide internal directories.