Oups, add a lot of missing files
This commit is contained in:
parent
d234d83df8
commit
061e73722f
21 changed files with 937 additions and 2 deletions
20
modules/qd/QDWrapper.py
Normal file
20
modules/qd/QDWrapper.py
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# coding=utf-8
|
||||
|
||||
from wrapper import Wrapper
|
||||
from .Score import Score
|
||||
|
||||
class QDWrapper(Wrapper):
|
||||
def __init__(self, datas):
|
||||
Wrapper.__init__(self)
|
||||
self.DATAS = datas
|
||||
self.stateName = "player"
|
||||
self.attName = "name"
|
||||
|
||||
def __getitem__(self, i):
|
||||
if i in self.cache:
|
||||
return self.cache[i]
|
||||
else:
|
||||
sc = Score()
|
||||
sc.parse(Wrapper.__getitem__(self, i))
|
||||
self.cache[i] = sc
|
||||
return sc
|
||||
Loading…
Add table
Add a link
Reference in a new issue