blob: 3c4776ef8280df3109b0afcacfc44c51c932dae8 [file] [log] [blame]
Austin Schuhe89fa2d2019-08-14 20:24:23 -07001# automatically generated by the FlatBuffers compiler, do not modify
2
3# namespace: Example
4
5import flatbuffers
6
7class Ability(object):
8 __slots__ = ['_tab']
9
10 # Ability
11 def Init(self, buf, pos):
12 self._tab = flatbuffers.table.Table(buf, pos)
13
14 # Ability
15 def Id(self): return self._tab.Get(flatbuffers.number_types.Uint32Flags, self._tab.Pos + flatbuffers.number_types.UOffsetTFlags.py_type(0))
16 # Ability
17 def Distance(self): return self._tab.Get(flatbuffers.number_types.Uint32Flags, self._tab.Pos + flatbuffers.number_types.UOffsetTFlags.py_type(4))
18
19def CreateAbility(builder, id, distance):
20 builder.Prep(4, 8)
21 builder.PrependUint32(distance)
22 builder.PrependUint32(id)
23 return builder.Offset()