-
Notifications
You must be signed in to change notification settings - Fork 26
/
commands.py
41 lines (31 loc) · 928 Bytes
/
commands.py
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
class CommandUIRender:
__slots__ = "page"
def __init__(self, page):
self.page = page
def toDict(self):
dict = {}
dict["__type__"] = "CommandUIRender"
dict["page"] = self.page.toDict()
return dict
class CommandSystemDonate:
__slots__ = "key", "json_string"
def __init__(self, key, json_string):
self.key = key
self.json_string = json_string
def toDict(self):
dict = {}
dict["__type__"] = "CommandSystemDonate"
dict["key"] = self.key
dict["json_string"] = self.json_string
return dict
class CommandSystemExit:
__slots__ = "code", "info"
def __init__(self, code, info):
self.code = code
self.info = info
def toDict(self):
dict = {}
dict["__type__"] = "CommandSystemExit"
dict["code"] = self.code
dict["info"] = self.info
return dict