89 lines
4.0 KiB
Python
89 lines
4.0 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 WeekDungeonGroupBuffExcel(object):
|
|
__slots__ = ['_tab']
|
|
|
|
@classmethod
|
|
def GetRootAs(cls, buf, offset=0):
|
|
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
|
x = WeekDungeonGroupBuffExcel()
|
|
x.Init(buf, n + offset)
|
|
return x
|
|
|
|
@classmethod
|
|
def GetRootAsWeekDungeonGroupBuffExcel(cls, buf, offset=0):
|
|
"""This method is deprecated. Please switch to GetRootAs."""
|
|
return cls.GetRootAs(buf, offset)
|
|
# WeekDungeonGroupBuffExcel
|
|
def Init(self, buf, pos):
|
|
self._tab = flatbuffers.table.Table(buf, pos)
|
|
|
|
# WeekDungeonGroupBuffExcel
|
|
def WeekDungeonBuffId(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
|
|
|
|
# WeekDungeonGroupBuffExcel
|
|
def School_(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
|
|
if o != 0:
|
|
return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
|
|
return 0
|
|
|
|
# WeekDungeonGroupBuffExcel
|
|
def RecommandLocalizeEtcId(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
|
|
if o != 0:
|
|
return self._tab.Get(flatbuffers.number_types.Uint32Flags, o + self._tab.Pos)
|
|
return 0
|
|
|
|
# WeekDungeonGroupBuffExcel
|
|
def FormationLocalizeEtcId(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
|
|
|
|
# WeekDungeonGroupBuffExcel
|
|
def SkillGroupId(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
|
|
if o != 0:
|
|
return self._tab.String(o + self._tab.Pos)
|
|
return None
|
|
|
|
def Start(builder): builder.StartObject(5)
|
|
def WeekDungeonGroupBuffExcelStart(builder):
|
|
"""This method is deprecated. Please switch to Start."""
|
|
return Start(builder)
|
|
def AddWeekDungeonBuffId(builder, WeekDungeonBuffId): builder.PrependInt64Slot(0, WeekDungeonBuffId, 0)
|
|
def WeekDungeonGroupBuffExcelAddWeekDungeonBuffId(builder, WeekDungeonBuffId):
|
|
"""This method is deprecated. Please switch to AddWeekDungeonBuffId."""
|
|
return AddWeekDungeonBuffId(builder, WeekDungeonBuffId)
|
|
def AddSchool_(builder, School_): builder.PrependInt32Slot(1, School_, 0)
|
|
def WeekDungeonGroupBuffExcelAddSchool_(builder, School_):
|
|
"""This method is deprecated. Please switch to AddSchool_."""
|
|
return AddSchool_(builder, School_)
|
|
def AddRecommandLocalizeEtcId(builder, RecommandLocalizeEtcId): builder.PrependUint32Slot(2, RecommandLocalizeEtcId, 0)
|
|
def WeekDungeonGroupBuffExcelAddRecommandLocalizeEtcId(builder, RecommandLocalizeEtcId):
|
|
"""This method is deprecated. Please switch to AddRecommandLocalizeEtcId."""
|
|
return AddRecommandLocalizeEtcId(builder, RecommandLocalizeEtcId)
|
|
def AddFormationLocalizeEtcId(builder, FormationLocalizeEtcId): builder.PrependUint32Slot(3, FormationLocalizeEtcId, 0)
|
|
def WeekDungeonGroupBuffExcelAddFormationLocalizeEtcId(builder, FormationLocalizeEtcId):
|
|
"""This method is deprecated. Please switch to AddFormationLocalizeEtcId."""
|
|
return AddFormationLocalizeEtcId(builder, FormationLocalizeEtcId)
|
|
def AddSkillGroupId(builder, SkillGroupId): builder.PrependUOffsetTRelativeSlot(4, flatbuffers.number_types.UOffsetTFlags.py_type(SkillGroupId), 0)
|
|
def WeekDungeonGroupBuffExcelAddSkillGroupId(builder, SkillGroupId):
|
|
"""This method is deprecated. Please switch to AddSkillGroupId."""
|
|
return AddSkillGroupId(builder, SkillGroupId)
|
|
def End(builder): return builder.EndObject()
|
|
def WeekDungeonGroupBuffExcelEnd(builder):
|
|
"""This method is deprecated. Please switch to End."""
|
|
return End(builder) |