EvilEngine/PGRS: Difference between revisions

no edit summary
m (Seil moved page PGRS to EvilEngine/PGRS)
No edit summary
 
Line 10:
{{AutoAssetInfobox}}
 
Progress ScriptScripts is similar to ScriptScripts but withoutuses TimedLinksPercentages.
 
==Format==
===xProgressScriptAsset===
xProgressScriptAsset is the data structure that defines the format for PGRS assets. It inherits from xBaseAsset (8 bytes long).
<source lang=cpp>
class xProgressScriptAsset : public xBaseAsset
{
public:
unsigned int eventCount;
};
</source>
 
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x08 || intu32 || '''eventCount''' || Number of xProgressScriptEventAssets.
|}
 
===xProgressScriptEventAsset===
xProgressScriptEventAsset defines the format for events in PGRS assets.
<source lang=cpp>
class xProgressScriptEventAsset
{
public:
float percent;
signed int flags;
unsigned int widget;
unsigned int paramEvent;
float param[4];
unsigned int paramWidget;
};
</source>
 
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x00 || floatf32 || '''percent''' || .
|-
| 0x04 || ints32 || '''flags''' ||
|-
| 0x08 || [[AssetID]] || '''widget''' || Asset to send this asset to.
|-
| 0x0C || intu32 || '''paramEvent''' || Event ID enum. (See the list of events for your game to find the correct event ID)
|-
| 0x10 || floatf32[4] || '''param''' || Event parameters (can be floats, ints, AssetIDs, etc.)
|-
| 0x20 || [[AssetID]] || '''paramWidget''' || Asset ID parameter.