forked from ascendedguard/sc2replay-csharp
-
Notifications
You must be signed in to change notification settings - Fork 0
ReplayAttribute
ascendedguard edited this page Dec 5, 2010
·
2 revisions
A ReplayAttribute contains a header, ID, player ID, and it's value. All values appear to be in little-endian byte order, whether they are int values or string values. As a result, string values should have the byte[] reversed before converting to a string.
Data values and strings are always zero-padded to fill in the full 4 byte size.
To see a list of known data values, phpsc2replay has several documented, although documentation should eventually be moved into this wiki.
Field Name | Type | Count | Comments |
attributeHeader | int32 | x 1 | Always E7 03 00 00 |
attributeId | int32 | x 1 | Little-endian. Identifies the purpose of the attribute. |
playerId | byte | x 1 | Identifies the player the attribute applies to, starting at index 1. |
attributeValue | byte | x 4 | Little-endian. Can be either a string or int32, but will always be 4 bytes. Strings should have the array reversed before converting. |