Files
BA-AD/baad/FlatData/EventContentFortuneGachaExcel.py
Deathemonic 2ee2061ae9 feat: bump dump
- bump dump file to support latest client 1.46.287264
- updated flatbuf generator to support lastest dump file
- refactored table extracter
2024-07-15 23:21:43 +08:00

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 EventContentFortuneGachaExcel(object):
__slots__ = ['_tab']
@classmethod
def GetRootAs(cls, buf, offset=0):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = EventContentFortuneGachaExcel()
x.Init(buf, n + offset)
return x
@classmethod
def GetRootAsEventContentFortuneGachaExcel(cls, buf, offset=0):
"""This method is deprecated. Please switch to GetRootAs."""
return cls.GetRootAs(buf, offset)
# EventContentFortuneGachaExcel
def Init(self, buf, pos):
self._tab = flatbuffers.table.Table(buf, pos)
# EventContentFortuneGachaExcel
def FortuneGachaGroupId(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
if o != 0:
return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
return 0
# EventContentFortuneGachaExcel
def LocalizeEtcId(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
# EventContentFortuneGachaExcel
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 EventContentFortuneGachaExcelStart(builder):
"""This method is deprecated. Please switch to Start."""
return Start(builder)
def AddFortuneGachaGroupId(builder, FortuneGachaGroupId): builder.PrependInt32Slot(0, FortuneGachaGroupId, 0)
def EventContentFortuneGachaExcelAddFortuneGachaGroupId(builder, FortuneGachaGroupId):
"""This method is deprecated. Please switch to AddFortuneGachaGroupId."""
return AddFortuneGachaGroupId(builder, FortuneGachaGroupId)
def AddLocalizeEtcId(builder, LocalizeEtcId): builder.PrependUint32Slot(1, LocalizeEtcId, 0)
def EventContentFortuneGachaExcelAddLocalizeEtcId(builder, LocalizeEtcId):
"""This method is deprecated. Please switch to AddLocalizeEtcId."""
return AddLocalizeEtcId(builder, LocalizeEtcId)
def AddIconPath(builder, IconPath): builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(IconPath), 0)
def EventContentFortuneGachaExcelAddIconPath(builder, IconPath):
"""This method is deprecated. Please switch to AddIconPath."""
return AddIconPath(builder, IconPath)
def End(builder): return builder.EndObject()
def EventContentFortuneGachaExcelEnd(builder):
"""This method is deprecated. Please switch to End."""
return End(builder)