EvilEngine/TIMR: Difference between revisions
Content added Content deleted
Battlepedia>Igorseabra4 No edit summary |
m (Seil moved page TIMR to EvilEngine/TIMR) |
||
(10 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude> |
|||
{{#vardefine:typeid|TIMR}}<nowiki/> |
|||
{{#vardefine:name|Timer}}<nowiki/> |
|||
{{#vardefine:type|[[Base]]}}<nowiki/> |
|||
{{#vardefine:basetype|0x0E}}<nowiki/> |
|||
{{#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 [[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 || |
| 0x08 || float || '''seconds''' || The starting time in seconds. |
||
|- |
|- |
||
| 0x0C || float || |
| 0x0C || float || '''randomRange''' || Stored in little endian. Only present if numberOfEvents > 0. Not present in Scooby. |
||
|- |
|- |
||
! colspan=" |
! colspan="4" | Events |
||
|- |
|- |
||
| 0x10 || Event[numberOfEvents] || '''[[Events]]''' |
| 0x10 || Event[numberOfEvents] || '''[[Events]]''' || |
||
|- |
|- |
||
|} |
|} |
||
Line 20: | 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