worthless-launcher/worthless/classes/installer/voicepack.py
tretrauit da3ee30ab1
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.)
2022-02-16 22:18:56 +07:00

13 lines
381 B
Python

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)