EvilEngine/TIMR: Difference between revisions
Content added Content deleted
Battlepedia>Seil (→Format) |
m (Seil moved page TIMR to EvilEngine/TIMR) |
||
(7 intermediate revisions by 3 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 [[ |
Timers are [[Base|base assets]], so they start with their 0x8 byte header, then are followed by: |
||
{| class="wikitable" |
{| class="wikitable" |
||
Line 13: | Line 18: | ||
| 0x08 || float || '''seconds''' || The starting time in seconds. |
| 0x08 || float || '''seconds''' || The starting time in seconds. |
||
|- |
|- |
||
| 0x0C || float || '''randomRange''' || 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="4" | Events |
! colspan="4" | 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 | |
Type | Base |
Base Type | 0x0E |
Games used | Night of 100 Frights Battle for Bikini Bottom |
Source code | xTimer.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