mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
datasrc: Add m_Flag to CDataImage for compat with 'seven' struct
This commit is contained in:
parent
487f0541b4
commit
c265969259
|
@ -16,10 +16,11 @@ class SoundSet(Struct):
|
||||||
self.sounds.Add(Sound(filename))
|
self.sounds.Add(Sound(filename))
|
||||||
|
|
||||||
class Image(Struct):
|
class Image(Struct):
|
||||||
def __init__(self, name="", filename=""):
|
def __init__(self, name="", filename="", linear_mapping=0):
|
||||||
Struct.__init__(self, "CDataImage")
|
Struct.__init__(self, "CDataImage")
|
||||||
self.name = String(name)
|
self.name = String(name)
|
||||||
self.filename = String(filename)
|
self.filename = String(filename)
|
||||||
|
self.flag = Int(linear_mapping)
|
||||||
self.id = TextureHandle()
|
self.id = TextureHandle()
|
||||||
|
|
||||||
class SpriteSet(Struct):
|
class SpriteSet(Struct):
|
||||||
|
|
Loading…
Reference in a new issue