forked from ggtracker/sc2reader
-
Notifications
You must be signed in to change notification settings - Fork 85
Player action events release
Graylin Kim edited this page Jan 18, 2012
·
1 revision
Player Action Event Information for builds < 16561. For documentation on builds > 16561 see the 16561 page.
No additional data associated with this event.
The first data byte here acts as an indicator of what type of hotkey event this is:
No data associated with this event
No data associated with this event
This implies that a unit has died, morphed, or is no longer selectable. Possibly that you added units with Shift+Control.
An additional second byte provides another indicator to be used later.
The first 5 bits of the first byte indicate how many bytes following the second should be skipped.
The remaining logic flows as follows:
extras = first >> 3 #Shift off 3 bits to get the first 5 second = bytes.getBigInt(1) #Get the next byte indicator bytes.skip(extras) #Skip the extra bytes if first & 0x04: bytes.skip(1) if second & 0x06 == 0x06: bytes.skip(1)