EvilEngine/GRUP: Difference between revisions

From Heavy Iron Modding
Content added Content deleted
Battlepedia>Igorseabra4
No edit summary
Battlepedia>Seil
Line 9: Line 9:
| 0x08 || short || '''itemCount'''
| 0x08 || short || '''itemCount'''
|-
|-
| 0x0A || short || unknown: always 0, 1, or 2.
| 0x0A || short || '''delegationMode''' - what to do with an event when it is received.

* 0 - send to all items
* 1 - send to a random item
* 2 - send to 1st item, then 2nd, then 3rd, etc.
|-
|-
| 0x0C || [[AssetID]][itemCount] || List of asset IDs for each item in the group.
| 0x0C || [[AssetID]][itemCount] || List of asset IDs for each item in the group.

Revision as of 21:06, 3 October 2018

This asset groups an amount of other assets. It's used, for example, to make duplicatotrons function.

Format

Groups are object assets, so they start with their 0x8 byte header, then are followed by:

Offset Type Description
0x08 short itemCount
0x0A short delegationMode - what to do with an event when it is received.
  • 0 - send to all items
  • 1 - send to a random item
  • 2 - send to 1st item, then 2nd, then 3rd, etc.
0x0C AssetID[itemCount] List of asset IDs for each item in the group.
Events
- Event[numberOfEvents] Events - can GRUP receive/send events?