mirror of
https://github.com/Deathemonic/BA-AD.git
synced 2025-07-29 03:37:24 +02:00

- bump dump file to support latest client 1.46.287264 - updated flatbuf generator to support lastest dump file - refactored table extracter
91 lines
3.6 KiB
Python
91 lines
3.6 KiB
Python
# automatically generated by the FlatBuffers compiler, do not modify
|
|
|
|
# namespace: FlatData
|
|
|
|
import flatbuffers
|
|
from flatbuffers.compat import import_numpy
|
|
np = import_numpy()
|
|
|
|
class TrophyCollectionExcel(object):
|
|
__slots__ = ['_tab']
|
|
|
|
@classmethod
|
|
def GetRootAs(cls, buf, offset=0):
|
|
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
|
x = TrophyCollectionExcel()
|
|
x.Init(buf, n + offset)
|
|
return x
|
|
|
|
@classmethod
|
|
def GetRootAsTrophyCollectionExcel(cls, buf, offset=0):
|
|
"""This method is deprecated. Please switch to GetRootAs."""
|
|
return cls.GetRootAs(buf, offset)
|
|
# TrophyCollectionExcel
|
|
def Init(self, buf, pos):
|
|
self._tab = flatbuffers.table.Table(buf, pos)
|
|
|
|
# TrophyCollectionExcel
|
|
def GroupId(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
|
|
if o != 0:
|
|
return self._tab.Get(flatbuffers.number_types.Int64Flags, o + self._tab.Pos)
|
|
return 0
|
|
|
|
# TrophyCollectionExcel
|
|
def LocalizeCodeId(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
|
|
if o != 0:
|
|
return self._tab.Get(flatbuffers.number_types.Uint32Flags, o + self._tab.Pos)
|
|
return 0
|
|
|
|
# TrophyCollectionExcel
|
|
def FurnitureId(self, j):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
|
|
if o != 0:
|
|
a = self._tab.Vector(o)
|
|
return self._tab.Get(flatbuffers.number_types.Int64Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 8))
|
|
return 0
|
|
|
|
# TrophyCollectionExcel
|
|
def FurnitureIdAsNumpy(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
|
|
if o != 0:
|
|
return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Int64Flags, o)
|
|
return 0
|
|
|
|
# TrophyCollectionExcel
|
|
def FurnitureIdLength(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
|
|
if o != 0:
|
|
return self._tab.VectorLen(o)
|
|
return 0
|
|
|
|
# TrophyCollectionExcel
|
|
def FurnitureIdIsNone(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
|
|
return o == 0
|
|
|
|
def Start(builder): builder.StartObject(3)
|
|
def TrophyCollectionExcelStart(builder):
|
|
"""This method is deprecated. Please switch to Start."""
|
|
return Start(builder)
|
|
def AddGroupId(builder, GroupId): builder.PrependInt64Slot(0, GroupId, 0)
|
|
def TrophyCollectionExcelAddGroupId(builder, GroupId):
|
|
"""This method is deprecated. Please switch to AddGroupId."""
|
|
return AddGroupId(builder, GroupId)
|
|
def AddLocalizeCodeId(builder, LocalizeCodeId): builder.PrependUint32Slot(1, LocalizeCodeId, 0)
|
|
def TrophyCollectionExcelAddLocalizeCodeId(builder, LocalizeCodeId):
|
|
"""This method is deprecated. Please switch to AddLocalizeCodeId."""
|
|
return AddLocalizeCodeId(builder, LocalizeCodeId)
|
|
def AddFurnitureId(builder, FurnitureId): builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(FurnitureId), 0)
|
|
def TrophyCollectionExcelAddFurnitureId(builder, FurnitureId):
|
|
"""This method is deprecated. Please switch to AddFurnitureId."""
|
|
return AddFurnitureId(builder, FurnitureId)
|
|
def StartFurnitureIdVector(builder, numElems): return builder.StartVector(8, numElems, 8)
|
|
def TrophyCollectionExcelStartFurnitureIdVector(builder, numElems):
|
|
"""This method is deprecated. Please switch to Start."""
|
|
return StartFurnitureIdVector(builder, numElems)
|
|
def End(builder): return builder.EndObject()
|
|
def TrophyCollectionExcelEnd(builder):
|
|
"""This method is deprecated. Please switch to End."""
|
|
return End(builder) |