-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstructs.go
82 lines (72 loc) · 1.28 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
package main
import (
"time"
)
type UTAutoQuery struct {
guildID string
channelID string
messageID string
roleID string
mentions int
// mentions bool
joinMessages bool
leaveMessages bool
timer time.Duration
}
type UTAutoQueryLimitCheck struct {
queryAddress string
guildID string
err chan error
}
type UTAutoQueryLoopUpdate struct {
queryAddress string
delete bool
}
type UTQueryEvent struct {
queryAddress string
previewURL string
online bool
numTeams uint
numPlayers uint
ut UTQueryResult
}
type UTQueryResult struct {
Hostname string
Hostport string
NumPlayers string
MaxPlayers string
GameType string
MapName string
// Spectators string
GameStyle string
TimeLimit string
RemainingTime string
GoalTeamScore string
MapTitle string
Teams [UT_MAX_TEAM_SIZE]UTQueryTeam
Players [UT_MAX_PLAYER_SIZE]UTQueryPlayer
}
type UTQueryTeam struct {
TeamName string
TeamScore string
}
type UTQueryPlayer struct {
Player string
CountryC string
Ping string
Time string
Frags string
Deaths string
Spree string
Team string
Mesh string
}
type UTNewAutoQuery struct {
aq UTAutoQuery
qe UTQueryEvent
}
type SelfDestructMessage struct {
channelID string
messageID string
date string
}