Class ParticleFormatUpgrader
Namespace: ValveResourceFormat.Particles.Upgrade
Assembly: ValveResourceFormat.dll
Replays the vpcf KV3 format-conversion chain, upgrading particle system documents from their stored format to the newest implemented format.
csharp
public static class ParticleFormatUpgraderInheritance
object ← ParticleFormatUpgrader
Fields
LatestBehaviorVersion
The newest m_nBehaviorVersion the chain produces.
csharp
public const int LatestBehaviorVersion = 12Field Value
int
Properties
LatestFormat
The newest format the chain produces. Definitions built in memory should declare this so the chain does not replay over content that is already current.
csharp
public static KV3ID LatestFormat { get; }Property Value
KV3ID
Methods
UpgradeToLatest(KVObject, KV3ID?)
Deep-clones the document root, applies every implemented step past the stored format and returns the upgraded clone, so edits to the result never reach the input. Missing and unknown formats start at the oldest step, as headerless data does.
csharp
public static KVObject UpgradeToLatest(KVObject root, KV3ID? storedFormat)Parameters
root KVObject
storedFormat KV3ID?
Returns
KVObject

