mirror of
https://github.com/Deathemonic/BA-AD.git
synced 2025-07-29 03:37:24 +02:00

- bump dump file to support latest client 1.46.287264 - updated flatbuf generator to support lastest dump file - refactored table extracter
56 lines
2.0 KiB
Python
56 lines
2.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 TacticSkipExcel(object):
|
|
__slots__ = ['_tab']
|
|
|
|
@classmethod
|
|
def GetRootAs(cls, buf, offset=0):
|
|
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
|
x = TacticSkipExcel()
|
|
x.Init(buf, n + offset)
|
|
return x
|
|
|
|
@classmethod
|
|
def GetRootAsTacticSkipExcel(cls, buf, offset=0):
|
|
"""This method is deprecated. Please switch to GetRootAs."""
|
|
return cls.GetRootAs(buf, offset)
|
|
# TacticSkipExcel
|
|
def Init(self, buf, pos):
|
|
self._tab = flatbuffers.table.Table(buf, pos)
|
|
|
|
# TacticSkipExcel
|
|
def LevelDiff(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
|
|
if o != 0:
|
|
return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
|
|
return 0
|
|
|
|
# TacticSkipExcel
|
|
def HPResult(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
|
|
|
|
def Start(builder): builder.StartObject(2)
|
|
def TacticSkipExcelStart(builder):
|
|
"""This method is deprecated. Please switch to Start."""
|
|
return Start(builder)
|
|
def AddLevelDiff(builder, LevelDiff): builder.PrependInt32Slot(0, LevelDiff, 0)
|
|
def TacticSkipExcelAddLevelDiff(builder, LevelDiff):
|
|
"""This method is deprecated. Please switch to AddLevelDiff."""
|
|
return AddLevelDiff(builder, LevelDiff)
|
|
def AddHPResult(builder, HPResult): builder.PrependInt64Slot(1, HPResult, 0)
|
|
def TacticSkipExcelAddHPResult(builder, HPResult):
|
|
"""This method is deprecated. Please switch to AddHPResult."""
|
|
return AddHPResult(builder, HPResult)
|
|
def End(builder): return builder.EndObject()
|
|
def TacticSkipExcelEnd(builder):
|
|
"""This method is deprecated. Please switch to End."""
|
|
return End(builder) |