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
100 lines
4.4 KiB
Python
100 lines
4.4 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 TacticTimeAttackSimulatorConfigExcel(object):
|
|
__slots__ = ['_tab']
|
|
|
|
@classmethod
|
|
def GetRootAs(cls, buf, offset=0):
|
|
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
|
x = TacticTimeAttackSimulatorConfigExcel()
|
|
x.Init(buf, n + offset)
|
|
return x
|
|
|
|
@classmethod
|
|
def GetRootAsTacticTimeAttackSimulatorConfigExcel(cls, buf, offset=0):
|
|
"""This method is deprecated. Please switch to GetRootAs."""
|
|
return cls.GetRootAs(buf, offset)
|
|
# TacticTimeAttackSimulatorConfigExcel
|
|
def Init(self, buf, pos):
|
|
self._tab = flatbuffers.table.Table(buf, pos)
|
|
|
|
# TacticTimeAttackSimulatorConfigExcel
|
|
def Order(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
|
|
|
|
# TacticTimeAttackSimulatorConfigExcel
|
|
def Repeat(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
|
|
|
|
# TacticTimeAttackSimulatorConfigExcel
|
|
def PresetGroupId(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
|
|
|
|
# TacticTimeAttackSimulatorConfigExcel
|
|
def AttackStrikerNum(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
|
|
|
|
# TacticTimeAttackSimulatorConfigExcel
|
|
def AttackSpecialNum(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
|
|
if o != 0:
|
|
return self._tab.Get(flatbuffers.number_types.Int64Flags, o + self._tab.Pos)
|
|
return 0
|
|
|
|
# TacticTimeAttackSimulatorConfigExcel
|
|
def GeasId(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
|
|
if o != 0:
|
|
return self._tab.Get(flatbuffers.number_types.Int64Flags, o + self._tab.Pos)
|
|
return 0
|
|
|
|
def Start(builder): builder.StartObject(6)
|
|
def TacticTimeAttackSimulatorConfigExcelStart(builder):
|
|
"""This method is deprecated. Please switch to Start."""
|
|
return Start(builder)
|
|
def AddOrder(builder, Order): builder.PrependInt64Slot(0, Order, 0)
|
|
def TacticTimeAttackSimulatorConfigExcelAddOrder(builder, Order):
|
|
"""This method is deprecated. Please switch to AddOrder."""
|
|
return AddOrder(builder, Order)
|
|
def AddRepeat(builder, Repeat): builder.PrependInt64Slot(1, Repeat, 0)
|
|
def TacticTimeAttackSimulatorConfigExcelAddRepeat(builder, Repeat):
|
|
"""This method is deprecated. Please switch to AddRepeat."""
|
|
return AddRepeat(builder, Repeat)
|
|
def AddPresetGroupId(builder, PresetGroupId): builder.PrependInt64Slot(2, PresetGroupId, 0)
|
|
def TacticTimeAttackSimulatorConfigExcelAddPresetGroupId(builder, PresetGroupId):
|
|
"""This method is deprecated. Please switch to AddPresetGroupId."""
|
|
return AddPresetGroupId(builder, PresetGroupId)
|
|
def AddAttackStrikerNum(builder, AttackStrikerNum): builder.PrependInt64Slot(3, AttackStrikerNum, 0)
|
|
def TacticTimeAttackSimulatorConfigExcelAddAttackStrikerNum(builder, AttackStrikerNum):
|
|
"""This method is deprecated. Please switch to AddAttackStrikerNum."""
|
|
return AddAttackStrikerNum(builder, AttackStrikerNum)
|
|
def AddAttackSpecialNum(builder, AttackSpecialNum): builder.PrependInt64Slot(4, AttackSpecialNum, 0)
|
|
def TacticTimeAttackSimulatorConfigExcelAddAttackSpecialNum(builder, AttackSpecialNum):
|
|
"""This method is deprecated. Please switch to AddAttackSpecialNum."""
|
|
return AddAttackSpecialNum(builder, AttackSpecialNum)
|
|
def AddGeasId(builder, GeasId): builder.PrependInt64Slot(5, GeasId, 0)
|
|
def TacticTimeAttackSimulatorConfigExcelAddGeasId(builder, GeasId):
|
|
"""This method is deprecated. Please switch to AddGeasId."""
|
|
return AddGeasId(builder, GeasId)
|
|
def End(builder): return builder.EndObject()
|
|
def TacticTimeAttackSimulatorConfigExcelEnd(builder):
|
|
"""This method is deprecated. Please switch to End."""
|
|
return End(builder) |