Files
BA-AD/baad/FlatData/SoundUIExcel.py
Deathemonic 2386ae982d fix: importing
- typo fix at main
- added __all__ at flatdata init
- added missing type hints
- fix formatting
- table service now uses pathlib
- set unused progress to a private variable
- added proper error handling when extracting (probaly need to refactor it)
- fix path not recognizing as path at table extractor
- change the extracting progress bar to one instead of the download like progress bar
2024-07-14 03:50:50 +08:00

67 lines
2.4 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 SoundUIExcel(object):
__slots__ = ['_tab']
@classmethod
def GetRootAs(cls, buf, offset=0):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = SoundUIExcel()
x.Init(buf, n + offset)
return x
@classmethod
def GetRootAsSoundUIExcel(cls, buf, offset=0):
"""This method is deprecated. Please switch to GetRootAs."""
return cls.GetRootAs(buf, offset)
# SoundUIExcel
def Init(self, buf, pos):
self._tab = flatbuffers.table.Table(buf, pos)
# SoundUIExcel
def ID(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
# SoundUIExcel
def SoundUniqueId(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
if o != 0:
return self._tab.String(o + self._tab.Pos)
return None
# SoundUIExcel
def Path(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 SoundUIExcelStart(builder):
"""This method is deprecated. Please switch to Start."""
return Start(builder)
def AddID(builder, ID): builder.PrependInt64Slot(0, ID, 0)
def SoundUIExcelAddID(builder, ID):
"""This method is deprecated. Please switch to AddID."""
return AddID(builder, ID)
def AddSoundUniqueId(builder, SoundUniqueId): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(SoundUniqueId), 0)
def SoundUIExcelAddSoundUniqueId(builder, SoundUniqueId):
"""This method is deprecated. Please switch to AddSoundUniqueId."""
return AddSoundUniqueId(builder, SoundUniqueId)
def AddPath(builder, Path): builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(Path), 0)
def SoundUIExcelAddPath(builder, Path):
"""This method is deprecated. Please switch to AddPath."""
return AddPath(builder, Path)
def End(builder): return builder.EndObject()
def SoundUIExcelEnd(builder):
"""This method is deprecated. Please switch to End."""
return End(builder)