113 lines
4.6 KiB
Python
113 lines
4.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 VoiceLogicEffectExcel(object):
|
|
__slots__ = ['_tab']
|
|
|
|
@classmethod
|
|
def GetRootAs(cls, buf, offset=0):
|
|
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
|
x = VoiceLogicEffectExcel()
|
|
x.Init(buf, n + offset)
|
|
return x
|
|
|
|
@classmethod
|
|
def GetRootAsVoiceLogicEffectExcel(cls, buf, offset=0):
|
|
"""This method is deprecated. Please switch to GetRootAs."""
|
|
return cls.GetRootAs(buf, offset)
|
|
# VoiceLogicEffectExcel
|
|
def Init(self, buf, pos):
|
|
self._tab = flatbuffers.table.Table(buf, pos)
|
|
|
|
# VoiceLogicEffectExcel
|
|
def LogicEffectNameHash(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
|
|
|
|
# VoiceLogicEffectExcel
|
|
def Self(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
|
|
if o != 0:
|
|
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
return False
|
|
|
|
# VoiceLogicEffectExcel
|
|
def Priority(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
|
|
if o != 0:
|
|
return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
|
|
return 0
|
|
|
|
# VoiceLogicEffectExcel
|
|
def VoiceHash(self, j):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10))
|
|
if o != 0:
|
|
a = self._tab.Vector(o)
|
|
return self._tab.Get(flatbuffers.number_types.Uint32Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 4))
|
|
return 0
|
|
|
|
# VoiceLogicEffectExcel
|
|
def VoiceHashAsNumpy(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10))
|
|
if o != 0:
|
|
return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Uint32Flags, o)
|
|
return 0
|
|
|
|
# VoiceLogicEffectExcel
|
|
def VoiceHashLength(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10))
|
|
if o != 0:
|
|
return self._tab.VectorLen(o)
|
|
return 0
|
|
|
|
# VoiceLogicEffectExcel
|
|
def VoiceHashIsNone(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10))
|
|
return o == 0
|
|
|
|
# VoiceLogicEffectExcel
|
|
def VoiceId(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
|
|
if o != 0:
|
|
return self._tab.Get(flatbuffers.number_types.Uint32Flags, o + self._tab.Pos)
|
|
return 0
|
|
|
|
def Start(builder): builder.StartObject(5)
|
|
def VoiceLogicEffectExcelStart(builder):
|
|
"""This method is deprecated. Please switch to Start."""
|
|
return Start(builder)
|
|
def AddLogicEffectNameHash(builder, LogicEffectNameHash): builder.PrependUint32Slot(0, LogicEffectNameHash, 0)
|
|
def VoiceLogicEffectExcelAddLogicEffectNameHash(builder, LogicEffectNameHash):
|
|
"""This method is deprecated. Please switch to AddLogicEffectNameHash."""
|
|
return AddLogicEffectNameHash(builder, LogicEffectNameHash)
|
|
def AddSelf(builder, Self): builder.PrependBoolSlot(1, Self, 0)
|
|
def VoiceLogicEffectExcelAddSelf(builder, Self):
|
|
"""This method is deprecated. Please switch to AddSelf."""
|
|
return AddSelf(builder, Self)
|
|
def AddPriority(builder, Priority): builder.PrependInt32Slot(2, Priority, 0)
|
|
def VoiceLogicEffectExcelAddPriority(builder, Priority):
|
|
"""This method is deprecated. Please switch to AddPriority."""
|
|
return AddPriority(builder, Priority)
|
|
def AddVoiceHash(builder, VoiceHash): builder.PrependUOffsetTRelativeSlot(3, flatbuffers.number_types.UOffsetTFlags.py_type(VoiceHash), 0)
|
|
def VoiceLogicEffectExcelAddVoiceHash(builder, VoiceHash):
|
|
"""This method is deprecated. Please switch to AddVoiceHash."""
|
|
return AddVoiceHash(builder, VoiceHash)
|
|
def StartVoiceHashVector(builder, numElems): return builder.StartVector(4, numElems, 4)
|
|
def VoiceLogicEffectExcelStartVoiceHashVector(builder, numElems):
|
|
"""This method is deprecated. Please switch to Start."""
|
|
return StartVoiceHashVector(builder, numElems)
|
|
def AddVoiceId(builder, VoiceId): builder.PrependUint32Slot(4, VoiceId, 0)
|
|
def VoiceLogicEffectExcelAddVoiceId(builder, VoiceId):
|
|
"""This method is deprecated. Please switch to AddVoiceId."""
|
|
return AddVoiceId(builder, VoiceId)
|
|
def End(builder): return builder.EndObject()
|
|
def VoiceLogicEffectExcelEnd(builder):
|
|
"""This method is deprecated. Please switch to End."""
|
|
return End(builder) |