EvilEngine/DPAT: Difference between revisions

Battlepedia>Igorseabra4
(Created page with "DPAT refers to a dispatcher, an asset whose only purpose is to trigger events in other assets. Once enabled, they start receiving the ScenePrepare event automatically and perm...")
 
m (Seil moved page DPAT to EvilEngine/DPAT)
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<onlyinclude>
{{#vardefine:typeid|DPAT}}<nowiki/>
{{#vardefine:name|Dispatcher}}<nowiki/>
{{#vardefine:type|[[Base]]}}<nowiki/>
{{#vardefine:basetype|0x1E}}<nowiki/>
{{#vardefine:games|Scooby BFBB TSSM Incredibles ROTU RatProto}}<nowiki/>
{{#vardefine:sourcecode|[https://github.com/bfbbdecomp/bfbb/blob/master/src/Game/zDispatcher.h zDispatcher.h]}}<nowiki/>
{{#vardefine:image|}}<nowiki/>
</onlyinclude>
{{AutoAssetInfobox}}

DPAT refers to a dispatcher, an asset whose only purpose is to trigger events in other assets. Once enabled, they start receiving the ScenePrepare event automatically and permanently on level start.
DPAT refers to a dispatcher, an asset whose only purpose is to trigger events in other assets. Once enabled, they start receiving the ScenePrepare event automatically and permanently on level start.


===Format===
===Format===
Dispatchers are [[Object Asset|object assets]], so they start with their 0x8 byte header, and are immediately followed by the events.
Dispatchers are [[Base|base assets]], so they start with their 0x8 byte header, and are immediately followed by the events.


{| class="wikitable"
{| class="wikitable"
Line 11: Line 22:
| 0x8 || Event[numberOfEvents] || '''[[Events]]'''
| 0x8 || Event[numberOfEvents] || '''[[Events]]'''
|}
|}

===Events===
====Credits start====
Parameters:
* Widget asset - [[CRDT|Credits]]

Start displaying a Credits asset. This dispatcher will be set as the "parent" of the credits.

====Credits stop====
Stop displaying the current Credits asset.

====Credits ended====
If this dispatcher is the parent of the currently running credits, it will receive this event when the credits have finished.

{{Assets}}
{{AutoGameNavs}}


[[Category:Asset]]
[[Category:Asset]]

Latest revision as of 22:37, 15 September 2022

DPAT refers to a dispatcher, an asset whose only purpose is to trigger events in other assets. Once enabled, they start receiving the ScenePrepare event automatically and permanently on level start.

DPAT
Dispatcher
TypeBase
Base Type0x1E
Games usedNight of 100 Frights

Battle for Bikini Bottom
The SpongeBob SquarePants Movie
The Incredibles
Rise of the Underminer

Ratatouille Prototype
Source codezDispatcher.h

Format

Dispatchers are base assets, so they start with their 0x8 byte header, and are immediately followed by the events.

Offset Type Description
Events
0x8 Event[numberOfEvents] Events

Events

Credits start

Parameters:

Start displaying a Credits asset. This dispatcher will be set as the "parent" of the credits.

Credits stop

Stop displaying the current Credits asset.

Credits ended

If this dispatcher is the parent of the currently running credits, it will receive this event when the credits have finished.