-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackets.lua
90 lines (88 loc) · 1.5 KB
/
packets.lua
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
local packets = {}
packets.ping = {
type = "ping"
}
packets.inspect = {
type = "inspect"
}
packets.reload = {
type = "reload"
}
packets.get = {
type = "get",
key = ""
}
packets.set = {
type = "set",
key = "",
value = ""
}
packets.load_css = {
type = "load_css",
path = ""
}
packets.set_visible = {
type = "set_visible",
bar_name = "",
visible = true
}
packets.get_visible = {
type = "get_visible",
bar_name = ""
}
packets.toggle_popup = {
type = "toggle_popup",
bar_name = "",
name = "",
}
packets.open_popup = {
type = "open_popup",
bar_name = "",
name = "",
}
packets.close_popup = {
type = "close_popup",
bar_name = "",
name = "",
}
local argpackets = {}
argpackets.set = {
type = "set",
key = {arg=1, type="string"},
value = {arg=2,type="string"}
}
argpackets.get = {
type = "get",
key = {arg=1,type="string"}
}
argpackets.load_css = {
type = "load_css",
path = {arg=1,type="string"}
}
argpackets.set_visible = {
type = "set_visible",
bar_name = {arg=1,type="string"},
visible = {arg=2,type="boolean"}
}
argpackets.get_visible = {
type = "get_visible",
bar_name = {arg=1,type="string"}
}
argpackets.toggle_popup = {
type = "toggle_popup",
bar_name = {arg=1,type="string"},
name = {arg=2,type="string"},
}
argpackets.open_popup = {
type = "open_popup",
bar_name = {arg=1,type="string"},
name = {arg=2,type="string"},
}
argpackets.close_popup = {
type = "close_popup",
bar_name = {arg=1,type="string"},
name = {arg=2,type="string"},
}
return function()
return packets, argpackets
end