EvilEngine/PARP: Difference between revisions

m
Seil moved page PARP to EvilEngine/PARP
Battlepedia>Seil
No edit summary
m (Seil moved page PARP to EvilEngine/PARP)
 
(7 intermediate revisions by 3 users not shown)
Line 1:
<onlyinclude>
{{AssetInfobox
{{#vardefine:typeid|PARP}}<nowiki/>
{{#vardefine:name|subtitle=Particle Emitter Property}}<nowiki/>
|type=[[Object]]
{{#vardefine:type|[[Base]]}}<nowiki/>
|objectid=0x2E
{{#vardefine:basetype|0x2E}}<nowiki/>
|games=Battle for Bikini Bottom<br>The SpongeBob SquarePants Movie<br>Rise of the Underminer}}
{{#vardefine:games|BFBB TSSM ROTU RatProto}}<nowiki/>
{{#vardefine:sourcecode|[https://github.com/bfbbdecomp/bfbb/blob/master/src/Core/x/xParEmitter.h xParEmitter.h]}}<nowiki/>
{{#vardefine:image|}}<nowiki/>
</onlyinclude>
{{AutoAssetInfobox}}
 
A '''Particle Emitter Property''' asset contains settings for particles created by a [[PARE|Particle Emitter]].
Line 10 ⟶ 15:
A Particle Emitter Property asset describes how a particle changes over its lifetime, such as its color, size, and velocity. Each of these properties are defined by an xParInterp struct:
 
<source lang=cpp>
<nowiki>
struct xParInterp
{
Line 17 ⟶ 22:
float freq;
float oofreq;
};
};</nowiki>
</source>
 
* '''val''' is an array of 2 floats. The 1st float is the start value of the interpolation, and the 2nd float is the end value.
Line 34 ⟶ 40:
The actual asset is defined by an xParEmitterPropsAsset struct, which inherits xBaseAsset ([[Object Asset]]):
 
<source lang=cpp>
<nowiki>struct xParEmitterPropsAsset : xBaseAsset
{
unsigned int parSysID;
Line 58 ⟶ 65:
unsigned int emit_limit;
float emit_limit_reset_time;
};
};</nowiki>
</source>
 
* '''parSysID''' is the ID of the [[PARS|Particle System]] that the [[PARE|Particle Emitter]] should use.
Line 77 ⟶ 85:
==Events==
Particle Emitter Property has no events.
 
{{Assets}}
{{AutoGameNavs}}
 
[[Category:Asset]]