Browse Source

Make Type a subclass of LittleEndianSignedInt32

pull/14/head
Richard Neumann 3 years ago
parent
commit
3441ac5247
  1. 2
      rcon/source/proto.py

2
rcon/source/proto.py

@ -46,7 +46,7 @@ class LittleEndianSignedInt32(int):
return cls.from_bytes(file.read(4), 'little', signed=True)
class Type(Enum):
class Type(LittleEndianSignedInt32, Enum):
"""RCON packet types."""
SERVERDATA_AUTH = LittleEndianSignedInt32(3)

Loading…
Cancel
Save