EvilEngine/ONEL: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(2 intermediate revisions by 2 users 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 || [[SGRP]]u32 || '''soundGroupNameHashoneLinerPlayerCount''' || SoundGroup_AssetIDAmount 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''' ||
|-
| 0x040x08 || floatf32 || '''SoundStartDelaym_fTimeSpan''' ||
|-
| 0x080x0C || floatf32 || '''TimeSpanm_fTimeLastPlayed''' ||
|-
| 0x0C0x10 || floatu32 || '''TimeLastPlayedm_uNumPlays''' || Number of plays.
|-
| 0x100x14 || intf32 || '''uNumPlaysm_fDelayBetweenPlays''' || Number of plays.
|-
| 0x140x18 || floatf32 || '''DelayBetweenPlaysm_fProbability''' ||
|-
| 0x180x1C || floatf32 || '''Probabilitym_fDefaultDuration''' ||
|-
| 0x1C0x20 || floatf32 || '''DefaultDurationm_fLastDuration''' ||
|-
| 0x200x24 || floatu32 || '''LastDurationm_uMaxPlays''' || Max amount of plays.
|-
| 0x240x28 || intiSndGroupHandle || '''uMaxPlaysm_soundGroupHandle''' || Max amount of plays.
|-
| 0x280x2C || iSndGroupHandlexOneLinerManager || '''soundGroupHandlem_pOLManager''' ||
|-
| 0x2C0x30 || xOneLinerManagers16 || '''pOLManagerm_eventType''' ||
|-
| 0x300x32 || shorts16 || '''eventTypem_bPlaysInMusicChannel''' ||
|-
| 0x34 || shortBasicInform || '''bPlaysInMusicChannelm_pData''' ||
|-
| 0x38 || BasicInformePlayerType || '''pDatam_playerType''' ||
|-
| 0x3C || ePlayerTypes32 || '''playerTypefirstParam''' ||
|-
| 0x40 || testerPlayerf32 || '''testerDatasecondParam''' ||
|}