146 lines
6.3 KiB
Python
146 lines
6.3 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 EventContentBoxGachaShopExcel(object):
|
|
__slots__ = ['_tab']
|
|
|
|
@classmethod
|
|
def GetRootAs(cls, buf, offset=0):
|
|
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
|
x = EventContentBoxGachaShopExcel()
|
|
x.Init(buf, n + offset)
|
|
return x
|
|
|
|
@classmethod
|
|
def GetRootAsEventContentBoxGachaShopExcel(cls, buf, offset=0):
|
|
"""This method is deprecated. Please switch to GetRootAs."""
|
|
return cls.GetRootAs(buf, offset)
|
|
# EventContentBoxGachaShopExcel
|
|
def Init(self, buf, pos):
|
|
self._tab = flatbuffers.table.Table(buf, pos)
|
|
|
|
# EventContentBoxGachaShopExcel
|
|
def EventContentId(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
|
|
|
|
# EventContentBoxGachaShopExcel
|
|
def GroupId(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
|
|
|
|
# EventContentBoxGachaShopExcel
|
|
def GroupElementAmount(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
|
|
|
|
# EventContentBoxGachaShopExcel
|
|
def Round(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10))
|
|
if o != 0:
|
|
return self._tab.Get(flatbuffers.number_types.Int64Flags, o + self._tab.Pos)
|
|
return 0
|
|
|
|
# EventContentBoxGachaShopExcel
|
|
def IsLegacy(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
|
|
if o != 0:
|
|
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
return False
|
|
|
|
# EventContentBoxGachaShopExcel
|
|
def IsPrize(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
|
|
if o != 0:
|
|
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
return False
|
|
|
|
# EventContentBoxGachaShopExcel
|
|
def GoodsId(self, j):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(16))
|
|
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
|
|
|
|
# EventContentBoxGachaShopExcel
|
|
def GoodsIdAsNumpy(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(16))
|
|
if o != 0:
|
|
return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Int64Flags, o)
|
|
return 0
|
|
|
|
# EventContentBoxGachaShopExcel
|
|
def GoodsIdLength(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(16))
|
|
if o != 0:
|
|
return self._tab.VectorLen(o)
|
|
return 0
|
|
|
|
# EventContentBoxGachaShopExcel
|
|
def GoodsIdIsNone(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(16))
|
|
return o == 0
|
|
|
|
# EventContentBoxGachaShopExcel
|
|
def DisplayOrder(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(18))
|
|
if o != 0:
|
|
return self._tab.Get(flatbuffers.number_types.Int64Flags, o + self._tab.Pos)
|
|
return 0
|
|
|
|
def Start(builder): builder.StartObject(8)
|
|
def EventContentBoxGachaShopExcelStart(builder):
|
|
"""This method is deprecated. Please switch to Start."""
|
|
return Start(builder)
|
|
def AddEventContentId(builder, EventContentId): builder.PrependInt64Slot(0, EventContentId, 0)
|
|
def EventContentBoxGachaShopExcelAddEventContentId(builder, EventContentId):
|
|
"""This method is deprecated. Please switch to AddEventContentId."""
|
|
return AddEventContentId(builder, EventContentId)
|
|
def AddGroupId(builder, GroupId): builder.PrependInt64Slot(1, GroupId, 0)
|
|
def EventContentBoxGachaShopExcelAddGroupId(builder, GroupId):
|
|
"""This method is deprecated. Please switch to AddGroupId."""
|
|
return AddGroupId(builder, GroupId)
|
|
def AddGroupElementAmount(builder, GroupElementAmount): builder.PrependInt64Slot(2, GroupElementAmount, 0)
|
|
def EventContentBoxGachaShopExcelAddGroupElementAmount(builder, GroupElementAmount):
|
|
"""This method is deprecated. Please switch to AddGroupElementAmount."""
|
|
return AddGroupElementAmount(builder, GroupElementAmount)
|
|
def AddRound(builder, Round): builder.PrependInt64Slot(3, Round, 0)
|
|
def EventContentBoxGachaShopExcelAddRound(builder, Round):
|
|
"""This method is deprecated. Please switch to AddRound."""
|
|
return AddRound(builder, Round)
|
|
def AddIsLegacy(builder, IsLegacy): builder.PrependBoolSlot(4, IsLegacy, 0)
|
|
def EventContentBoxGachaShopExcelAddIsLegacy(builder, IsLegacy):
|
|
"""This method is deprecated. Please switch to AddIsLegacy."""
|
|
return AddIsLegacy(builder, IsLegacy)
|
|
def AddIsPrize(builder, IsPrize): builder.PrependBoolSlot(5, IsPrize, 0)
|
|
def EventContentBoxGachaShopExcelAddIsPrize(builder, IsPrize):
|
|
"""This method is deprecated. Please switch to AddIsPrize."""
|
|
return AddIsPrize(builder, IsPrize)
|
|
def AddGoodsId(builder, GoodsId): builder.PrependUOffsetTRelativeSlot(6, flatbuffers.number_types.UOffsetTFlags.py_type(GoodsId), 0)
|
|
def EventContentBoxGachaShopExcelAddGoodsId(builder, GoodsId):
|
|
"""This method is deprecated. Please switch to AddGoodsId."""
|
|
return AddGoodsId(builder, GoodsId)
|
|
def StartGoodsIdVector(builder, numElems): return builder.StartVector(8, numElems, 8)
|
|
def EventContentBoxGachaShopExcelStartGoodsIdVector(builder, numElems):
|
|
"""This method is deprecated. Please switch to Start."""
|
|
return StartGoodsIdVector(builder, numElems)
|
|
def AddDisplayOrder(builder, DisplayOrder): builder.PrependInt64Slot(7, DisplayOrder, 0)
|
|
def EventContentBoxGachaShopExcelAddDisplayOrder(builder, DisplayOrder):
|
|
"""This method is deprecated. Please switch to AddDisplayOrder."""
|
|
return AddDisplayOrder(builder, DisplayOrder)
|
|
def End(builder): return builder.EndObject()
|
|
def EventContentBoxGachaShopExcelEnd(builder):
|
|
"""This method is deprecated. Please switch to End."""
|
|
return End(builder) |