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/EventContentBoxGachaElementExcel.py
K0lb3 16d6d3f877 flatbuf decoder added
integrated into extract_tables
2021-11-12 23:14:45 +01:00

78 lines
3.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 EventContentBoxGachaElementExcel(object):
__slots__ = ['_tab']
@classmethod
def GetRootAs(cls, buf, offset=0):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = EventContentBoxGachaElementExcel()
x.Init(buf, n + offset)
return x
@classmethod
def GetRootAsEventContentBoxGachaElementExcel(cls, buf, offset=0):
"""This method is deprecated. Please switch to GetRootAs."""
return cls.GetRootAs(buf, offset)
# EventContentBoxGachaElementExcel
def Init(self, buf, pos):
self._tab = flatbuffers.table.Table(buf, pos)
# EventContentBoxGachaElementExcel
def EventContentId(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
# EventContentBoxGachaElementExcel
def Id(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
# EventContentBoxGachaElementExcel
def Round(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
# EventContentBoxGachaElementExcel
def GroupId(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
def Start(builder): builder.StartObject(4)
def EventContentBoxGachaElementExcelStart(builder):
"""This method is deprecated. Please switch to Start."""
return Start(builder)
def AddEventContentId(builder, EventContentId): builder.PrependInt64Slot(0, EventContentId, 0)
def EventContentBoxGachaElementExcelAddEventContentId(builder, EventContentId):
"""This method is deprecated. Please switch to AddEventContentId."""
return AddEventContentId(builder, EventContentId)
def AddId(builder, Id): builder.PrependInt64Slot(1, Id, 0)
def EventContentBoxGachaElementExcelAddId(builder, Id):
"""This method is deprecated. Please switch to AddId."""
return AddId(builder, Id)
def AddRound(builder, Round): builder.PrependInt64Slot(2, Round, 0)
def EventContentBoxGachaElementExcelAddRound(builder, Round):
"""This method is deprecated. Please switch to AddRound."""
return AddRound(builder, Round)
def AddGroupId(builder, GroupId): builder.PrependInt64Slot(3, GroupId, 0)
def EventContentBoxGachaElementExcelAddGroupId(builder, GroupId):
"""This method is deprecated. Please switch to AddGroupId."""
return AddGroupId(builder, GroupId)
def End(builder): return builder.EndObject()
def EventContentBoxGachaElementExcelEnd(builder):
"""This method is deprecated. Please switch to End."""
return End(builder)