-
Notifications
You must be signed in to change notification settings - Fork 4
/
requests.go
102 lines (85 loc) · 2.7 KB
/
requests.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
91
92
93
94
95
96
97
98
99
100
101
102
package screepsapi
import "github.com/hinshun/screepsapi/screepstype"
type AddObjectIntentRequest struct {
Shard string `json:"shard"`
Room string `json:"room"`
ID string `json:"_id"`
Name screepstype.ObjectIntent `json:"name"`
Intent interface{} `json:"intent"`
}
type CheckUniqueObjectNameRequest struct {
Shard string `json:"shard"`
Type screepstype.UniqueObjectName `json:"type"`
Name string `json:"name"`
}
type ConsoleRequest struct {
Expression string `json:"expression"`
}
type CreateFlagRequest struct {
Shard string `json:"shard"`
Room string `json:"room"`
X int `json:"x"`
Y int `json:"y"`
Name string `json:"name"`
Color screepstype.Color `json:"color"`
SecondaryColor screepstype.Color `json:"secondaryColor"`
}
type CreateConstructionRequest struct {
Shard string `json:"shard"`
Room string `json:"room"`
X int `json:"x"`
Y int `json:"y"`
Structure screepstype.Structure `json:"type"`
}
type DestroyStructureIntentRequest struct {
ID string `json:"id"`
RoomName string `json:"roomName"`
User string `json:"user"`
}
type GenUniqueObjectNameRequest struct {
Shard string `json:"shard"`
Type screepstype.UniqueObjectName `json:"type"`
}
type MapStatsRequest struct {
Shard string `json:"shard"`
Rooms []string `json:"rooms"`
StatName screepstype.StatName `json:"statName"`
}
type MemoryRequest struct {
Shard string `json:"shard"`
Path string `json:"path"`
Value *string `json:"value,omitempty"`
}
type MessagesSendRequest struct {
Respondent string `json:"respondent"`
Text string `json:"text"`
}
type PlaceSpawnRequest struct {
Shard string `json:"shard"`
Room string `json:"room"`
X int `json:"x"`
Y int `json:"y"`
Name string `json:"name"`
}
type PushCodeRequest struct {
Branch string `json:"branch,omitempty"`
Modules map[string]string `json:"modules"`
}
type RemoveFlagRequest struct {
Shard string `json:"shard"`
Room string `json:"room"`
Name string `json:"name"`
}
type SetActiveBranchRequest struct {
ActiveName screepstype.ActiveName `json:"activeName"`
Branch string `json:"branch"`
}
type SignInRequest struct {
Email string `json:"email"`
Password string `json:"password"`
}
type UpdateMemoryRequest struct {
Shard string `json:"shard"`
Data string `json:"data"`
Segment int `json:"segment"`
}