EvilEngine/TIMR: Difference between revisions

From Heavy Iron Modding
Content added Content deleted
Battlepedia>Seil
No edit summary
m (Seil moved page TIMR to EvilEngine/TIMR)
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<onlyinclude>
{{AssetInfobox
{{#vardefine:typeid|TIMR}}<nowiki/>
|subtitle=Timer
{{#vardefine:name|Timer}}<nowiki/>
|type=[[Object]]
{{#vardefine:type|[[Base]]}}<nowiki/>
|objectid=0x0E
{{#vardefine:basetype|0x0E}}<nowiki/>
|games=Night of 100 Frights<br>Battle for Bikini Bottom<br>The SpongeBob SquarePants Movie<br>The Incredibles<br>Rise of the Underminer}}
{{#vardefine:games|Scooby BFBB TSSM Incredibles ROTU RatProto}}<nowiki/>
{{#vardefine:sourcecode|[https://github.com/bfbbdecomp/bfbb/blob/master/src/Core/x/xTimer.h xTimer.h]}}<nowiki/>
{{#vardefine:image|}}<nowiki/>
</onlyinclude>
{{AutoAssetInfobox}}


==Format==
==Format==
Timers are [[Object Asset|object assets]], so they start with their 0x8 byte header, then are followed by:
Timers are [[Base|base assets]], so they start with their 0x8 byte header, then are followed by:


{| class="wikitable"
{| class="wikitable"
! Offset !! Type !! Description
! Offset !! Type !! Variable !! Description
|-
|-
| 0x08 || float || Time - The starting time in seconds.
| 0x08 || float || '''seconds''' || The starting time in seconds.
|-
|-
| 0x0C || float || Unknown - Stored in little endian. Only present if numberOfEvents > 0.
| 0x0C || float || '''randomRange''' || Stored in little endian. Only present if numberOfEvents > 0. Not present in Scooby.
|-
|-
! colspan="3" | Events
! colspan="4" | Events
|-
|-
| 0x10 || Event[numberOfEvents] || '''[[Events]]'''
| 0x10 || Event[numberOfEvents] || '''[[Events]]''' ||
|-
|-
|}
|}
Line 26: Line 31:
* Stop
* Stop
* Expired
* Expired

{{Assets}}
{{AutoGameNavs}}


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

Latest revision as of 22:57, 15 September 2022

TIMR
Timer
TypeBase
Base Type0x0E
Games usedNight of 100 Frights

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

Ratatouille Prototype
Source codexTimer.h

Format

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

Offset Type Variable Description
0x08 float seconds The starting time in seconds.
0x0C float randomRange Stored in little endian. Only present if numberOfEvents > 0. Not present in Scooby.
Events
0x10 Event[numberOfEvents] Events

Events

  • Reset
  • Run
  • Stop
  • Expired