144 lines
6.6 KiB
Python
144 lines
6.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 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):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
|
|
if o != 0:
|
|
return self._tab.Get(flatbuffers.number_types.Int64Flags, o + self._tab.Pos)
|
|
return 0
|
|
|
|
# EventContentCollectionExcel
|
|
def UnlockConditionCount(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
|
|
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(16))
|
|
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(18))
|
|
if o != 0:
|
|
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
return False
|
|
|
|
# EventContentCollectionExcel
|
|
def ThumbResource(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(20))
|
|
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(22))
|
|
if o != 0:
|
|
return self._tab.String(o + self._tab.Pos)
|
|
return None
|
|
|
|
def Start(builder): builder.StartObject(10)
|
|
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.PrependInt64Slot(4, UnlockConditionParameter, 0)
|
|
def EventContentCollectionExcelAddUnlockConditionParameter(builder, UnlockConditionParameter):
|
|
"""This method is deprecated. Please switch to AddUnlockConditionParameter."""
|
|
return AddUnlockConditionParameter(builder, UnlockConditionParameter)
|
|
def AddUnlockConditionCount(builder, UnlockConditionCount): builder.PrependInt64Slot(5, UnlockConditionCount, 0)
|
|
def EventContentCollectionExcelAddUnlockConditionCount(builder, UnlockConditionCount):
|
|
"""This method is deprecated. Please switch to AddUnlockConditionCount."""
|
|
return AddUnlockConditionCount(builder, UnlockConditionCount)
|
|
def AddIsObject(builder, IsObject): builder.PrependBoolSlot(6, IsObject, 0)
|
|
def EventContentCollectionExcelAddIsObject(builder, IsObject):
|
|
"""This method is deprecated. Please switch to AddIsObject."""
|
|
return AddIsObject(builder, IsObject)
|
|
def AddIsHorizon(builder, IsHorizon): builder.PrependBoolSlot(7, IsHorizon, 0)
|
|
def EventContentCollectionExcelAddIsHorizon(builder, IsHorizon):
|
|
"""This method is deprecated. Please switch to AddIsHorizon."""
|
|
return AddIsHorizon(builder, IsHorizon)
|
|
def AddThumbResource(builder, ThumbResource): builder.PrependUOffsetTRelativeSlot(8, 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(9, 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 End(builder): return builder.EndObject()
|
|
def EventContentCollectionExcelEnd(builder):
|
|
"""This method is deprecated. Please switch to End."""
|
|
return End(builder) |