Inheritance: MiscUtil.IO.EndianBinaryWriter
Exemple #1
0
        public void Write(PrtBinaryWriter writer)
        {
            writer.Write(this.RandomOrientation);
            writer.Write(this.Tumble);
            writer.Write(this.TumbleBothDirections);
            writer.Write(this.RandomAxis);

            writer.Write(this.InternalGravity);
            writer.Write(this.InternalGravityVar);
            writer.Write(this.InternalWindDirection);
            writer.Write(this.InternalWindDirectionVar);
            writer.Write(this.InternalWindSpeed);
            writer.Write(this.InternalWindSpeedVar);
            writer.Write(this.InternalWindDelay);
            writer.Write(this.InternalWindDelayVar);
            writer.Write(this.ExternalWindInfluence);
            writer.Write(this.ExternalWindInfluenceVar);
            writer.Write(this.ExternalWindDelay);
            writer.Write(this.ExternalWindDelayVar);
            writer.Write(this.MinAngularVelocity);
            writer.Write(this.MaxAngularVelocity);
            writer.Write(this.XAxis);
            writer.Write(this.XAxisVar);
            writer.Write(this.YAxis);
            writer.Write(this.YAxisVar);
            writer.Write(this.ZAxis);
            writer.Write(this.ZAxisVar);
        }
 public void Write(PrtBinaryWriter writer)
 {
     writer.Write(this.Opacity);
     writer.Write(this.OpacityVar);
     writer.Write(this.Hold);
     writer.Write(this.Fade);
 }
 public void Write(PrtBinaryWriter writer)
 {
     writer.Write(this.Scale);
     writer.Write(this.ScaleVar);
     writer.Write(this.Hold);
     writer.Write(this.Fade);
 }
 public void Write(PrtBinaryWriter writer)
 {
     writer.Write(this.Opacity);
     writer.Write(this.OpacityVar);
     writer.Write(this.Hold);
     writer.Write(this.Fade);
 }
Exemple #5
0
 public void Write(PrtBinaryWriter writer)
 {
     writer.Write(this.Scale);
     writer.Write(this.ScaleVar);
     writer.Write(this.Hold);
     writer.Write(this.Fade);
 }
Exemple #6
0
 public void Write(PrtBinaryWriter writer)
 {
     this.NumTypes = this.CollisionTypes.Count;
     writer.Write(this.NumTypes);
     writer.Write((Int32)this.TerrainInteractionType);
     writer.Write(this.TerrainHeight);
     writer.Write(this.TerrainHeightVar);
 }
 public void Write(PrtBinaryWriter writer)
 {
     this.NumTypes = this.CollisionTypes.Count;
     writer.Write(this.NumTypes);
     writer.Write((Int32)this.TerrainInteractionType);
     writer.Write(this.TerrainHeight);
     writer.Write(this.TerrainHeightVar);
 }
        public void Write(PrtBinaryWriter writer)
        {
            writer.Write(this.UsePalette);
            writer.Write(new byte[3]);

            writer.WriteTexel(this.Color);
            writer.Write(this.Hold);
            writer.Write(this.Fade);
        }
        public void Write(PrtBinaryWriter writer)
        {
            writer.Write(this.UsePalette);
            writer.Write(new byte[3]);

            writer.WriteTexel(this.Color);
            writer.Write(this.Hold);
            writer.Write(this.Fade);
        }
Exemple #10
0
        public void Write(PrtBinaryWriter writer)
        {
            writer.Write(this.LoopingCycle);
            writer.Write(new byte[3]);

            this.NumStages = this.OpacityStages.Count;
            writer.Write(this.NumStages);
            writer.Write(this.Opacity);
            writer.Write(this.OpacityVar);
            writer.Write(this.CycleTime);
            writer.Write(this.CycleTimeVar);
        }
        public void Write(PrtBinaryWriter writer)
        {
            writer.Write(this.LoopingCycle);
            writer.Write(new byte[3]);

            this.NumStages = this.OpacityStages.Count;
            writer.Write(this.NumStages);
            writer.Write(this.Opacity);
            writer.Write(this.OpacityVar);
            writer.Write(this.CycleTime);
            writer.Write(this.CycleTimeVar);
        }
