forked from dank/go-csgsi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstructs.go
90 lines (80 loc) · 1.18 KB
/
structs.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
package csgsi
type State struct {
Provider *provider
Map *csmap
Round *round
Player *player
AllPlayers map[string]*player // allplayers_*: steamid64 ...
Previously *State
Added *State
Auth *auth
}
// provider
type provider struct {
Name string
AppId int
Version int
SteamId string
Timestamp float32
}
// map
type csmap struct {
Name string
Phase string
Round int
Team_ct *team
Team_t *team
}
// round
type round struct {
Phase string
Win_team string
Bomb string
}
// player_id
type player struct {
SteamId string
Name string
Team string
Activity string
State *playerState
Weapons map[string]*weapon
Match_stats *playerMatchStats
}
// win_team
type team struct {
Score int
}
// player_state
type playerState struct {
Health int
Armor int
Helmet bool
Flashed int
Smoked int
Burning int
Money int
Round_kills int
Round_killhs int
}
// player_weapons: weapon_0, weapon_1, weapon_2 ...
type weapon struct {
Name string
PaintKit string
Type string
State string
Ammo_clip int
Ammo_clip_max int
Ammo_reserve int
}
// player_match_stats
type playerMatchStats struct {
Kills int
Assists int
Deaths int
Mvps int
Score int
}
type auth struct {
Token string
}