comparison pytouhou/formats/std.py @ 615:d1f0bb0b7a17

Don’t inherit explicitely from object, we are not on Python 2.7 anymore. :)
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 28 Mar 2015 21:40:51 +0100
parents 70e2ed71b09c
children d18c0bf11138
comparison
equal deleted inserted replaced
614:2cf518129725 615:d1f0bb0b7a17
25 from pytouhou.utils.helpers import read_string, get_logger 25 from pytouhou.utils.helpers import read_string, get_logger
26 26
27 logger = get_logger(__name__) 27 logger = get_logger(__name__)
28 28
29 29
30 class Model(object): 30 class Model:
31 def __init__(self, unknown=0, bounding_box=None, quads=None): 31 def __init__(self, unknown=0, bounding_box=None, quads=None):
32 self.unknown = 0 32 self.unknown = 0
33 self.bounding_box = bounding_box or (0., 0., 0., 33 self.bounding_box = bounding_box or (0., 0., 0.,
34 0., 0., 0.) 34 0., 0., 0.)
35 self.quads = quads or [] 35 self.quads = quads or []
36 36
37 37
38 38
39 class Stage(object): 39 class Stage:
40 """Handle Touhou 6 Stage Definition files. 40 """Handle Touhou 6 Stage Definition files.
41 41
42 Stage Definition files are structured files describing non-gameplay aspects 42 Stage Definition files are structured files describing non-gameplay aspects
43 aspects of a stage. They are split in a header an 3 additional sections. 43 aspects of a stage. They are split in a header an 3 additional sections.
44 44