WriteTexel() public method

public WriteTexel ( Texel t ) : void
t Texel
return void
コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
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);
                }
            }
        }
コード例 #5
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);
        }
コード例 #6
0
ファイル: PrtFile.cs プロジェクト: Ryder25/Age-of-Mythology
        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);
                }
            }
        }
コード例 #7
0
ファイル: PrtColor.cs プロジェクト: Ryder25/Age-of-Mythology
        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);
        }
コード例 #8
0
        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);
        }