-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnetwork.zap
More file actions
147 lines (124 loc) · 2.22 KB
/
network.zap
File metadata and controls
147 lines (124 loc) · 2.22 KB
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
opt server_output = "Source/Server/Network.luau"
opt client_output = "Source/Client/Network.luau"
opt remote_scope = "DEBUG_REMOTES"
opt casing = "PascalCase"
type SettingOptions = struct {
DefaultHotkey: string
}
type RemoteEvenRelay = struct {
arguments: string,
instances: Instance[],
event: Instance,
}
type Log = struct {
message: string,
type: string,
time: u32
}
type EncodedActionArgument = struct {
type: string,
value: string,
}
type ActionArgument = struct {
type: string,
name: string,
default: string?
}
type Action = struct {
path: string[],
name: string,
description: string,
uuid: string,
arguments: ActionArgument[]
}
funct AuthenticateRequested = {
call: Async,
rets: enum { Accepted, Rejected },
}
funct FetchSettingsRequested = {
call: Async,
rets: SettingOptions,
}
event ServerSettingsUpdated = {
from: Server,
type: Reliable,
call: SingleAsync,
data: SettingOptions
}
event ServerRemotesFired = {
from: Server,
type: Reliable,
call: ManyAsync,
data: RemoteEvenRelay
}
event ServerReportingLogs = {
from: Server,
type: Reliable,
call: ManyAsync,
data: Log[]
}
event ClientReportingLogs = {
from: Client,
type: Reliable,
call: ManyAsync,
data: Log[]
}
event FetchActionsRequested = {
from: Client,
type: Reliable,
call: ManyAsync
}
event ServerReportingActions = {
from: Server,
type: Reliable,
call: ManyAsync,
data: Action[]
}
event ExecuteServerActionRequested = {
from: Client,
type: Reliable,
call: ManyAsync,
data: struct {
actionUuid: string,
arguments: EncodedActionArgument[]
}
}
event ExecuteServerScriptRequested = {
from: Client,
type: Reliable,
call: ManyAsync,
data: string
}
event KickUserRequested = {
from: Client,
type: Reliable,
call: ManyAsync,
data: Instance
}
event BanUserRequested = {
from: Client,
type: Reliable,
call: ManyAsync,
data: Instance
}
event AdminUserRequested = {
from: Client,
type: Reliable,
call: ManyAsync,
data: Instance
}
event RejoinRequested = {
from: Client,
type: Reliable,
call: ManyAsync,
}
event ShutdownServerRequested = {
from: Client,
type: Reliable,
call: ManyAsync,
}
funct HttpGetRequest = {
call: Sync,
args: string,
rets: string
}