Exemple #12
0
        public void Write(Stream stream)
        {
            using (PrtBinaryWriter writer = new PrtBinaryWriter(new LittleEndianBitConverter(), stream))
            {
                writer.Write(this.Version);

                this.Emitter.Write(writer);
                this.Shape.Write(writer);
                this.Appearance.Write(writer);
                this.Opacity.Write(writer);
                this.Scale.Write(writer);
                this.Color.Write(writer);
                this.Forces.Write(writer);
                this.Collision.Write(writer);

                writer.Write(this.BrgFileName);

                for (int i = 0; i < this.Color.NumPaletteColors; i++)
                {
                    writer.WriteTexel(this.Color.PaletteColors[i]);
                }

                for (int i = 0; i < this.Appearance.NumFiles; i++)
                {
                    writer.Write(this.Appearance.AppearanceWeights[i]);
                }
                for (int i = 0; i < this.Appearance.NumFiles; i++)
                {
                    writer.Write(this.Appearance.AppearanceFiles[i]);
                }

                for (int i = 0; i < this.Opacity.NumStages; i++)
                {
                    this.Opacity.OpacityStages[i].Write(writer);
                }

                for (int i = 0; i < this.Scale.NumStages; i++)
                {
                    this.Scale.ScaleStages[i].Write(writer);
                }

                for (int i = 0; i < this.Color.NumStages; i++)
                {
                    this.Color.ColorStages[i].Write(writer);
                }

                for (int i = 0; i < this.Collision.NumTypes; i++)
                {
                    this.Collision.CollisionTypes[i].Write(writer);
                }
            }
        }
Exemple #13
0
        public void Write(PrtBinaryWriter writer)
        {
            writer.Write(this.UsePalette);
            writer.Write(this.LoopingCycle);
            writer.Write(new byte[2]);

            this.NumPaletteColors = this.PaletteColors.Count;
            this.NumStages        = this.ColorStages.Count;
            writer.Write(this.NumPaletteColors);
            writer.Write(this.NumStages);
            writer.Write(this.CycleTime);
            writer.Write(this.CycleTimeVar);
            writer.Write(this.WorldLightingInfluence);
            writer.WriteTexel(this.Color);
        }
        public void Write(PrtBinaryWriter writer)
        {
            writer.Write(this.TiedToEmitter);
            writer.Write(this.IgnoreRotation);
            writer.Write(this.EmitByMotion);
            writer.Write(this.Loop);
            writer.Write(this.InheritVelocity);
            writer.Write(this.UseMinVelocity);
            writer.Write(this.UseMaxVelocity);
            writer.Write(this.AlwaysActive);
            writer.Write(this.SyncWithAttackAnim);
            writer.Write(new byte[3]); // 32 bit padding

            writer.Write(this.MaxParticles);
            writer.Write((Int32)this.AppearanceType);
            writer.Write(this.UpdateRadius);
            writer.Write(this.MaxParticlesVar);
            writer.Write(this.ParticleLife);
            writer.Write(this.ParticleLifeVar);
            writer.Write(this.GlobalFadeIn);
            writer.Write(this.GlobalFadeInVar);
            writer.Write(this.GlobalFadeOut);
            writer.Write(this.GlobalFadeOutVar);
            writer.Write(this.EmitDistance);
            writer.Write(this.EmitDistanceVar);
            writer.Write(this.EmissionRate);
            writer.Write(this.EmissionRateVar);
            writer.Write(this.InitialDormancy);
            writer.Write(this.InitialDormancyVar);
            writer.Write(this.InitialUpdate);
            writer.Write(this.InitialUpdateVar);
            writer.Write(this.EmissionTime);
            writer.Write(this.EmissionTimeVar);
            writer.Write(this.DormantTime);
            writer.Write(this.DormantTimeVar);
            writer.Write(this.InitialDistance);
            writer.Write(this.InitialDistanceVar);
            writer.Write(this.InitialVelocity);
            writer.Write(this.InitialVelocityVar);
            writer.Write(this.Acceleration);
            writer.Write(this.AccelerationVar);
            writer.Write(this.InheritInfluence);
            writer.Write(this.InheritInfluenceVar);
            writer.Write(this.MinVelocity);
            writer.Write(this.MinVelocityVar);
            writer.Write(this.MaxVelocity);
            writer.Write(this.MaxVelocityVar);
        }
