Skip to content

Instantly share code, notes, and snippets.

@TkTech
Created December 21, 2010 00:23
Show Gist options
  • Save TkTech/749288 to your computer and use it in GitHub Desktop.
Save TkTech/749288 to your computer and use it in GitHub Desktop.
#
# defines.py
# pymc
#
# Created by Tyler Kennedy on 2010-12-20.
# Copyright 2010 Tyler Kennedy. All rights reserved.
#
from pymc.core.enum import Enum
PacketType = Enum({
'Login': 0x01,
'Handshake': 0x02,
'Chat': 0x03,
'Time': 0x04,
'Inventory': 0x05,
'Spawn': 0x06,
'Unknown1': 0x07,
'Health': 0x08,
'Respawn': 0x09,
'MobSpawn': 0x18,
'Kick': 0xFF
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment