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

56 lines
2.0 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 SpineLipsyncExcel(object):
__slots__ = ['_tab']
@classmethod
def GetRootAs(cls, buf, offset=0):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = SpineLipsyncExcel()
x.Init(buf, n + offset)
return x
@classmethod
def GetRootAsSpineLipsyncExcel(cls, buf, offset=0):
"""This method is deprecated. Please switch to GetRootAs."""
return cls.GetRootAs(buf, offset)
# SpineLipsyncExcel
def Init(self, buf, pos):
self._tab = flatbuffers.table.Table(buf, pos)
# SpineLipsyncExcel
def VoiceId(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
if o != 0:
return self._tab.Get(flatbuffers.number_types.Uint32Flags, o + self._tab.Pos)
return 0
# SpineLipsyncExcel
def AnimJson(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
def Start(builder): builder.StartObject(2)
def SpineLipsyncExcelStart(builder):
"""This method is deprecated. Please switch to Start."""
return Start(builder)
def AddVoiceId(builder, VoiceId): builder.PrependUint32Slot(0, VoiceId, 0)
def SpineLipsyncExcelAddVoiceId(builder, VoiceId):
"""This method is deprecated. Please switch to AddVoiceId."""
return AddVoiceId(builder, VoiceId)
def AddAnimJson(builder, AnimJson): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(AnimJson), 0)
def SpineLipsyncExcelAddAnimJson(builder, AnimJson):
"""This method is deprecated. Please switch to AddAnimJson."""
return AddAnimJson(builder, AnimJson)
def End(builder): return builder.EndObject()
def SpineLipsyncExcelEnd(builder):
"""This method is deprecated. Please switch to End."""
return End(builder)