EvilEngine/PGRS: Difference between revisions

no edit summary
(Created page with format)
 
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1:
<onlyinclude>
{{AssetInfobox
{{#vardefine:typeid|PRGS}}<nowiki/>
|subtitle=Progress Script
{{#vardefine:name|Progress Script}}<nowiki/>
|type=[[Base]]
{{#vardefine:type|[[Base]]}}<nowiki/>
|objectid=0x75
{{#vardefine:basetype|0x75}}<nowiki/>
|games=The Incredibles<br>Rise of the Underminer}}
{{#vardefine:games|Incredibles ROTU}}<nowiki/>
{{#vardefine:sourcecode|}}<nowiki/>
{{#vardefine:image|}}<nowiki/>
</onlyinclude>
{{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.
Line 36 ⟶ 61:
 
{{Assets}}
{{AutoGameNavs}}
 
[[Category:Asset]]