AoMEngineLibrary.Graphics.Prt.PrtAppearance.PrtAppearance C# (CSharp) Method

PrtAppearance() public method

public PrtAppearance ( PrtBinaryReader reader ) : System
reader PrtBinaryReader
return System
        public PrtAppearance(PrtBinaryReader reader)
        {
            this.OrientByMotion = reader.ReadBoolean();
            reader.ReadBytes(3);

            this.NumFiles = reader.ReadInt32();
            this.NumFrames = reader.ReadInt32();
            this.FrameWidth = reader.ReadInt32();
            this.FrameHeight = reader.ReadInt32();
            this.MaterialType = (PrtMaterialType)reader.ReadInt32();
            this.Emissive = reader.ReadTexel();
            this.Specular = reader.ReadTexel();
            this.SpecularExponent = reader.ReadSingle();
            this.FramesPerSecond = reader.ReadSingle();
            this.AnimationRate = reader.ReadSingle();
            this.AnimationRateVar = reader.ReadSingle();

            this.AppearanceWeights = new List<float>(this.NumFiles);
            this.AppearanceFiles = new List<string>(this.NumFiles);
        }

Same methods

PrtAppearance::PrtAppearance ( ) : System