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

67 lines
2.9 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 VoiceRoomExceptionExcel(object):
__slots__ = ['_tab']
@classmethod
def GetRootAs(cls, buf, offset=0):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = VoiceRoomExceptionExcel()
x.Init(buf, n + offset)
return x
@classmethod
def GetRootAsVoiceRoomExceptionExcel(cls, buf, offset=0):
"""This method is deprecated. Please switch to GetRootAs."""
return cls.GetRootAs(buf, offset)
# VoiceRoomExceptionExcel
def Init(self, buf, pos):
self._tab = flatbuffers.table.Table(buf, pos)
# VoiceRoomExceptionExcel
def CostumeUniqueId(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
# VoiceRoomExceptionExcel
def LinkedCharacterVoicePrintType(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
if o != 0:
return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
return 0
# VoiceRoomExceptionExcel
def LinkedCostumeUniqueId(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 VoiceRoomExceptionExcelStart(builder):
"""This method is deprecated. Please switch to Start."""
return Start(builder)
def AddCostumeUniqueId(builder, CostumeUniqueId): builder.PrependInt64Slot(0, CostumeUniqueId, 0)
def VoiceRoomExceptionExcelAddCostumeUniqueId(builder, CostumeUniqueId):
"""This method is deprecated. Please switch to AddCostumeUniqueId."""
return AddCostumeUniqueId(builder, CostumeUniqueId)
def AddLinkedCharacterVoicePrintType(builder, LinkedCharacterVoicePrintType): builder.PrependInt32Slot(1, LinkedCharacterVoicePrintType, 0)
def VoiceRoomExceptionExcelAddLinkedCharacterVoicePrintType(builder, LinkedCharacterVoicePrintType):
"""This method is deprecated. Please switch to AddLinkedCharacterVoicePrintType."""
return AddLinkedCharacterVoicePrintType(builder, LinkedCharacterVoicePrintType)
def AddLinkedCostumeUniqueId(builder, LinkedCostumeUniqueId): builder.PrependInt64Slot(2, LinkedCostumeUniqueId, 0)
def VoiceRoomExceptionExcelAddLinkedCostumeUniqueId(builder, LinkedCostumeUniqueId):
"""This method is deprecated. Please switch to AddLinkedCostumeUniqueId."""
return AddLinkedCostumeUniqueId(builder, LinkedCostumeUniqueId)
def End(builder): return builder.EndObject()
def VoiceRoomExceptionExcelEnd(builder):
"""This method is deprecated. Please switch to End."""
return End(builder)