public void LoadFrom(Stream stream) { BinaryReader reader = new BinaryReader(stream); enabled = reader.ReadBoolean(); reader.ReadBytes(3); gradient = new MinMaxGradient(stream); }
public void LoadFrom(Stream stream) { BinaryReader reader = new BinaryReader(stream); enabled = reader.ReadBoolean(); reader.ReadBytes(3); startLifetime = new MinMaxCurve(stream); startSpeed = new MinMaxCurve(stream); startColor = new MinMaxGradient(stream); startSize = new MinMaxCurve(stream); startRotation = new MinMaxCurve(stream); gravityModifier = reader.ReadSingle(); inheritVelocity = reader.ReadSingle(); maxNumParticles = reader.ReadInt32(); }