This repository has been archived on 2025-04-28. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Blue-Archive---Asset-Downlo…/FlatData/ServiceActionExcel.py
K0lb3 16d6d3f877 flatbuf decoder added
integrated into extract_tables
2021-11-12 23:14:45 +01:00

67 lines
2.6 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 ServiceActionExcel(object):
__slots__ = ['_tab']
@classmethod
def GetRootAs(cls, buf, offset=0):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = ServiceActionExcel()
x.Init(buf, n + offset)
return x
@classmethod
def GetRootAsServiceActionExcel(cls, buf, offset=0):
"""This method is deprecated. Please switch to GetRootAs."""
return cls.GetRootAs(buf, offset)
# ServiceActionExcel
def Init(self, buf, pos):
self._tab = flatbuffers.table.Table(buf, pos)
# ServiceActionExcel
def ServiceActionType_(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
# ServiceActionExcel
def IsLegacy(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
if o != 0:
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
return False
# ServiceActionExcel
def GoodsId(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
if o != 0:
return self._tab.Get(flatbuffers.number_types.Int64Flags, o + self._tab.Pos)
return 0
def Start(builder): builder.StartObject(3)
def ServiceActionExcelStart(builder):
"""This method is deprecated. Please switch to Start."""
return Start(builder)
def AddServiceActionType_(builder, ServiceActionType_): builder.PrependInt32Slot(0, ServiceActionType_, 0)
def ServiceActionExcelAddServiceActionType_(builder, ServiceActionType_):
"""This method is deprecated. Please switch to AddServiceActionType_."""
return AddServiceActionType_(builder, ServiceActionType_)
def AddIsLegacy(builder, IsLegacy): builder.PrependBoolSlot(1, IsLegacy, 0)
def ServiceActionExcelAddIsLegacy(builder, IsLegacy):
"""This method is deprecated. Please switch to AddIsLegacy."""
return AddIsLegacy(builder, IsLegacy)
def AddGoodsId(builder, GoodsId): builder.PrependInt64Slot(2, GoodsId, 0)
def ServiceActionExcelAddGoodsId(builder, GoodsId):
"""This method is deprecated. Please switch to AddGoodsId."""
return AddGoodsId(builder, GoodsId)
def End(builder): return builder.EndObject()
def ServiceActionExcelEnd(builder):
"""This method is deprecated. Please switch to End."""
return End(builder)