183 lines
7.7 KiB
Python
183 lines
7.7 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 AcademyZoneExcel(object):
|
|
__slots__ = ['_tab']
|
|
|
|
@classmethod
|
|
def GetRootAs(cls, buf, offset=0):
|
|
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
|
x = AcademyZoneExcel()
|
|
x.Init(buf, n + offset)
|
|
return x
|
|
|
|
@classmethod
|
|
def GetRootAsAcademyZoneExcel(cls, buf, offset=0):
|
|
"""This method is deprecated. Please switch to GetRootAs."""
|
|
return cls.GetRootAs(buf, offset)
|
|
# AcademyZoneExcel
|
|
def Init(self, buf, pos):
|
|
self._tab = flatbuffers.table.Table(buf, pos)
|
|
|
|
# AcademyZoneExcel
|
|
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
|
|
|
|
# AcademyZoneExcel
|
|
def LocationId(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
|
|
|
|
# AcademyZoneExcel
|
|
def LocationRankForUnlock(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
|
|
|
|
# AcademyZoneExcel
|
|
def LocalizeEtcId(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10))
|
|
if o != 0:
|
|
return self._tab.Get(flatbuffers.number_types.Uint32Flags, o + self._tab.Pos)
|
|
return 0
|
|
|
|
# AcademyZoneExcel
|
|
def StudentVisitProb(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
|
|
|
|
# AcademyZoneExcel
|
|
def StudentVisitProbAsNumpy(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
|
|
|
|
# AcademyZoneExcel
|
|
def StudentVisitProbLength(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
|
|
if o != 0:
|
|
return self._tab.VectorLen(o)
|
|
return 0
|
|
|
|
# AcademyZoneExcel
|
|
def StudentVisitProbIsNone(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
|
|
return o == 0
|
|
|
|
# AcademyZoneExcel
|
|
def RewardGroupId(self, j):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
|
|
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
|
|
|
|
# AcademyZoneExcel
|
|
def RewardGroupIdAsNumpy(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
|
|
if o != 0:
|
|
return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Int64Flags, o)
|
|
return 0
|
|
|
|
# AcademyZoneExcel
|
|
def RewardGroupIdLength(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
|
|
if o != 0:
|
|
return self._tab.VectorLen(o)
|
|
return 0
|
|
|
|
# AcademyZoneExcel
|
|
def RewardGroupIdIsNone(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
|
|
return o == 0
|
|
|
|
# AcademyZoneExcel
|
|
def Tags(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.Int32Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 4))
|
|
return 0
|
|
|
|
# AcademyZoneExcel
|
|
def TagsAsNumpy(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(16))
|
|
if o != 0:
|
|
return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Int32Flags, o)
|
|
return 0
|
|
|
|
# AcademyZoneExcel
|
|
def TagsLength(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(16))
|
|
if o != 0:
|
|
return self._tab.VectorLen(o)
|
|
return 0
|
|
|
|
# AcademyZoneExcel
|
|
def TagsIsNone(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(16))
|
|
return o == 0
|
|
|
|
def Start(builder): builder.StartObject(7)
|
|
def AcademyZoneExcelStart(builder):
|
|
"""This method is deprecated. Please switch to Start."""
|
|
return Start(builder)
|
|
def AddId(builder, Id): builder.PrependInt64Slot(0, Id, 0)
|
|
def AcademyZoneExcelAddId(builder, Id):
|
|
"""This method is deprecated. Please switch to AddId."""
|
|
return AddId(builder, Id)
|
|
def AddLocationId(builder, LocationId): builder.PrependInt64Slot(1, LocationId, 0)
|
|
def AcademyZoneExcelAddLocationId(builder, LocationId):
|
|
"""This method is deprecated. Please switch to AddLocationId."""
|
|
return AddLocationId(builder, LocationId)
|
|
def AddLocationRankForUnlock(builder, LocationRankForUnlock): builder.PrependInt64Slot(2, LocationRankForUnlock, 0)
|
|
def AcademyZoneExcelAddLocationRankForUnlock(builder, LocationRankForUnlock):
|
|
"""This method is deprecated. Please switch to AddLocationRankForUnlock."""
|
|
return AddLocationRankForUnlock(builder, LocationRankForUnlock)
|
|
def AddLocalizeEtcId(builder, LocalizeEtcId): builder.PrependUint32Slot(3, LocalizeEtcId, 0)
|
|
def AcademyZoneExcelAddLocalizeEtcId(builder, LocalizeEtcId):
|
|
"""This method is deprecated. Please switch to AddLocalizeEtcId."""
|
|
return AddLocalizeEtcId(builder, LocalizeEtcId)
|
|
def AddStudentVisitProb(builder, StudentVisitProb): builder.PrependUOffsetTRelativeSlot(4, flatbuffers.number_types.UOffsetTFlags.py_type(StudentVisitProb), 0)
|
|
def AcademyZoneExcelAddStudentVisitProb(builder, StudentVisitProb):
|
|
"""This method is deprecated. Please switch to AddStudentVisitProb."""
|
|
return AddStudentVisitProb(builder, StudentVisitProb)
|
|
def StartStudentVisitProbVector(builder, numElems): return builder.StartVector(8, numElems, 8)
|
|
def AcademyZoneExcelStartStudentVisitProbVector(builder, numElems):
|
|
"""This method is deprecated. Please switch to Start."""
|
|
return StartStudentVisitProbVector(builder, numElems)
|
|
def AddRewardGroupId(builder, RewardGroupId): builder.PrependUOffsetTRelativeSlot(5, flatbuffers.number_types.UOffsetTFlags.py_type(RewardGroupId), 0)
|
|
def AcademyZoneExcelAddRewardGroupId(builder, RewardGroupId):
|
|
"""This method is deprecated. Please switch to AddRewardGroupId."""
|
|
return AddRewardGroupId(builder, RewardGroupId)
|
|
def StartRewardGroupIdVector(builder, numElems): return builder.StartVector(8, numElems, 8)
|
|
def AcademyZoneExcelStartRewardGroupIdVector(builder, numElems):
|
|
"""This method is deprecated. Please switch to Start."""
|
|
return StartRewardGroupIdVector(builder, numElems)
|
|
def AddTags(builder, Tags): builder.PrependUOffsetTRelativeSlot(6, flatbuffers.number_types.UOffsetTFlags.py_type(Tags), 0)
|
|
def AcademyZoneExcelAddTags(builder, Tags):
|
|
"""This method is deprecated. Please switch to AddTags."""
|
|
return AddTags(builder, Tags)
|
|
def StartTagsVector(builder, numElems): return builder.StartVector(4, numElems, 4)
|
|
def AcademyZoneExcelStartTagsVector(builder, numElems):
|
|
"""This method is deprecated. Please switch to Start."""
|
|
return StartTagsVector(builder, numElems)
|
|
def End(builder): return builder.EndObject()
|
|
def AcademyZoneExcelEnd(builder):
|
|
"""This method is deprecated. Please switch to End."""
|
|
return End(builder) |