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
89 lines
3.6 KiB
Python
89 lines
3.6 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 ProtocolSettingExcel(object):
|
|
__slots__ = ['_tab']
|
|
|
|
@classmethod
|
|
def GetRootAs(cls, buf, offset=0):
|
|
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
|
x = ProtocolSettingExcel()
|
|
x.Init(buf, n + offset)
|
|
return x
|
|
|
|
@classmethod
|
|
def GetRootAsProtocolSettingExcel(cls, buf, offset=0):
|
|
"""This method is deprecated. Please switch to GetRootAs."""
|
|
return cls.GetRootAs(buf, offset)
|
|
# ProtocolSettingExcel
|
|
def Init(self, buf, pos):
|
|
self._tab = flatbuffers.table.Table(buf, pos)
|
|
|
|
# ProtocolSettingExcel
|
|
def Protocol(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
|
|
if o != 0:
|
|
return self._tab.String(o + self._tab.Pos)
|
|
return None
|
|
|
|
# ProtocolSettingExcel
|
|
def OpenConditionContent_(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
|
|
|
|
# ProtocolSettingExcel
|
|
def Currency(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
|
|
if o != 0:
|
|
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
return False
|
|
|
|
# ProtocolSettingExcel
|
|
def Inventory(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
|
|
|
|
# ProtocolSettingExcel
|
|
def Mail(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
|
|
if o != 0:
|
|
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
return False
|
|
|
|
def Start(builder): builder.StartObject(5)
|
|
def ProtocolSettingExcelStart(builder):
|
|
"""This method is deprecated. Please switch to Start."""
|
|
return Start(builder)
|
|
def AddProtocol(builder, Protocol): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(Protocol), 0)
|
|
def ProtocolSettingExcelAddProtocol(builder, Protocol):
|
|
"""This method is deprecated. Please switch to AddProtocol."""
|
|
return AddProtocol(builder, Protocol)
|
|
def AddOpenConditionContent_(builder, OpenConditionContent_): builder.PrependInt32Slot(1, OpenConditionContent_, 0)
|
|
def ProtocolSettingExcelAddOpenConditionContent_(builder, OpenConditionContent_):
|
|
"""This method is deprecated. Please switch to AddOpenConditionContent_."""
|
|
return AddOpenConditionContent_(builder, OpenConditionContent_)
|
|
def AddCurrency(builder, Currency): builder.PrependBoolSlot(2, Currency, 0)
|
|
def ProtocolSettingExcelAddCurrency(builder, Currency):
|
|
"""This method is deprecated. Please switch to AddCurrency."""
|
|
return AddCurrency(builder, Currency)
|
|
def AddInventory(builder, Inventory): builder.PrependBoolSlot(3, Inventory, 0)
|
|
def ProtocolSettingExcelAddInventory(builder, Inventory):
|
|
"""This method is deprecated. Please switch to AddInventory."""
|
|
return AddInventory(builder, Inventory)
|
|
def AddMail(builder, Mail): builder.PrependBoolSlot(4, Mail, 0)
|
|
def ProtocolSettingExcelAddMail(builder, Mail):
|
|
"""This method is deprecated. Please switch to AddMail."""
|
|
return AddMail(builder, Mail)
|
|
def End(builder): return builder.EndObject()
|
|
def ProtocolSettingExcelEnd(builder):
|
|
"""This method is deprecated. Please switch to End."""
|
|
return End(builder) |