EvilEngine/PARP: Difference between revisions

syntax highlighting
Battlepedia>Seil
No edit summary
Battlepedia>Wowaname
(syntax highlighting)
Line 10:
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:
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 ⟶ 35:
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 ⟶ 60:
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.
Anonymous user