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
67 lines
2.8 KiB
Python
67 lines
2.8 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 ShopCashScenarioResourceInfoExcel(object):
|
|
__slots__ = ['_tab']
|
|
|
|
@classmethod
|
|
def GetRootAs(cls, buf, offset=0):
|
|
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
|
x = ShopCashScenarioResourceInfoExcel()
|
|
x.Init(buf, n + offset)
|
|
return x
|
|
|
|
@classmethod
|
|
def GetRootAsShopCashScenarioResourceInfoExcel(cls, buf, offset=0):
|
|
"""This method is deprecated. Please switch to GetRootAs."""
|
|
return cls.GetRootAs(buf, offset)
|
|
# ShopCashScenarioResourceInfoExcel
|
|
def Init(self, buf, pos):
|
|
self._tab = flatbuffers.table.Table(buf, pos)
|
|
|
|
# ShopCashScenarioResourceInfoExcel
|
|
def ScenarioResrouceInfoId(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
|
|
|
|
# ShopCashScenarioResourceInfoExcel
|
|
def ShopCashId(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
|
|
if o != 0:
|
|
return self._tab.Get(flatbuffers.number_types.Int64Flags, o + self._tab.Pos)
|
|
return 0
|
|
|
|
# ShopCashScenarioResourceInfoExcel
|
|
def IconPath(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
|
|
if o != 0:
|
|
return self._tab.String(o + self._tab.Pos)
|
|
return None
|
|
|
|
def Start(builder): builder.StartObject(3)
|
|
def ShopCashScenarioResourceInfoExcelStart(builder):
|
|
"""This method is deprecated. Please switch to Start."""
|
|
return Start(builder)
|
|
def AddScenarioResrouceInfoId(builder, ScenarioResrouceInfoId): builder.PrependInt64Slot(0, ScenarioResrouceInfoId, 0)
|
|
def ShopCashScenarioResourceInfoExcelAddScenarioResrouceInfoId(builder, ScenarioResrouceInfoId):
|
|
"""This method is deprecated. Please switch to AddScenarioResrouceInfoId."""
|
|
return AddScenarioResrouceInfoId(builder, ScenarioResrouceInfoId)
|
|
def AddShopCashId(builder, ShopCashId): builder.PrependInt64Slot(1, ShopCashId, 0)
|
|
def ShopCashScenarioResourceInfoExcelAddShopCashId(builder, ShopCashId):
|
|
"""This method is deprecated. Please switch to AddShopCashId."""
|
|
return AddShopCashId(builder, ShopCashId)
|
|
def AddIconPath(builder, IconPath): builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(IconPath), 0)
|
|
def ShopCashScenarioResourceInfoExcelAddIconPath(builder, IconPath):
|
|
"""This method is deprecated. Please switch to AddIconPath."""
|
|
return AddIconPath(builder, IconPath)
|
|
def End(builder): return builder.EndObject()
|
|
def ShopCashScenarioResourceInfoExcelEnd(builder):
|
|
"""This method is deprecated. Please switch to End."""
|
|
return End(builder) |