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/EmoticonSpecialExcel.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 EmoticonSpecialExcel(object):
__slots__ = ['_tab']
@classmethod
def GetRootAs(cls, buf, offset=0):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = EmoticonSpecialExcel()
x.Init(buf, n + offset)
return x
@classmethod
def GetRootAsEmoticonSpecialExcel(cls, buf, offset=0):
"""This method is deprecated. Please switch to GetRootAs."""
return cls.GetRootAs(buf, offset)
# EmoticonSpecialExcel
def Init(self, buf, pos):
self._tab = flatbuffers.table.Table(buf, pos)
# EmoticonSpecialExcel
def UniqueId(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
# EmoticonSpecialExcel
def CharacterUniqueId(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
# EmoticonSpecialExcel
def Random(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
if o != 0:
return self._tab.String(o + self._tab.Pos)
return None
def Start(builder): builder.StartObject(3)
def EmoticonSpecialExcelStart(builder):
"""This method is deprecated. Please switch to Start."""
return Start(builder)
def AddUniqueId(builder, UniqueId): builder.PrependInt64Slot(0, UniqueId, 0)
def EmoticonSpecialExcelAddUniqueId(builder, UniqueId):
"""This method is deprecated. Please switch to AddUniqueId."""
return AddUniqueId(builder, UniqueId)
def AddCharacterUniqueId(builder, CharacterUniqueId): builder.PrependInt64Slot(1, CharacterUniqueId, 0)
def EmoticonSpecialExcelAddCharacterUniqueId(builder, CharacterUniqueId):
"""This method is deprecated. Please switch to AddCharacterUniqueId."""
return AddCharacterUniqueId(builder, CharacterUniqueId)
def AddRandom(builder, Random): builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(Random), 0)
def EmoticonSpecialExcelAddRandom(builder, Random):
"""This method is deprecated. Please switch to AddRandom."""
return AddRandom(builder, Random)
def End(builder): return builder.EndObject()
def EmoticonSpecialExcelEnd(builder):
"""This method is deprecated. Please switch to End."""
return End(builder)