Exemple #15
0
        public void Write(PrtBinaryWriter writer)
        {
            writer.Write(this.LoopingCycle);
            writer.Write(new byte[3]);

            this.NumStages = this.ScaleStages.Count;
            writer.Write(this.NumStages);
            writer.Write(this.Scale);
            writer.Write(this.ScaleVar);
            writer.Write(this.XScale);
            writer.Write(this.XScaleVar);
            writer.Write(this.YScale);
            writer.Write(this.YScaleVar);
            writer.Write(this.ZScale);
            writer.Write(this.ZScaleVar);
            writer.Write(this.CycleTime);
            writer.Write(this.CycleTimeVar);
        }
        public void Write(PrtBinaryWriter writer)
        {
            writer.Write(this.OrientByMotion);
            writer.Write(new byte[3]);

            this.NumFiles = this.AppearanceFiles.Count;
            writer.Write(this.NumFiles);
            writer.Write(this.NumFrames);
            writer.Write(this.FrameWidth);
            writer.Write(this.FrameHeight);
            writer.Write((Int32)this.MaterialType);
            writer.WriteTexel(this.Emissive);
            writer.WriteTexel(this.Specular);
            writer.Write(this.SpecularExponent);
            writer.Write(this.FramesPerSecond);
            writer.Write(this.AnimationRate);
            writer.Write(this.AnimationRateVar);
        }
Exemple #17
0
        public void Write(PrtBinaryWriter writer)
        {
            writer.Write(this.StartFull);
            writer.Write(this.EmitAwayFromBias);
            writer.Write(this.UseSpreader);
            writer.Write((byte)0);

            writer.Write((Int32)this.ShapeType);
            writer.Write(this.OuterXRadius);
            writer.Write(this.InnerXRadius);
            writer.Write(this.OuterYRadius);
            writer.Write(this.InnerYRadius);
            writer.Write(this.OuterZRadius);
            writer.Write(this.InnerZRadius);
            writer.Write(this.CenterHeight);
            writer.Write(this.OffAxis);
            writer.Write(this.OffAxisSpread);
            writer.Write(this.OffPlane);
            writer.Write(this.OffPlaneSpread);
            writer.Write(this.BiasPointHeight);
        }
        internal void Write(PrtBinaryWriter writer)
        {
            writer.Write(this.SpawnSystem);
            writer.Write(this.CollideTerrain);
            writer.Write(this.CollideWater);
            writer.Write(this.CollideUnits);

            this.NumFileNames = this.FileNames.Count;
            writer.Write(this.Result);
            writer.Write(this.NumFileNames);
            writer.Write(this.LingerTime);
            writer.Write(this.LingerTimeVar);
            writer.Write(this.FadeTime);
            writer.Write(this.FadeTimeVar);
            writer.Write(this.EnergyLoss);
            writer.Write(this.EnergyLossVar);

            writer.Write(this.Name);
            for (int i = 0; i < this.NumFileNames; i++)
            {
                writer.Write(this.FileNames[i]);
            }
        }
