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
144 lines
7.1 KiB
Python
144 lines
7.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 FarmingDungeonLocationManageExcel(object):
|
|
__slots__ = ['_tab']
|
|
|
|
@classmethod
|
|
def GetRootAs(cls, buf, offset=0):
|
|
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
|
x = FarmingDungeonLocationManageExcel()
|
|
x.Init(buf, n + offset)
|
|
return x
|
|
|
|
@classmethod
|
|
def GetRootAsFarmingDungeonLocationManageExcel(cls, buf, offset=0):
|
|
"""This method is deprecated. Please switch to GetRootAs."""
|
|
return cls.GetRootAs(buf, offset)
|
|
# FarmingDungeonLocationManageExcel
|
|
def Init(self, buf, pos):
|
|
self._tab = flatbuffers.table.Table(buf, pos)
|
|
|
|
# FarmingDungeonLocationManageExcel
|
|
def FarmingDungeonLocationId(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
|
|
|
|
# FarmingDungeonLocationManageExcel
|
|
def ContentType_(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
|
|
if o != 0:
|
|
return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
|
|
return 0
|
|
|
|
# FarmingDungeonLocationManageExcel
|
|
def WeekDungeonType_(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
|
|
if o != 0:
|
|
return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
|
|
return 0
|
|
|
|
# FarmingDungeonLocationManageExcel
|
|
def SchoolDungeonType_(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10))
|
|
if o != 0:
|
|
return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
|
|
return 0
|
|
|
|
# FarmingDungeonLocationManageExcel
|
|
def Order(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
|
|
|
|
# FarmingDungeonLocationManageExcel
|
|
def OpenStartDateTime(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
|
|
if o != 0:
|
|
return self._tab.String(o + self._tab.Pos)
|
|
return None
|
|
|
|
# FarmingDungeonLocationManageExcel
|
|
def OpenEndDateTime(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(16))
|
|
if o != 0:
|
|
return self._tab.String(o + self._tab.Pos)
|
|
return None
|
|
|
|
# FarmingDungeonLocationManageExcel
|
|
def LocationButtonImagePath(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
|
|
|
|
# FarmingDungeonLocationManageExcel
|
|
def LocalizeCodeTitle(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(20))
|
|
if o != 0:
|
|
return self._tab.Get(flatbuffers.number_types.Uint32Flags, o + self._tab.Pos)
|
|
return 0
|
|
|
|
# FarmingDungeonLocationManageExcel
|
|
def LocalizeCodeInfo(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(22))
|
|
if o != 0:
|
|
return self._tab.Get(flatbuffers.number_types.Uint32Flags, o + self._tab.Pos)
|
|
return 0
|
|
|
|
def Start(builder): builder.StartObject(10)
|
|
def FarmingDungeonLocationManageExcelStart(builder):
|
|
"""This method is deprecated. Please switch to Start."""
|
|
return Start(builder)
|
|
def AddFarmingDungeonLocationId(builder, FarmingDungeonLocationId): builder.PrependInt64Slot(0, FarmingDungeonLocationId, 0)
|
|
def FarmingDungeonLocationManageExcelAddFarmingDungeonLocationId(builder, FarmingDungeonLocationId):
|
|
"""This method is deprecated. Please switch to AddFarmingDungeonLocationId."""
|
|
return AddFarmingDungeonLocationId(builder, FarmingDungeonLocationId)
|
|
def AddContentType_(builder, ContentType_): builder.PrependInt32Slot(1, ContentType_, 0)
|
|
def FarmingDungeonLocationManageExcelAddContentType_(builder, ContentType_):
|
|
"""This method is deprecated. Please switch to AddContentType_."""
|
|
return AddContentType_(builder, ContentType_)
|
|
def AddWeekDungeonType_(builder, WeekDungeonType_): builder.PrependInt32Slot(2, WeekDungeonType_, 0)
|
|
def FarmingDungeonLocationManageExcelAddWeekDungeonType_(builder, WeekDungeonType_):
|
|
"""This method is deprecated. Please switch to AddWeekDungeonType_."""
|
|
return AddWeekDungeonType_(builder, WeekDungeonType_)
|
|
def AddSchoolDungeonType_(builder, SchoolDungeonType_): builder.PrependInt32Slot(3, SchoolDungeonType_, 0)
|
|
def FarmingDungeonLocationManageExcelAddSchoolDungeonType_(builder, SchoolDungeonType_):
|
|
"""This method is deprecated. Please switch to AddSchoolDungeonType_."""
|
|
return AddSchoolDungeonType_(builder, SchoolDungeonType_)
|
|
def AddOrder(builder, Order): builder.PrependInt64Slot(4, Order, 0)
|
|
def FarmingDungeonLocationManageExcelAddOrder(builder, Order):
|
|
"""This method is deprecated. Please switch to AddOrder."""
|
|
return AddOrder(builder, Order)
|
|
def AddOpenStartDateTime(builder, OpenStartDateTime): builder.PrependUOffsetTRelativeSlot(5, flatbuffers.number_types.UOffsetTFlags.py_type(OpenStartDateTime), 0)
|
|
def FarmingDungeonLocationManageExcelAddOpenStartDateTime(builder, OpenStartDateTime):
|
|
"""This method is deprecated. Please switch to AddOpenStartDateTime."""
|
|
return AddOpenStartDateTime(builder, OpenStartDateTime)
|
|
def AddOpenEndDateTime(builder, OpenEndDateTime): builder.PrependUOffsetTRelativeSlot(6, flatbuffers.number_types.UOffsetTFlags.py_type(OpenEndDateTime), 0)
|
|
def FarmingDungeonLocationManageExcelAddOpenEndDateTime(builder, OpenEndDateTime):
|
|
"""This method is deprecated. Please switch to AddOpenEndDateTime."""
|
|
return AddOpenEndDateTime(builder, OpenEndDateTime)
|
|
def AddLocationButtonImagePath(builder, LocationButtonImagePath): builder.PrependUOffsetTRelativeSlot(7, flatbuffers.number_types.UOffsetTFlags.py_type(LocationButtonImagePath), 0)
|
|
def FarmingDungeonLocationManageExcelAddLocationButtonImagePath(builder, LocationButtonImagePath):
|
|
"""This method is deprecated. Please switch to AddLocationButtonImagePath."""
|
|
return AddLocationButtonImagePath(builder, LocationButtonImagePath)
|
|
def AddLocalizeCodeTitle(builder, LocalizeCodeTitle): builder.PrependUint32Slot(8, LocalizeCodeTitle, 0)
|
|
def FarmingDungeonLocationManageExcelAddLocalizeCodeTitle(builder, LocalizeCodeTitle):
|
|
"""This method is deprecated. Please switch to AddLocalizeCodeTitle."""
|
|
return AddLocalizeCodeTitle(builder, LocalizeCodeTitle)
|
|
def AddLocalizeCodeInfo(builder, LocalizeCodeInfo): builder.PrependUint32Slot(9, LocalizeCodeInfo, 0)
|
|
def FarmingDungeonLocationManageExcelAddLocalizeCodeInfo(builder, LocalizeCodeInfo):
|
|
"""This method is deprecated. Please switch to AddLocalizeCodeInfo."""
|
|
return AddLocalizeCodeInfo(builder, LocalizeCodeInfo)
|
|
def End(builder): return builder.EndObject()
|
|
def FarmingDungeonLocationManageExcelEnd(builder):
|
|
"""This method is deprecated. Please switch to End."""
|
|
return End(builder) |