Wrap game resource info from the server
Also add function to get the diff archive (for faster updating) Download function soon, although I can't make sure that the download function will work properly (like pause, resume download etc.)
This commit is contained in:
12
worthless/classes/installer/voicepack.py
Normal file
12
worthless/classes/installer/voicepack.py
Normal file
@ -0,0 +1,12 @@
|
||||
class Voicepack:
|
||||
def __init__(self, language, name, path, size, md5, raw):
|
||||
self.language = language
|
||||
self.name = name
|
||||
self.path = path
|
||||
self.size = size
|
||||
self.md5 = md5
|
||||
self.raw = raw
|
||||
|
||||
@staticmethod
|
||||
def from_dict(data):
|
||||
return Voicepack(data["language"], data["name"], data["path"], data["size"], data["md5"], data)
|
||||
Reference in New Issue
Block a user