Files
BA-AD/baad/FlatData/CafeProductionExcel.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

111 lines
5.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 CafeProductionExcel(object):
__slots__ = ['_tab']
@classmethod
def GetRootAs(cls, buf, offset=0):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = CafeProductionExcel()
x.Init(buf, n + offset)
return x
@classmethod
def GetRootAsCafeProductionExcel(cls, buf, offset=0):
"""This method is deprecated. Please switch to GetRootAs."""
return cls.GetRootAs(buf, offset)
# CafeProductionExcel
def Init(self, buf, pos):
self._tab = flatbuffers.table.Table(buf, pos)
# CafeProductionExcel
def CafeId(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
# CafeProductionExcel
def Rank(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
# CafeProductionExcel
def CafeProductionParcelType(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
# CafeProductionExcel
def CafeProductionParcelId(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
# CafeProductionExcel
def ParcelProductionCoefficient(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
# CafeProductionExcel
def ParcelProductionCorrectionValue(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
if o != 0:
return self._tab.Get(flatbuffers.number_types.Int64Flags, o + self._tab.Pos)
return 0
# CafeProductionExcel
def ParcelStorageMax(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(16))
if o != 0:
return self._tab.Get(flatbuffers.number_types.Int64Flags, o + self._tab.Pos)
return 0
def Start(builder): builder.StartObject(7)
def CafeProductionExcelStart(builder):
"""This method is deprecated. Please switch to Start."""
return Start(builder)
def AddCafeId(builder, CafeId): builder.PrependInt64Slot(0, CafeId, 0)
def CafeProductionExcelAddCafeId(builder, CafeId):
"""This method is deprecated. Please switch to AddCafeId."""
return AddCafeId(builder, CafeId)
def AddRank(builder, Rank): builder.PrependInt64Slot(1, Rank, 0)
def CafeProductionExcelAddRank(builder, Rank):
"""This method is deprecated. Please switch to AddRank."""
return AddRank(builder, Rank)
def AddCafeProductionParcelType(builder, CafeProductionParcelType): builder.PrependInt32Slot(2, CafeProductionParcelType, 0)
def CafeProductionExcelAddCafeProductionParcelType(builder, CafeProductionParcelType):
"""This method is deprecated. Please switch to AddCafeProductionParcelType."""
return AddCafeProductionParcelType(builder, CafeProductionParcelType)
def AddCafeProductionParcelId(builder, CafeProductionParcelId): builder.PrependInt64Slot(3, CafeProductionParcelId, 0)
def CafeProductionExcelAddCafeProductionParcelId(builder, CafeProductionParcelId):
"""This method is deprecated. Please switch to AddCafeProductionParcelId."""
return AddCafeProductionParcelId(builder, CafeProductionParcelId)
def AddParcelProductionCoefficient(builder, ParcelProductionCoefficient): builder.PrependInt64Slot(4, ParcelProductionCoefficient, 0)
def CafeProductionExcelAddParcelProductionCoefficient(builder, ParcelProductionCoefficient):
"""This method is deprecated. Please switch to AddParcelProductionCoefficient."""
return AddParcelProductionCoefficient(builder, ParcelProductionCoefficient)
def AddParcelProductionCorrectionValue(builder, ParcelProductionCorrectionValue): builder.PrependInt64Slot(5, ParcelProductionCorrectionValue, 0)
def CafeProductionExcelAddParcelProductionCorrectionValue(builder, ParcelProductionCorrectionValue):
"""This method is deprecated. Please switch to AddParcelProductionCorrectionValue."""
return AddParcelProductionCorrectionValue(builder, ParcelProductionCorrectionValue)
def AddParcelStorageMax(builder, ParcelStorageMax): builder.PrependInt64Slot(6, ParcelStorageMax, 0)
def CafeProductionExcelAddParcelStorageMax(builder, ParcelStorageMax):
"""This method is deprecated. Please switch to AddParcelStorageMax."""
return AddParcelStorageMax(builder, ParcelStorageMax)
def End(builder): return builder.EndObject()
def CafeProductionExcelEnd(builder):
"""This method is deprecated. Please switch to End."""
return End(builder)