EvilEngine/ONEL: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 11:
 
==Format==
 
===xOneLinerAsset===
<source lang=cpp>
class xOneLinerAsset
{
public:
unsigned int oneLinerPlayerCount;
xOneLiner player;
};
</source>
 
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x00 || uintu32 || '''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''' || SoundGroup_AssetID[[SGRP]]
|-
| 0x04 || floatf32 || '''m_fSoundStartDelay''' ||
|-
| 0x08 || floatf32 || '''m_fTimeSpan''' ||
|-
| 0x0C || floatf32 || '''m_fTimeLastPlayed''' ||
|-
| 0x10 || intu32 || '''m_uNumPlays''' || Number of plays.
|-
| 0x14 || floatf32 || '''m_fDelayBetweenPlays''' ||
|-
| 0x18 || floatf32 || '''m_fProbability''' ||
|-
| 0x1C || floatf32 || '''m_fDefaultDuration''' ||
|-
| 0x20 || floatf32 || '''m_fLastDuration''' ||
|-
| 0x24 || intu32 || '''m_uMaxPlays''' || Max amount of plays.
|-
| 0x28 || iSndGroupHandle || '''m_soundGroupHandle''' ||
Line 47 ⟶ 97:
| 0x2C || xOneLinerManager || '''m_pOLManager''' ||
|-
| 0x30 || shorts16 || '''m_eventType''' ||
|-
| 0x32 || shorts16 || '''m_bPlaysInMusicChannel''' ||
|-
| 0x34 || BasicInform || '''m_pData''' ||
Line 55 ⟶ 105:
| 0x38 || ePlayerType || '''m_playerType''' ||
|-
| 0x3C || ints32 || '''firstParam''' ||
|-
| 0x40 || floatf32 || '''secondParam''' ||
|}