Added getter functions for mesh header attributes

This commit is contained in:
_ 2018-05-13 13:52:09 -07:00
parent a8d2cfeb4a
commit cb96add3f2

View File

@ -342,6 +342,18 @@ class MEShHeader:
def getbatchno(self):
return self.cstruct.contents.numBatch
def getnumvertex(self):
return self.cstruct.contents.numVertex
def getunknown(self)
return hex(self.cstruct.contents.u)
def getoffsetbatches(self):
return self.cstruct.contents.offsetBatches
def getflags(self):
return self.cstruct.contents.flags
class MEsh:
def __init__(self, i, filedata):
self.cstruct = Mesh()