Exemple #19
0
        public void Write(PrtBinaryWriter writer)
        {
            writer.Write(this.RandomOrientation);
            writer.Write(this.Tumble);
            writer.Write(this.TumbleBothDirections);
            writer.Write(this.RandomAxis);

            writer.Write(this.InternalGravity);
            writer.Write(this.InternalGravityVar);
            writer.Write(this.InternalWindDirection);
            writer.Write(this.InternalWindDirectionVar);
            writer.Write(this.InternalWindSpeed);
            writer.Write(this.InternalWindSpeedVar);
            writer.Write(this.InternalWindDelay);
            writer.Write(this.InternalWindDelayVar);
            writer.Write(this.ExternalWindInfluence);
            writer.Write(this.ExternalWindInfluenceVar);
            writer.Write(this.ExternalWindDelay);
            writer.Write(this.ExternalWindDelayVar);
            writer.Write(this.MinAngularVelocity);
            writer.Write(this.MaxAngularVelocity);
            writer.Write(this.XAxis);
            writer.Write(this.XAxisVar);
            writer.Write(this.YAxis);
            writer.Write(this.YAxisVar);
            writer.Write(this.ZAxis);
            writer.Write(this.ZAxisVar);
        }
Exemple #20
0
        public void Write(Stream stream)
        {
            using (PrtBinaryWriter writer = new PrtBinaryWriter(new LittleEndianBitConverter(), stream))
            {
                writer.Write(this.Version);

                this.Emitter.Write(writer);
                this.Shape.Write(writer);
                this.Appearance.Write(writer);
                this.Opacity.Write(writer);
                this.Scale.Write(writer);
                this.Color.Write(writer);
                this.Forces.Write(writer);
                this.Collision.Write(writer);

                writer.Write(this.BrgFileName);

                for (int i = 0; i < this.Color.NumPaletteColors; i++)
                {
                    writer.WriteTexel(this.Color.PaletteColors[i]);
                }

                for (int i = 0; i < this.Appearance.NumFiles; i++)
                {
                    writer.Write(this.Appearance.AppearanceWeights[i]);
                }
                for (int i = 0; i < this.Appearance.NumFiles; i++)
                {
                    writer.Write(this.Appearance.AppearanceFiles[i]);
                }

                for (int i = 0; i < this.Opacity.NumStages; i++)
                {
                    this.Opacity.OpacityStages[i].Write(writer);
                }

                for (int i = 0; i < this.Scale.NumStages; i++)
                {
                    this.Scale.ScaleStages[i].Write(writer);
                }

                for (int i = 0; i < this.Color.NumStages; i++)
                {
                    this.Color.ColorStages[i].Write(writer);
                }

                for (int i = 0; i < this.Collision.NumTypes; i++)
                {
                    this.Collision.CollisionTypes[i].Write(writer);
                }
            }
        }
Exemple #21
0
        public void Write(PrtBinaryWriter writer)
        {
            writer.Write(this.StartFull);
            writer.Write(this.EmitAwayFromBias);
            writer.Write(this.UseSpreader);
            writer.Write((byte)0);

            writer.Write((Int32)this.ShapeType);
            writer.Write(this.OuterXRadius);
            writer.Write(this.InnerXRadius);
            writer.Write(this.OuterYRadius);
            writer.Write(this.InnerYRadius);
            writer.Write(this.OuterZRadius);
            writer.Write(this.InnerZRadius);
            writer.Write(this.CenterHeight);
            writer.Write(this.OffAxis);
            writer.Write(this.OffAxisSpread);
            writer.Write(this.OffPlane);
            writer.Write(this.OffPlaneSpread);
            writer.Write(this.BiasPointHeight);
        }
        public void Write(PrtBinaryWriter writer)
        {
            writer.Write(this.OrientByMotion);
            writer.Write(new byte[3]);

            this.NumFiles = this.AppearanceFiles.Count;
            writer.Write(this.NumFiles);
            writer.Write(this.NumFrames);
            writer.Write(this.FrameWidth);
            writer.Write(this.FrameHeight);
            writer.Write((Int32)this.MaterialType);
            writer.WriteTexel(this.Emissive);
            writer.WriteTexel(this.Specular);
            writer.Write(this.SpecularExponent);
            writer.Write(this.FramesPerSecond);
            writer.Write(this.AnimationRate);
            writer.Write(this.AnimationRateVar);
        }
        internal void Write(PrtBinaryWriter writer)
        {
            writer.Write(this.SpawnSystem);
            writer.Write(this.CollideTerrain);
            writer.Write(this.CollideWater);
            writer.Write(this.CollideUnits);

            this.NumFileNames = this.FileNames.Count;
            writer.Write(this.Result);
            writer.Write(this.NumFileNames);
            writer.Write(this.LingerTime);
            writer.Write(this.LingerTimeVar);
            writer.Write(this.FadeTime);
            writer.Write(this.FadeTimeVar);
            writer.Write(this.EnergyLoss);
            writer.Write(this.EnergyLossVar);

            writer.Write(this.Name);
            for (int i = 0; i < this.NumFileNames; i++)
            {
                writer.Write(this.FileNames[i]);
            }
        }
