from enum import Enum

class OpCodes(Enum):
    TERMINATE = 0x00000000
    SIMULATE = 0x00000001
    AGENT_CREATE = 0x01000000
    AGENT_DELETE = 0x01000001
    AGENT_CURRENT_NODE = 0x01100000
    AGENT_PREV_NODE =  0x01100001
    AGENT_ORIENTATION = 0x01100004
    AERIAL_AGENT_POSITION = 0x01100005
    AERIAL_AGENT_QUATERNION = 0x01100006
    AGENT_SENSOR_REGISTER = 0x01100002
    AGENT_SENSOR_DEREGISTER = 0x01100003
    COMPONENT_REGISTER = 0x02000000
    COMPONENT_CREATE = 0x02000001
    COMPONENT_UPDATE = 0x02000002
    COMPONENT_DELETE = 0x02000003
    COMPONENT_UNREGISTER = 0x02000004

MAGIC_NUMBER = 0x4D4D4752.to_bytes(4, 'big')
VERSION = 0x00000002.to_bytes(4, 'big')