EvilEngine/TPIK: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 16:
 
===xTableAsset===
<source lang=cpp>
class xTableAsset : public xBaseAsset
{
public:
unsigned int version;
unsigned int numRows;
};
</source>
 
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x08 || uintu32 || '''version''' ||
|-
| 0x0C || uintu32 || '''numRows''' || Number of entries.
|}
 
Line 27 ⟶ 36:
 
===TableEntry===
<source lang=cpp>
class TableEntry
{
public:
unsigned int typeHash;
unsigned int modelID;
unsigned int pulseModelID;
float pulseTime;
float pulseAddScale;
float pulseMoveDown;
float red;
float green;
float blue;
unsigned int color;
union
{
unsigned int flyingSoundGroupID;
iSndGroupHandle flyingSoundGroupHandle;
};
union
{
unsigned int usedSoundGroupID;
iSndGroupHandle usedSoundGroupHandle;
};
union
{
unsigned int cantUseSoundGroupID;
iSndGroupHandle cantUseSoundGroupHandle;
};
unsigned char healthGain;
unsigned char powerGain;
unsigned char saveFlag;
signed char bInitialized;
};
</source>
 
{| class="wikitable"
! Offset !! Type !! Variable !! Description
Line 36 ⟶ 81:
| 0x08 || [[AssetID]] || '''pulseModelID''' ||
|-
| 0x0C || floatf32 || '''pulseTime''' ||
|-
| 0x10 || floatf32 || '''pulseAddScale''' ||
|-
| 0x14 || floatf32 || '''pulseMoveDown''' ||
|-
| 0x18 || [[Vector3]] || '''red/green/blue''' ||
|-
| 0x24 || uintu32 || '''color''' ||
|-
| 0x28 || [[AssetID]] || '''flyingSoundGroupID''' || [[SGRP]]
|-
| 0x2C || [[AssetID]] || '''usedSoundGroupID''' || [[SGRP]]
|-
| 0x30 || [[AssetID]] || '''cantUseSoundGroupID''' || [[SGRP]]
|-
| 0x34 || byteu8 || '''healthGain''' ||
|-
| 0x35 || byteu8 || '''powerGain''' ||
|-
| 0x36 || byte u8|| '''saveFlag''' ||
|-
| 0x37 || bytes8 || '''bInitialized''' ||
|}