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
89 lines
4.1 KiB
Python
89 lines
4.1 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 ContentSpoilerPopupExcel(object):
|
|
__slots__ = ['_tab']
|
|
|
|
@classmethod
|
|
def GetRootAs(cls, buf, offset=0):
|
|
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
|
x = ContentSpoilerPopupExcel()
|
|
x.Init(buf, n + offset)
|
|
return x
|
|
|
|
@classmethod
|
|
def GetRootAsContentSpoilerPopupExcel(cls, buf, offset=0):
|
|
"""This method is deprecated. Please switch to GetRootAs."""
|
|
return cls.GetRootAs(buf, offset)
|
|
# ContentSpoilerPopupExcel
|
|
def Init(self, buf, pos):
|
|
self._tab = flatbuffers.table.Table(buf, pos)
|
|
|
|
# ContentSpoilerPopupExcel
|
|
def ContentType_(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
|
|
|
|
# ContentSpoilerPopupExcel
|
|
def SpoilerPopupTitle(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
|
|
if o != 0:
|
|
return self._tab.String(o + self._tab.Pos)
|
|
return None
|
|
|
|
# ContentSpoilerPopupExcel
|
|
def SpoilerPopupDescription(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
|
|
|
|
# ContentSpoilerPopupExcel
|
|
def IsWarningPopUp(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10))
|
|
if o != 0:
|
|
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
return False
|
|
|
|
# ContentSpoilerPopupExcel
|
|
def ConditionScenarioModeId(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
|
|
if o != 0:
|
|
return self._tab.Get(flatbuffers.number_types.Int64Flags, o + self._tab.Pos)
|
|
return 0
|
|
|
|
def Start(builder): builder.StartObject(5)
|
|
def ContentSpoilerPopupExcelStart(builder):
|
|
"""This method is deprecated. Please switch to Start."""
|
|
return Start(builder)
|
|
def AddContentType_(builder, ContentType_): builder.PrependInt32Slot(0, ContentType_, 0)
|
|
def ContentSpoilerPopupExcelAddContentType_(builder, ContentType_):
|
|
"""This method is deprecated. Please switch to AddContentType_."""
|
|
return AddContentType_(builder, ContentType_)
|
|
def AddSpoilerPopupTitle(builder, SpoilerPopupTitle): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(SpoilerPopupTitle), 0)
|
|
def ContentSpoilerPopupExcelAddSpoilerPopupTitle(builder, SpoilerPopupTitle):
|
|
"""This method is deprecated. Please switch to AddSpoilerPopupTitle."""
|
|
return AddSpoilerPopupTitle(builder, SpoilerPopupTitle)
|
|
def AddSpoilerPopupDescription(builder, SpoilerPopupDescription): builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(SpoilerPopupDescription), 0)
|
|
def ContentSpoilerPopupExcelAddSpoilerPopupDescription(builder, SpoilerPopupDescription):
|
|
"""This method is deprecated. Please switch to AddSpoilerPopupDescription."""
|
|
return AddSpoilerPopupDescription(builder, SpoilerPopupDescription)
|
|
def AddIsWarningPopUp(builder, IsWarningPopUp): builder.PrependBoolSlot(3, IsWarningPopUp, 0)
|
|
def ContentSpoilerPopupExcelAddIsWarningPopUp(builder, IsWarningPopUp):
|
|
"""This method is deprecated. Please switch to AddIsWarningPopUp."""
|
|
return AddIsWarningPopUp(builder, IsWarningPopUp)
|
|
def AddConditionScenarioModeId(builder, ConditionScenarioModeId): builder.PrependInt64Slot(4, ConditionScenarioModeId, 0)
|
|
def ContentSpoilerPopupExcelAddConditionScenarioModeId(builder, ConditionScenarioModeId):
|
|
"""This method is deprecated. Please switch to AddConditionScenarioModeId."""
|
|
return AddConditionScenarioModeId(builder, ConditionScenarioModeId)
|
|
def End(builder): return builder.EndObject()
|
|
def ContentSpoilerPopupExcelEnd(builder):
|
|
"""This method is deprecated. Please switch to End."""
|
|
return End(builder) |