Files
BA-AD/baad/FlatData/EventContentCollectionExcel.py
Deathemonic 1704f66d65 feat: async table extracter
- make table extracter async
- make asset extracter useful
- updated schemas
- added usage instrutions at readme
2024-07-28 12:49:25 +08:00

223 lines
11 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 EventContentCollectionExcel(object):
__slots__ = ['_tab']
@classmethod
def GetRootAs(cls, buf, offset=0):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = EventContentCollectionExcel()
x.Init(buf, n + offset)
return x
@classmethod
def GetRootAsEventContentCollectionExcel(cls, buf, offset=0):
"""This method is deprecated. Please switch to GetRootAs."""
return cls.GetRootAs(buf, offset)
# EventContentCollectionExcel
def Init(self, buf, pos):
self._tab = flatbuffers.table.Table(buf, pos)
# EventContentCollectionExcel
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
# EventContentCollectionExcel
def EventContentId(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
# EventContentCollectionExcel
def GroupId(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
# EventContentCollectionExcel
def UnlockConditionType(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10))
if o != 0:
return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
return 0
# EventContentCollectionExcel
def UnlockConditionParameter(self, j):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
if o != 0:
a = self._tab.Vector(o)
return self._tab.Get(flatbuffers.number_types.Int64Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 8))
return 0
# EventContentCollectionExcel
def UnlockConditionParameterAsNumpy(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
if o != 0:
return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Int64Flags, o)
return 0
# EventContentCollectionExcel
def UnlockConditionParameterLength(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
if o != 0:
return self._tab.VectorLen(o)
return 0
# EventContentCollectionExcel
def UnlockConditionParameterIsNone(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
return o == 0
# EventContentCollectionExcel
def MultipleConditionCheckType_(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
if o != 0:
return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
return 0
# EventContentCollectionExcel
def UnlockConditionCount(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(16))
if o != 0:
return self._tab.Get(flatbuffers.number_types.Int64Flags, o + self._tab.Pos)
return 0
# EventContentCollectionExcel
def IsObject(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(18))
if o != 0:
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
return False
# EventContentCollectionExcel
def IsObjectOnFullResource(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(20))
if o != 0:
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
return False
# EventContentCollectionExcel
def IsHorizon(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(22))
if o != 0:
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
return False
# EventContentCollectionExcel
def EmblemResource(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(24))
if o != 0:
return self._tab.String(o + self._tab.Pos)
return None
# EventContentCollectionExcel
def ThumbResource(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(26))
if o != 0:
return self._tab.String(o + self._tab.Pos)
return None
# EventContentCollectionExcel
def FullResource(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(28))
if o != 0:
return self._tab.String(o + self._tab.Pos)
return None
# EventContentCollectionExcel
def LocalizeEtcId(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(30))
if o != 0:
return self._tab.Get(flatbuffers.number_types.Uint32Flags, o + self._tab.Pos)
return 0
# EventContentCollectionExcel
def SubNameLocalizeCodeId(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(32))
if o != 0:
return self._tab.String(o + self._tab.Pos)
return None
def Start(builder): builder.StartObject(15)
def EventContentCollectionExcelStart(builder):
"""This method is deprecated. Please switch to Start."""
return Start(builder)
def AddId(builder, Id): builder.PrependInt64Slot(0, Id, 0)
def EventContentCollectionExcelAddId(builder, Id):
"""This method is deprecated. Please switch to AddId."""
return AddId(builder, Id)
def AddEventContentId(builder, EventContentId): builder.PrependInt64Slot(1, EventContentId, 0)
def EventContentCollectionExcelAddEventContentId(builder, EventContentId):
"""This method is deprecated. Please switch to AddEventContentId."""
return AddEventContentId(builder, EventContentId)
def AddGroupId(builder, GroupId): builder.PrependInt64Slot(2, GroupId, 0)
def EventContentCollectionExcelAddGroupId(builder, GroupId):
"""This method is deprecated. Please switch to AddGroupId."""
return AddGroupId(builder, GroupId)
def AddUnlockConditionType(builder, UnlockConditionType): builder.PrependInt32Slot(3, UnlockConditionType, 0)
def EventContentCollectionExcelAddUnlockConditionType(builder, UnlockConditionType):
"""This method is deprecated. Please switch to AddUnlockConditionType."""
return AddUnlockConditionType(builder, UnlockConditionType)
def AddUnlockConditionParameter(builder, UnlockConditionParameter): builder.PrependUOffsetTRelativeSlot(4, flatbuffers.number_types.UOffsetTFlags.py_type(UnlockConditionParameter), 0)
def EventContentCollectionExcelAddUnlockConditionParameter(builder, UnlockConditionParameter):
"""This method is deprecated. Please switch to AddUnlockConditionParameter."""
return AddUnlockConditionParameter(builder, UnlockConditionParameter)
def StartUnlockConditionParameterVector(builder, numElems): return builder.StartVector(8, numElems, 8)
def EventContentCollectionExcelStartUnlockConditionParameterVector(builder, numElems):
"""This method is deprecated. Please switch to Start."""
return StartUnlockConditionParameterVector(builder, numElems)
def AddMultipleConditionCheckType_(builder, MultipleConditionCheckType_): builder.PrependInt32Slot(5, MultipleConditionCheckType_, 0)
def EventContentCollectionExcelAddMultipleConditionCheckType_(builder, MultipleConditionCheckType_):
"""This method is deprecated. Please switch to AddMultipleConditionCheckType_."""
return AddMultipleConditionCheckType_(builder, MultipleConditionCheckType_)
def AddUnlockConditionCount(builder, UnlockConditionCount): builder.PrependInt64Slot(6, UnlockConditionCount, 0)
def EventContentCollectionExcelAddUnlockConditionCount(builder, UnlockConditionCount):
"""This method is deprecated. Please switch to AddUnlockConditionCount."""
return AddUnlockConditionCount(builder, UnlockConditionCount)
def AddIsObject(builder, IsObject): builder.PrependBoolSlot(7, IsObject, 0)
def EventContentCollectionExcelAddIsObject(builder, IsObject):
"""This method is deprecated. Please switch to AddIsObject."""
return AddIsObject(builder, IsObject)
def AddIsObjectOnFullResource(builder, IsObjectOnFullResource): builder.PrependBoolSlot(8, IsObjectOnFullResource, 0)
def EventContentCollectionExcelAddIsObjectOnFullResource(builder, IsObjectOnFullResource):
"""This method is deprecated. Please switch to AddIsObjectOnFullResource."""
return AddIsObjectOnFullResource(builder, IsObjectOnFullResource)
def AddIsHorizon(builder, IsHorizon): builder.PrependBoolSlot(9, IsHorizon, 0)
def EventContentCollectionExcelAddIsHorizon(builder, IsHorizon):
"""This method is deprecated. Please switch to AddIsHorizon."""
return AddIsHorizon(builder, IsHorizon)
def AddEmblemResource(builder, EmblemResource): builder.PrependUOffsetTRelativeSlot(10, flatbuffers.number_types.UOffsetTFlags.py_type(EmblemResource), 0)
def EventContentCollectionExcelAddEmblemResource(builder, EmblemResource):
"""This method is deprecated. Please switch to AddEmblemResource."""
return AddEmblemResource(builder, EmblemResource)
def AddThumbResource(builder, ThumbResource): builder.PrependUOffsetTRelativeSlot(11, flatbuffers.number_types.UOffsetTFlags.py_type(ThumbResource), 0)
def EventContentCollectionExcelAddThumbResource(builder, ThumbResource):
"""This method is deprecated. Please switch to AddThumbResource."""
return AddThumbResource(builder, ThumbResource)
def AddFullResource(builder, FullResource): builder.PrependUOffsetTRelativeSlot(12, flatbuffers.number_types.UOffsetTFlags.py_type(FullResource), 0)
def EventContentCollectionExcelAddFullResource(builder, FullResource):
"""This method is deprecated. Please switch to AddFullResource."""
return AddFullResource(builder, FullResource)
def AddLocalizeEtcId(builder, LocalizeEtcId): builder.PrependUint32Slot(13, LocalizeEtcId, 0)
def EventContentCollectionExcelAddLocalizeEtcId(builder, LocalizeEtcId):
"""This method is deprecated. Please switch to AddLocalizeEtcId."""
return AddLocalizeEtcId(builder, LocalizeEtcId)
def AddSubNameLocalizeCodeId(builder, SubNameLocalizeCodeId): builder.PrependUOffsetTRelativeSlot(14, flatbuffers.number_types.UOffsetTFlags.py_type(SubNameLocalizeCodeId), 0)
def EventContentCollectionExcelAddSubNameLocalizeCodeId(builder, SubNameLocalizeCodeId):
"""This method is deprecated. Please switch to AddSubNameLocalizeCodeId."""
return AddSubNameLocalizeCodeId(builder, SubNameLocalizeCodeId)
def End(builder): return builder.EndObject()
def EventContentCollectionExcelEnd(builder):
"""This method is deprecated. Please switch to End."""
return End(builder)