78 lines
3.2 KiB
Python
78 lines
3.2 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 EventContentBoxGachaManageExcel(object):
|
|
__slots__ = ['_tab']
|
|
|
|
@classmethod
|
|
def GetRootAs(cls, buf, offset=0):
|
|
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
|
x = EventContentBoxGachaManageExcel()
|
|
x.Init(buf, n + offset)
|
|
return x
|
|
|
|
@classmethod
|
|
def GetRootAsEventContentBoxGachaManageExcel(cls, buf, offset=0):
|
|
"""This method is deprecated. Please switch to GetRootAs."""
|
|
return cls.GetRootAs(buf, offset)
|
|
# EventContentBoxGachaManageExcel
|
|
def Init(self, buf, pos):
|
|
self._tab = flatbuffers.table.Table(buf, pos)
|
|
|
|
# EventContentBoxGachaManageExcel
|
|
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
|
|
|
|
# EventContentBoxGachaManageExcel
|
|
def Round(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
|
|
|
|
# EventContentBoxGachaManageExcel
|
|
def GoodsId(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
|
|
|
|
# EventContentBoxGachaManageExcel
|
|
def IsLoop(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10))
|
|
if o != 0:
|
|
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
return False
|
|
|
|
def Start(builder): builder.StartObject(4)
|
|
def EventContentBoxGachaManageExcelStart(builder):
|
|
"""This method is deprecated. Please switch to Start."""
|
|
return Start(builder)
|
|
def AddEventContentId(builder, EventContentId): builder.PrependInt64Slot(0, EventContentId, 0)
|
|
def EventContentBoxGachaManageExcelAddEventContentId(builder, EventContentId):
|
|
"""This method is deprecated. Please switch to AddEventContentId."""
|
|
return AddEventContentId(builder, EventContentId)
|
|
def AddRound(builder, Round): builder.PrependInt64Slot(1, Round, 0)
|
|
def EventContentBoxGachaManageExcelAddRound(builder, Round):
|
|
"""This method is deprecated. Please switch to AddRound."""
|
|
return AddRound(builder, Round)
|
|
def AddGoodsId(builder, GoodsId): builder.PrependInt64Slot(2, GoodsId, 0)
|
|
def EventContentBoxGachaManageExcelAddGoodsId(builder, GoodsId):
|
|
"""This method is deprecated. Please switch to AddGoodsId."""
|
|
return AddGoodsId(builder, GoodsId)
|
|
def AddIsLoop(builder, IsLoop): builder.PrependBoolSlot(3, IsLoop, 0)
|
|
def EventContentBoxGachaManageExcelAddIsLoop(builder, IsLoop):
|
|
"""This method is deprecated. Please switch to AddIsLoop."""
|
|
return AddIsLoop(builder, IsLoop)
|
|
def End(builder): return builder.EndObject()
|
|
def EventContentBoxGachaManageExcelEnd(builder):
|
|
"""This method is deprecated. Please switch to End."""
|
|
return End(builder) |