EvilEngine/ONEL: Difference between revisions

From Heavy Iron Modding
Content added Content deleted
(Created page with format)
 
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<onlyinclude>
{{AssetInfobox
{{#vardefine:typeid|ONEL}}<nowiki/>
|subtitle=One-Liner
{{#vardefine:name|One-Liner}}<nowiki/>
|type=[[Binary]]
{{#vardefine:type|[[Binary]]}}<nowiki/>
|games=The Incredibles}}
{{#vardefine:basetype|}}<nowiki/>
{{#vardefine:games|Incredibles}}<nowiki/>
{{#vardefine:sourcecode|}}<nowiki/>
{{#vardefine:image|}}<nowiki/>
</onlyinclude>
{{AutoAssetInfobox}}


==Format==
==Format==
===xOneLinerAsset===
<source lang=cpp>
class xOneLinerAsset
{
public:
unsigned int oneLinerPlayerCount;
xOneLiner player;
};
</source>


{| class="wikitable"
{| class="wikitable"
! Offset !! Type !! Variable !! Description
! Offset !! Type !! Variable !! Description
|-
|-
| 0x00 || [[SGRP]] || '''soundGroupNameHash''' || SoundGroup_AssetID
| 0x00 || u32 || '''oneLinerPlayerCount''' || Amount of entries.
|}

===xOneLiner===
<source lang=cpp>
class xOneLiner
{
public:
unsigned int m_soundGroupNameHash;
float m_fSoundStartDelay;
float m_fTimeSpan;
float m_fTimeLastPlayed;
unsigned int m_uNumPlays;
float m_fDelayBetweenPlays;
float m_fProbability;
float m_fDefaultDuration;
float m_fLastDuration;
unsigned int m_uMaxPlays;
iSndGroupHandle m_soundGroupHandle;
xOneLinerManager* m_pOLManager;
signed short m_eventType;
signed short m_bPlaysInMusicChannel;
BasicInform* m_pData;
ePlayerType m_playerType;
testerPlayer m_testerData;
};
</source>
<source lang=cpp>
enum ePlayerType
{
eALWAYS,
eCOUNTER,
eCHECKER,
eTESTER,
ePLAYER_TYPE_SIZE
};
</source>
<source lang=cpp>
class testerPlayer
{
public:
signed int firstParam;
float secondParam;
};
</source>

{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x00 || [[AssetID]] || '''m_soundGroupNameHash''' || [[SGRP]]
|-
| 0x04 || f32 || '''m_fSoundStartDelay''' ||
|-
|-
| 0x04 || float || '''SoundStartDelay''' ||
| 0x08 || f32 || '''m_fTimeSpan''' ||
|-
|-
| 0x08 || float || '''TimeSpan''' ||
| 0x0C || f32 || '''m_fTimeLastPlayed''' ||
|-
|-
| 0x0C || float || '''TimeLastPlayed''' ||
| 0x10 || u32 || '''m_uNumPlays''' || Number of plays.
|-
|-
| 0x10 || int || '''uNumPlays''' || Number of plays.
| 0x14 || f32 || '''m_fDelayBetweenPlays''' ||
|-
|-
| 0x14 || float || '''DelayBetweenPlays''' ||
| 0x18 || f32 || '''m_fProbability''' ||
|-
|-
| 0x18 || float || '''Probability''' ||
| 0x1C || f32 || '''m_fDefaultDuration''' ||
|-
|-
| 0x1C || float || '''DefaultDuration''' ||
| 0x20 || f32 || '''m_fLastDuration''' ||
|-
|-
| 0x20 || float || '''LastDuration''' ||
| 0x24 || u32 || '''m_uMaxPlays''' || Max amount of plays.
|-
|-
| 0x24 || int || '''uMaxPlays''' || Max amount of plays.
| 0x28 || iSndGroupHandle || '''m_soundGroupHandle''' ||
|-
|-
| 0x28 || iSndGroupHandle || '''soundGroupHandle''' ||
| 0x2C || xOneLinerManager || '''m_pOLManager''' ||
|-
|-
| 0x2C || xOneLinerManager || '''pOLManager''' ||
| 0x30 || s16 || '''m_eventType''' ||
|-
|-
| 0x30 || short || '''eventType''' ||
| 0x32 || s16 || '''m_bPlaysInMusicChannel''' ||
|-
|-
| 0x34 || short || '''bPlaysInMusicChannel''' ||
| 0x34 || BasicInform || '''m_pData''' ||
|-
|-
| 0x38 || BasicInform || '''pData''' ||
| 0x38 || ePlayerType || '''m_playerType''' ||
|-
|-
| 0x3C || ePlayerType || '''playerType''' ||
| 0x3C || s32 || '''firstParam''' ||
|-
|-
| 0x40 || testerPlayer || '''testerData''' ||
| 0x40 || f32 || '''secondParam''' ||
|}
|}


{{Assets}}
{{Assets}}
{{AutoGameNavs}}


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

Latest revision as of 00:45, 24 March 2024

ONEL
One-Liner
TypeBinary
Games usedThe Incredibles

Format

xOneLinerAsset

class xOneLinerAsset
{
public:
    unsigned int oneLinerPlayerCount;
    xOneLiner player;
};
Offset Type Variable Description
0x00 u32 oneLinerPlayerCount Amount of entries.

xOneLiner

class xOneLiner
{
public:
    unsigned int m_soundGroupNameHash;
    float m_fSoundStartDelay;
    float m_fTimeSpan;
    float m_fTimeLastPlayed;
    unsigned int m_uNumPlays;
    float m_fDelayBetweenPlays;
    float m_fProbability;
    float m_fDefaultDuration;
    float m_fLastDuration;
    unsigned int m_uMaxPlays;
    iSndGroupHandle m_soundGroupHandle;
    xOneLinerManager* m_pOLManager;
    signed short m_eventType;
    signed short m_bPlaysInMusicChannel;
    BasicInform* m_pData;
    ePlayerType m_playerType;
    testerPlayer m_testerData;
};
enum ePlayerType
{
    eALWAYS,
    eCOUNTER,
    eCHECKER,
    eTESTER,
    ePLAYER_TYPE_SIZE
};
class testerPlayer
{
public:
    signed int firstParam;
    float secondParam;
};
Offset Type Variable Description
0x00 AssetID m_soundGroupNameHash SGRP
0x04 f32 m_fSoundStartDelay
0x08 f32 m_fTimeSpan
0x0C f32 m_fTimeLastPlayed
0x10 u32 m_uNumPlays Number of plays.
0x14 f32 m_fDelayBetweenPlays
0x18 f32 m_fProbability
0x1C f32 m_fDefaultDuration
0x20 f32 m_fLastDuration
0x24 u32 m_uMaxPlays Max amount of plays.
0x28 iSndGroupHandle m_soundGroupHandle
0x2C xOneLinerManager m_pOLManager
0x30 s16 m_eventType
0x32 s16 m_bPlaysInMusicChannel
0x34 BasicInform m_pData
0x38 ePlayerType m_playerType
0x3C s32 firstParam
0x40 f32 secondParam