This repository has been archived on 2025-04-28. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Blue-Archive---Asset-Downlo…/FlatData/ScenarioBGName_GlobalExcel.py
K0lb3 16d6d3f877 flatbuf decoder added
integrated into extract_tables
2021-11-12 23:14:45 +01:00

100 lines
4.1 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 ScenarioBGName_GlobalExcel(object):
__slots__ = ['_tab']
@classmethod
def GetRootAs(cls, buf, offset=0):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = ScenarioBGName_GlobalExcel()
x.Init(buf, n + offset)
return x
@classmethod
def GetRootAsScenarioBGName_GlobalExcel(cls, buf, offset=0):
"""This method is deprecated. Please switch to GetRootAs."""
return cls.GetRootAs(buf, offset)
# ScenarioBGName_GlobalExcel
def Init(self, buf, pos):
self._tab = flatbuffers.table.Table(buf, pos)
# ScenarioBGName_GlobalExcel
def GroupName(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
if o != 0:
return self._tab.Get(flatbuffers.number_types.Uint32Flags, o + self._tab.Pos)
return 0
# ScenarioBGName_GlobalExcel
def NameKr(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
if o != 0:
return self._tab.Get(flatbuffers.number_types.Uint32Flags, o + self._tab.Pos)
return 0
# ScenarioBGName_GlobalExcel
def NameTw(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
# ScenarioBGName_GlobalExcel
def NameAsia(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
# ScenarioBGName_GlobalExcel
def NameNa(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
if o != 0:
return self._tab.Get(flatbuffers.number_types.Uint32Flags, o + self._tab.Pos)
return 0
# ScenarioBGName_GlobalExcel
def NameGlobal(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
if o != 0:
return self._tab.Get(flatbuffers.number_types.Uint32Flags, o + self._tab.Pos)
return 0
def Start(builder): builder.StartObject(6)
def ScenarioBGName_GlobalExcelStart(builder):
"""This method is deprecated. Please switch to Start."""
return Start(builder)
def AddGroupName(builder, GroupName): builder.PrependUint32Slot(0, GroupName, 0)
def ScenarioBGName_GlobalExcelAddGroupName(builder, GroupName):
"""This method is deprecated. Please switch to AddGroupName."""
return AddGroupName(builder, GroupName)
def AddNameKr(builder, NameKr): builder.PrependUint32Slot(1, NameKr, 0)
def ScenarioBGName_GlobalExcelAddNameKr(builder, NameKr):
"""This method is deprecated. Please switch to AddNameKr."""
return AddNameKr(builder, NameKr)
def AddNameTw(builder, NameTw): builder.PrependUint32Slot(2, NameTw, 0)
def ScenarioBGName_GlobalExcelAddNameTw(builder, NameTw):
"""This method is deprecated. Please switch to AddNameTw."""
return AddNameTw(builder, NameTw)
def AddNameAsia(builder, NameAsia): builder.PrependUint32Slot(3, NameAsia, 0)
def ScenarioBGName_GlobalExcelAddNameAsia(builder, NameAsia):
"""This method is deprecated. Please switch to AddNameAsia."""
return AddNameAsia(builder, NameAsia)
def AddNameNa(builder, NameNa): builder.PrependUint32Slot(4, NameNa, 0)
def ScenarioBGName_GlobalExcelAddNameNa(builder, NameNa):
"""This method is deprecated. Please switch to AddNameNa."""
return AddNameNa(builder, NameNa)
def AddNameGlobal(builder, NameGlobal): builder.PrependUint32Slot(5, NameGlobal, 0)
def ScenarioBGName_GlobalExcelAddNameGlobal(builder, NameGlobal):
"""This method is deprecated. Please switch to AddNameGlobal."""
return AddNameGlobal(builder, NameGlobal)
def End(builder): return builder.EndObject()
def ScenarioBGName_GlobalExcelEnd(builder):
"""This method is deprecated. Please switch to End."""
return End(builder)