2017-08-24 19:55:35 +00:00
|
|
|
# automatically generated by the FlatBuffers compiler, do not modify
|
|
|
|
|
|
|
|
# namespace: MyGame
|
|
|
|
|
|
|
|
import flatbuffers
|
2019-12-02 22:11:28 +00:00
|
|
|
from flatbuffers.compat import import_numpy
|
|
|
|
np = import_numpy()
|
2017-08-24 19:55:35 +00:00
|
|
|
|
|
|
|
class InParentNamespace(object):
|
|
|
|
__slots__ = ['_tab']
|
|
|
|
|
|
|
|
@classmethod
|
2021-01-28 20:35:37 +00:00
|
|
|
def GetRootAs(cls, buf, offset=0):
|
2017-08-24 19:55:35 +00:00
|
|
|
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
|
|
|
x = InParentNamespace()
|
|
|
|
x.Init(buf, n + offset)
|
|
|
|
return x
|
|
|
|
|
2019-07-26 18:06:25 +00:00
|
|
|
@classmethod
|
2021-01-28 20:35:37 +00:00
|
|
|
def GetRootAsInParentNamespace(cls, buf, offset=0):
|
|
|
|
"""This method is deprecated. Please switch to GetRootAs."""
|
|
|
|
return cls.GetRootAs(buf, offset)
|
|
|
|
@classmethod
|
2019-07-26 18:06:25 +00:00
|
|
|
def InParentNamespaceBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
|
|
|
|
return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x4D\x4F\x4E\x53", size_prefixed=size_prefixed)
|
|
|
|
|
2017-08-24 19:55:35 +00:00
|
|
|
# InParentNamespace
|
|
|
|
def Init(self, buf, pos):
|
|
|
|
self._tab = flatbuffers.table.Table(buf, pos)
|
|
|
|
|
2023-04-26 04:38:16 +00:00
|
|
|
def InParentNamespaceStart(builder):
|
2023-04-28 16:38:29 +00:00
|
|
|
builder.StartObject(0)
|
2023-04-26 04:38:16 +00:00
|
|
|
|
2021-11-04 22:12:25 +00:00
|
|
|
def Start(builder):
|
2023-04-28 16:38:29 +00:00
|
|
|
InParentNamespaceStart(builder)
|
2023-04-26 04:38:16 +00:00
|
|
|
|
|
|
|
def InParentNamespaceEnd(builder):
|
|
|
|
return builder.EndObject()
|
|
|
|
|
2021-11-04 22:12:25 +00:00
|
|
|
def End(builder):
|
|
|
|
return InParentNamespaceEnd(builder)
|
2019-12-02 22:11:28 +00:00
|
|
|
|
2023-04-26 04:38:16 +00:00
|
|
|
|
2019-12-02 22:11:28 +00:00
|
|
|
class InParentNamespaceT(object):
|
|
|
|
|
|
|
|
# InParentNamespaceT
|
|
|
|
def __init__(self):
|
|
|
|
pass
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def InitFromBuf(cls, buf, pos):
|
|
|
|
inParentNamespace = InParentNamespace()
|
2022-10-26 21:56:52 +00:00
|
|
|
inParentNamespace.Init(buf, pos)
|
2019-12-02 22:11:28 +00:00
|
|
|
return cls.InitFromObj(inParentNamespace)
|
|
|
|
|
2022-10-26 21:56:52 +00:00
|
|
|
@classmethod
|
|
|
|
def InitFromPackedBuf(cls, buf, pos=0):
|
|
|
|
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, pos)
|
|
|
|
return cls.InitFromBuf(buf, pos+n)
|
|
|
|
|
2019-12-02 22:11:28 +00:00
|
|
|
@classmethod
|
|
|
|
def InitFromObj(cls, inParentNamespace):
|
|
|
|
x = InParentNamespaceT()
|
|
|
|
x._UnPack(inParentNamespace)
|
|
|
|
return x
|
|
|
|
|
|
|
|
# InParentNamespaceT
|
|
|
|
def _UnPack(self, inParentNamespace):
|
|
|
|
if inParentNamespace is None:
|
|
|
|
return
|
|
|
|
|
|
|
|
# InParentNamespaceT
|
|
|
|
def Pack(self, builder):
|
2021-11-04 22:12:25 +00:00
|
|
|
InParentNamespaceStart(builder)
|
|
|
|
inParentNamespace = InParentNamespaceEnd(builder)
|
2019-12-02 22:11:28 +00:00
|
|
|
return inParentNamespace
|