Mercurial > touhou
diff pytouhou/formats/std.py @ 97:ac2e5e1c2c3c
Refactor \o/
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Sun, 04 Sep 2011 23:50:00 +0200 |
parents | ca571697ec83 |
children | 3ac41b966fed |
line wrap: on
line diff
--- a/pytouhou/formats/std.py +++ b/pytouhou/formats/std.py @@ -29,8 +29,7 @@ class Model(object): class Stage(object): - def __init__(self, num): - self.num = num + def __init__(self): self.name = '' self.bgms = (('', ''), ('', ''), ('', '')) self.models = [] @@ -39,8 +38,8 @@ class Stage(object): @classmethod - def read(cls, file, num): - stage = Stage(num) + def read(cls, file): + stage = Stage() nb_models, nb_faces = unpack('<HH', file.read(4)) object_instances_offset, script_offset = unpack('<II', file.read(8))