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
222 lines
9.9 KiB
Python
222 lines
9.9 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 WorldRaidConditionExcel(object):
|
|
__slots__ = ['_tab']
|
|
|
|
@classmethod
|
|
def GetRootAs(cls, buf, offset=0):
|
|
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
|
x = WorldRaidConditionExcel()
|
|
x.Init(buf, n + offset)
|
|
return x
|
|
|
|
@classmethod
|
|
def GetRootAsWorldRaidConditionExcel(cls, buf, offset=0):
|
|
"""This method is deprecated. Please switch to GetRootAs."""
|
|
return cls.GetRootAs(buf, offset)
|
|
# WorldRaidConditionExcel
|
|
def Init(self, buf, pos):
|
|
self._tab = flatbuffers.table.Table(buf, pos)
|
|
|
|
# WorldRaidConditionExcel
|
|
def Id(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
|
|
|
|
# WorldRaidConditionExcel
|
|
def LockUI(self, j):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
|
|
if o != 0:
|
|
a = self._tab.Vector(o)
|
|
return self._tab.String(a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 4))
|
|
return ""
|
|
|
|
# WorldRaidConditionExcel
|
|
def LockUILength(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
|
|
if o != 0:
|
|
return self._tab.VectorLen(o)
|
|
return 0
|
|
|
|
# WorldRaidConditionExcel
|
|
def LockUIIsNone(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
|
|
return o == 0
|
|
|
|
# WorldRaidConditionExcel
|
|
def HideWhenLocked(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
|
|
if o != 0:
|
|
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
return False
|
|
|
|
# WorldRaidConditionExcel
|
|
def AccountLevel(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10))
|
|
if o != 0:
|
|
return self._tab.Get(flatbuffers.number_types.Int64Flags, o + self._tab.Pos)
|
|
return 0
|
|
|
|
# WorldRaidConditionExcel
|
|
def ScenarioModeId(self, j):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
|
|
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
|
|
|
|
# WorldRaidConditionExcel
|
|
def ScenarioModeIdAsNumpy(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
|
|
if o != 0:
|
|
return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Int64Flags, o)
|
|
return 0
|
|
|
|
# WorldRaidConditionExcel
|
|
def ScenarioModeIdLength(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
|
|
if o != 0:
|
|
return self._tab.VectorLen(o)
|
|
return 0
|
|
|
|
# WorldRaidConditionExcel
|
|
def ScenarioModeIdIsNone(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
|
|
return o == 0
|
|
|
|
# WorldRaidConditionExcel
|
|
def CampaignStageID(self, j):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
|
|
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
|
|
|
|
# WorldRaidConditionExcel
|
|
def CampaignStageIDAsNumpy(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
|
|
if o != 0:
|
|
return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Int64Flags, o)
|
|
return 0
|
|
|
|
# WorldRaidConditionExcel
|
|
def CampaignStageIDLength(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
|
|
if o != 0:
|
|
return self._tab.VectorLen(o)
|
|
return 0
|
|
|
|
# WorldRaidConditionExcel
|
|
def CampaignStageIDIsNone(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
|
|
return o == 0
|
|
|
|
# WorldRaidConditionExcel
|
|
def MultipleConditionCheckType_(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(16))
|
|
if o != 0:
|
|
return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
|
|
return 0
|
|
|
|
# WorldRaidConditionExcel
|
|
def AfterWhenDate(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(18))
|
|
if o != 0:
|
|
return self._tab.String(o + self._tab.Pos)
|
|
return None
|
|
|
|
# WorldRaidConditionExcel
|
|
def WorldRaidBossKill(self, j):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(20))
|
|
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
|
|
|
|
# WorldRaidConditionExcel
|
|
def WorldRaidBossKillAsNumpy(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(20))
|
|
if o != 0:
|
|
return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Int64Flags, o)
|
|
return 0
|
|
|
|
# WorldRaidConditionExcel
|
|
def WorldRaidBossKillLength(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(20))
|
|
if o != 0:
|
|
return self._tab.VectorLen(o)
|
|
return 0
|
|
|
|
# WorldRaidConditionExcel
|
|
def WorldRaidBossKillIsNone(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(20))
|
|
return o == 0
|
|
|
|
def Start(builder): builder.StartObject(9)
|
|
def WorldRaidConditionExcelStart(builder):
|
|
"""This method is deprecated. Please switch to Start."""
|
|
return Start(builder)
|
|
def AddId(builder, Id): builder.PrependInt64Slot(0, Id, 0)
|
|
def WorldRaidConditionExcelAddId(builder, Id):
|
|
"""This method is deprecated. Please switch to AddId."""
|
|
return AddId(builder, Id)
|
|
def AddLockUI(builder, LockUI): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(LockUI), 0)
|
|
def WorldRaidConditionExcelAddLockUI(builder, LockUI):
|
|
"""This method is deprecated. Please switch to AddLockUI."""
|
|
return AddLockUI(builder, LockUI)
|
|
def StartLockUIVector(builder, numElems): return builder.StartVector(4, numElems, 4)
|
|
def WorldRaidConditionExcelStartLockUIVector(builder, numElems):
|
|
"""This method is deprecated. Please switch to Start."""
|
|
return StartLockUIVector(builder, numElems)
|
|
def AddHideWhenLocked(builder, HideWhenLocked): builder.PrependBoolSlot(2, HideWhenLocked, 0)
|
|
def WorldRaidConditionExcelAddHideWhenLocked(builder, HideWhenLocked):
|
|
"""This method is deprecated. Please switch to AddHideWhenLocked."""
|
|
return AddHideWhenLocked(builder, HideWhenLocked)
|
|
def AddAccountLevel(builder, AccountLevel): builder.PrependInt64Slot(3, AccountLevel, 0)
|
|
def WorldRaidConditionExcelAddAccountLevel(builder, AccountLevel):
|
|
"""This method is deprecated. Please switch to AddAccountLevel."""
|
|
return AddAccountLevel(builder, AccountLevel)
|
|
def AddScenarioModeId(builder, ScenarioModeId): builder.PrependUOffsetTRelativeSlot(4, flatbuffers.number_types.UOffsetTFlags.py_type(ScenarioModeId), 0)
|
|
def WorldRaidConditionExcelAddScenarioModeId(builder, ScenarioModeId):
|
|
"""This method is deprecated. Please switch to AddScenarioModeId."""
|
|
return AddScenarioModeId(builder, ScenarioModeId)
|
|
def StartScenarioModeIdVector(builder, numElems): return builder.StartVector(8, numElems, 8)
|
|
def WorldRaidConditionExcelStartScenarioModeIdVector(builder, numElems):
|
|
"""This method is deprecated. Please switch to Start."""
|
|
return StartScenarioModeIdVector(builder, numElems)
|
|
def AddCampaignStageID(builder, CampaignStageID): builder.PrependUOffsetTRelativeSlot(5, flatbuffers.number_types.UOffsetTFlags.py_type(CampaignStageID), 0)
|
|
def WorldRaidConditionExcelAddCampaignStageID(builder, CampaignStageID):
|
|
"""This method is deprecated. Please switch to AddCampaignStageID."""
|
|
return AddCampaignStageID(builder, CampaignStageID)
|
|
def StartCampaignStageIDVector(builder, numElems): return builder.StartVector(8, numElems, 8)
|
|
def WorldRaidConditionExcelStartCampaignStageIDVector(builder, numElems):
|
|
"""This method is deprecated. Please switch to Start."""
|
|
return StartCampaignStageIDVector(builder, numElems)
|
|
def AddMultipleConditionCheckType_(builder, MultipleConditionCheckType_): builder.PrependInt32Slot(6, MultipleConditionCheckType_, 0)
|
|
def WorldRaidConditionExcelAddMultipleConditionCheckType_(builder, MultipleConditionCheckType_):
|
|
"""This method is deprecated. Please switch to AddMultipleConditionCheckType_."""
|
|
return AddMultipleConditionCheckType_(builder, MultipleConditionCheckType_)
|
|
def AddAfterWhenDate(builder, AfterWhenDate): builder.PrependUOffsetTRelativeSlot(7, flatbuffers.number_types.UOffsetTFlags.py_type(AfterWhenDate), 0)
|
|
def WorldRaidConditionExcelAddAfterWhenDate(builder, AfterWhenDate):
|
|
"""This method is deprecated. Please switch to AddAfterWhenDate."""
|
|
return AddAfterWhenDate(builder, AfterWhenDate)
|
|
def AddWorldRaidBossKill(builder, WorldRaidBossKill): builder.PrependUOffsetTRelativeSlot(8, flatbuffers.number_types.UOffsetTFlags.py_type(WorldRaidBossKill), 0)
|
|
def WorldRaidConditionExcelAddWorldRaidBossKill(builder, WorldRaidBossKill):
|
|
"""This method is deprecated. Please switch to AddWorldRaidBossKill."""
|
|
return AddWorldRaidBossKill(builder, WorldRaidBossKill)
|
|
def StartWorldRaidBossKillVector(builder, numElems): return builder.StartVector(8, numElems, 8)
|
|
def WorldRaidConditionExcelStartWorldRaidBossKillVector(builder, numElems):
|
|
"""This method is deprecated. Please switch to Start."""
|
|
return StartWorldRaidBossKillVector(builder, numElems)
|
|
def End(builder): return builder.EndObject()
|
|
def WorldRaidConditionExcelEnd(builder):
|
|
"""This method is deprecated. Please switch to End."""
|
|
return End(builder) |