Exemple #24
0
        public void Write(PrtBinaryWriter writer)
        {
            writer.Write(this.UsePalette);
            writer.Write(this.LoopingCycle);
            writer.Write(new byte[2]);

            this.NumPaletteColors = this.PaletteColors.Count;
            this.NumStages = this.ColorStages.Count;
            writer.Write(this.NumPaletteColors);
            writer.Write(this.NumStages);
            writer.Write(this.CycleTime);
            writer.Write(this.CycleTimeVar);
            writer.Write(this.WorldLightingInfluence);
            writer.WriteTexel(this.Color);
        }
Exemple #25
0
        public void Write(PrtBinaryWriter writer)
        {
            writer.Write(this.LoopingCycle);
            writer.Write(new byte[3]);

            this.NumStages = this.ScaleStages.Count;
            writer.Write(this.NumStages);
            writer.Write(this.Scale);
            writer.Write(this.ScaleVar);
            writer.Write(this.XScale);
            writer.Write(this.XScaleVar);
            writer.Write(this.YScale);
            writer.Write(this.YScaleVar);
            writer.Write(this.ZScale);
            writer.Write(this.ZScaleVar);
            writer.Write(this.CycleTime);
            writer.Write(this.CycleTimeVar);
        }
        public void Write(PrtBinaryWriter writer)
        {
            writer.Write(this.TiedToEmitter);
            writer.Write(this.IgnoreRotation);
            writer.Write(this.EmitByMotion);
            writer.Write(this.Loop);
            writer.Write(this.InheritVelocity);
            writer.Write(this.UseMinVelocity);
            writer.Write(this.UseMaxVelocity);
            writer.Write(this.AlwaysActive);
            writer.Write(this.SyncWithAttackAnim);
            writer.Write(new byte[3]); // 32 bit padding

            writer.Write(this.MaxParticles);
            writer.Write((Int32)this.AppearanceType);
            writer.Write(this.UpdateRadius);
            writer.Write(this.MaxParticlesVar);
            writer.Write(this.ParticleLife);
            writer.Write(this.ParticleLifeVar);
            writer.Write(this.GlobalFadeIn);
            writer.Write(this.GlobalFadeInVar);
            writer.Write(this.GlobalFadeOut);
            writer.Write(this.GlobalFadeOutVar);
            writer.Write(this.EmitDistance);
            writer.Write(this.EmitDistanceVar);
            writer.Write(this.EmissionRate);
            writer.Write(this.EmissionRateVar);
            writer.Write(this.InitialDormancy);
            writer.Write(this.InitialDormancyVar);
            writer.Write(this.InitialUpdate);
            writer.Write(this.InitialUpdateVar);
            writer.Write(this.EmissionTime);
            writer.Write(this.EmissionTimeVar);
            writer.Write(this.DormantTime);
            writer.Write(this.DormantTimeVar);
            writer.Write(this.InitialDistance);
            writer.Write(this.InitialDistanceVar);
            writer.Write(this.InitialVelocity);
            writer.Write(this.InitialVelocityVar);
            writer.Write(this.Acceleration);
            writer.Write(this.AccelerationVar);
            writer.Write(this.InheritInfluence);
            writer.Write(this.InheritInfluenceVar);
            writer.Write(this.MinVelocity);
            writer.Write(this.MinVelocityVar);
            writer.Write(this.MaxVelocity);
            writer.Write(this.MaxVelocityVar);
        }