EvilEngine/GRUP: Difference between revisions

m
Seil moved page GRUP to EvilEngine/GRUP
Battlepedia>Seil
m (Seil moved page GRUP to EvilEngine/GRUP)
 
(9 intermediate revisions by 3 users not shown)
Line 1:
<onlyinclude>
{{#vardefine:typeid|GRUP}}<nowiki/>
{{#vardefine:name|Group}}<nowiki/>
{{#vardefine:type|[[Base]]}}<nowiki/>
{{#vardefine:basetype|0x11}}<nowiki/>
{{#vardefine:games|Scooby BFBB TSSM Incredibles ROTU RatProto}}<nowiki/>
{{#vardefine:sourcecode|[https://github.com/bfbbdecomp/bfbb/blob/master/src/Core/x/xGroup.h xGroup.h]}}<nowiki/>
{{#vardefine:image|}}<nowiki/>
</onlyinclude>
{{AutoAssetInfobox}}
 
This asset groups an amount of other assets. It's used, for example, to make [[Duplicatotron 3000|duplicatotrons]] function.
 
==Format==
Groups are [[Object AssetBase|objectbase assets]], so they start with their 0x8 byte header, then are followed by:
 
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x08 || short || '''itemCount''' ||
|-
| 0x0A || short || '''delegationModegroupFlags''' -|| what to do with an event when it is received.
 
* 0 - send to all items
Line 15 ⟶ 26:
* 2 - send to 1st item, then 2nd, then 3rd, etc.
|-
| 0x0C || [[AssetID]][itemCount] || unknown || List of asset IDs for each item in the group.
|-
! colspan="34" | Events
|-
| - || Event[numberOfEvents] || '''[[Events]]''' -|| can GRUP receive/send events?
|}
 
{{Assets}}
{{AutoGameNavs}}
 
[[Category:Asset]]