예제 #1
0
        public void LoadFrom(Stream stream)
        {
            BinaryReader reader = new BinaryReader(stream);

            enabled = reader.ReadBoolean();
            reader.ReadBytes(3);
            gradient = new MinMaxGradient(stream);
        }
예제 #2
0
        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();
        }
예제 #3
0
 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();
 }
예제 #4
0
 public void LoadFrom(Stream stream)
 {
     BinaryReader reader = new BinaryReader(stream);
     enabled = reader.ReadBoolean();
     reader.ReadBytes(3);
     gradient = new MinMaxGradient(stream);
 }