Files
BA-AD/baad/FlatData/MoveEnd.py
Deathemonic 2386ae982d fix: importing
- typo fix at main
- added __all__ at flatdata init
- added missing type hints
- fix formatting
- table service now uses pathlib
- set unused progress to a private variable
- added proper error handling when extracting (probaly need to refactor it)
- fix path not recognizing as path at table extractor
- change the extracting progress bar to one instead of the download like progress bar
2024-07-14 03:50:50 +08:00

79 lines
2.8 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 MoveEnd(object):
__slots__ = ['_tab']
@classmethod
def GetRootAs(cls, buf, offset=0):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = MoveEnd()
x.Init(buf, n + offset)
return x
@classmethod
def GetRootAsMoveEnd(cls, buf, offset=0):
"""This method is deprecated. Please switch to GetRootAs."""
return cls.GetRootAs(buf, offset)
# MoveEnd
def Init(self, buf, pos):
self._tab = flatbuffers.table.Table(buf, pos)
# MoveEnd
def Normal(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
if o != 0:
x = self._tab.Indirect(o + self._tab.Pos)
from ..FlatData.Motion import Motion
obj = Motion()
obj.Init(self._tab.Bytes, x)
return obj
return None
# MoveEnd
def Stand(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
if o != 0:
x = self._tab.Indirect(o + self._tab.Pos)
from ..FlatData.Motion import Motion
obj = Motion()
obj.Init(self._tab.Bytes, x)
return obj
return None
# MoveEnd
def Kneel(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
if o != 0:
x = self._tab.Indirect(o + self._tab.Pos)
from ..FlatData.Motion import Motion
obj = Motion()
obj.Init(self._tab.Bytes, x)
return obj
return None
def Start(builder): builder.StartObject(3)
def MoveEndStart(builder):
"""This method is deprecated. Please switch to Start."""
return Start(builder)
def AddNormal(builder, Normal): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(Normal), 0)
def MoveEndAddNormal(builder, Normal):
"""This method is deprecated. Please switch to AddNormal."""
return AddNormal(builder, Normal)
def AddStand(builder, Stand): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(Stand), 0)
def MoveEndAddStand(builder, Stand):
"""This method is deprecated. Please switch to AddStand."""
return AddStand(builder, Stand)
def AddKneel(builder, Kneel): builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(Kneel), 0)
def MoveEndAddKneel(builder, Kneel):
"""This method is deprecated. Please switch to AddKneel."""
return AddKneel(builder, Kneel)
def End(builder): return builder.EndObject()
def MoveEndEnd(builder):
"""This method is deprecated. Please switch to End."""
return End(builder)