public PrtColorStage(PrtBinaryReader reader) { this.UsePalette = reader.ReadBoolean(); reader.ReadBytes(3); this.Color = reader.ReadTexel(); this.Hold = reader.ReadSingle(); this.Fade = reader.ReadSingle(); }
public PrtColorStage(PrtBinaryReader reader) { this.UsePalette = reader.ReadBoolean(); reader.ReadBytes(3); this.Color = reader.ReadTexel(); this.Hold = reader.ReadSingle(); this.Fade = reader.ReadSingle(); }
public PrtOpacity(PrtBinaryReader reader) { this.LoopingCycle = reader.ReadBoolean(); reader.ReadBytes(3); this.NumStages = reader.ReadInt32(); this.Opacity = reader.ReadSingle(); this.OpacityVar = reader.ReadSingle(); this.CycleTime = reader.ReadSingle(); this.CycleTimeVar = reader.ReadSingle(); this.OpacityStages = new List <PrtOpacityStage>(this.NumStages); }
public PrtOpacity(PrtBinaryReader reader) { this.LoopingCycle = reader.ReadBoolean(); reader.ReadBytes(3); this.NumStages = reader.ReadInt32(); this.Opacity = reader.ReadSingle(); this.OpacityVar = reader.ReadSingle(); this.CycleTime = reader.ReadSingle(); this.CycleTimeVar = reader.ReadSingle(); this.OpacityStages = new List<PrtOpacityStage>(this.NumStages); }
public PrtEmitter(PrtBinaryReader reader) { this.TiedToEmitter = reader.ReadBoolean(); this.IgnoreRotation = reader.ReadBoolean(); this.EmitByMotion = reader.ReadBoolean(); this.Loop = reader.ReadBoolean(); this.InheritVelocity = reader.ReadBoolean(); this.UseMinVelocity = reader.ReadBoolean(); this.UseMaxVelocity = reader.ReadBoolean(); this.AlwaysActive = reader.ReadBoolean(); this.SyncWithAttackAnim = reader.ReadBoolean(); reader.ReadBytes(3); // 32 bit padding this.MaxParticles = reader.ReadInt32(); this.AppearanceType = (PrtAppearanceType)reader.ReadInt32(); this.UpdateRadius = reader.ReadSingle(); this.MaxParticlesVar = reader.ReadSingle(); this.ParticleLife = reader.ReadSingle(); this.ParticleLifeVar = reader.ReadSingle(); this.GlobalFadeIn = reader.ReadSingle(); this.GlobalFadeInVar = reader.ReadSingle(); this.GlobalFadeOut = reader.ReadSingle(); this.GlobalFadeOutVar = reader.ReadSingle(); this.EmitDistance = reader.ReadSingle(); this.EmitDistanceVar = reader.ReadSingle(); this.EmissionRate = reader.ReadSingle(); this.EmissionRateVar = reader.ReadSingle(); this.InitialDormancy = reader.ReadSingle(); this.InitialDormancyVar = reader.ReadSingle(); this.InitialUpdate = reader.ReadSingle(); this.InitialUpdateVar = reader.ReadSingle(); this.EmissionTime = reader.ReadSingle(); this.EmissionTimeVar = reader.ReadSingle(); this.DormantTime = reader.ReadSingle(); this.DormantTimeVar = reader.ReadSingle(); this.InitialDistance = reader.ReadSingle(); this.InitialDistanceVar = reader.ReadSingle(); this.InitialVelocity = reader.ReadSingle(); this.InitialVelocityVar = reader.ReadSingle(); this.Acceleration = reader.ReadSingle(); this.AccelerationVar = reader.ReadSingle(); this.InheritInfluence = reader.ReadSingle(); this.InheritInfluenceVar = reader.ReadSingle(); this.MinVelocity = reader.ReadSingle(); this.MinVelocityVar = reader.ReadSingle(); this.MaxVelocity = reader.ReadSingle(); this.MaxVelocityVar = reader.ReadSingle(); }
public PrtEmitter(PrtBinaryReader reader) { this.TiedToEmitter = reader.ReadBoolean(); this.IgnoreRotation = reader.ReadBoolean(); this.EmitByMotion = reader.ReadBoolean(); this.Loop = reader.ReadBoolean(); this.InheritVelocity = reader.ReadBoolean(); this.UseMinVelocity = reader.ReadBoolean(); this.UseMaxVelocity = reader.ReadBoolean(); this.AlwaysActive = reader.ReadBoolean(); this.SyncWithAttackAnim = reader.ReadBoolean(); reader.ReadBytes(3); // 32 bit padding this.MaxParticles = reader.ReadInt32(); this.AppearanceType = (PrtAppearanceType)reader.ReadInt32(); this.UpdateRadius = reader.ReadSingle(); this.MaxParticlesVar = reader.ReadSingle(); this.ParticleLife = reader.ReadSingle(); this.ParticleLifeVar = reader.ReadSingle(); this.GlobalFadeIn = reader.ReadSingle(); this.GlobalFadeInVar = reader.ReadSingle(); this.GlobalFadeOut = reader.ReadSingle(); this.GlobalFadeOutVar = reader.ReadSingle(); this.EmitDistance = reader.ReadSingle(); this.EmitDistanceVar = reader.ReadSingle(); this.EmissionRate = reader.ReadSingle(); this.EmissionRateVar = reader.ReadSingle(); this.InitialDormancy = reader.ReadSingle(); this.InitialDormancyVar = reader.ReadSingle(); this.InitialUpdate = reader.ReadSingle(); this.InitialUpdateVar = reader.ReadSingle(); this.EmissionTime = reader.ReadSingle(); this.EmissionTimeVar = reader.ReadSingle(); this.DormantTime = reader.ReadSingle(); this.DormantTimeVar = reader.ReadSingle(); this.InitialDistance = reader.ReadSingle(); this.InitialDistanceVar = reader.ReadSingle(); this.InitialVelocity = reader.ReadSingle(); this.InitialVelocityVar = reader.ReadSingle(); this.Acceleration = reader.ReadSingle(); this.AccelerationVar = reader.ReadSingle(); this.InheritInfluence = reader.ReadSingle(); this.InheritInfluenceVar = reader.ReadSingle(); this.MinVelocity = reader.ReadSingle(); this.MinVelocityVar = reader.ReadSingle(); this.MaxVelocity = reader.ReadSingle(); this.MaxVelocityVar = reader.ReadSingle(); }
public PrtColor(PrtBinaryReader reader) { this.UsePalette = reader.ReadBoolean(); this.LoopingCycle = reader.ReadBoolean(); reader.ReadBytes(2); this.NumPaletteColors = reader.ReadInt32(); this.NumStages = reader.ReadInt32(); this.CycleTime = reader.ReadSingle(); this.CycleTimeVar = reader.ReadSingle(); this.WorldLightingInfluence = reader.ReadSingle(); this.Color = reader.ReadTexel(); this.PaletteColors = new List<Texel>(this.NumPaletteColors); this.ColorStages = new List<PrtColorStage>(this.NumStages); }
public PrtColor(PrtBinaryReader reader) { this.UsePalette = reader.ReadBoolean(); this.LoopingCycle = reader.ReadBoolean(); reader.ReadBytes(2); this.NumPaletteColors = reader.ReadInt32(); this.NumStages = reader.ReadInt32(); this.CycleTime = reader.ReadSingle(); this.CycleTimeVar = reader.ReadSingle(); this.WorldLightingInfluence = reader.ReadSingle(); this.Color = reader.ReadTexel(); this.PaletteColors = new List <Texel>(this.NumPaletteColors); this.ColorStages = new List <PrtColorStage>(this.NumStages); }
public PrtScale(PrtBinaryReader reader) { this.LoopingCycle = reader.ReadBoolean(); reader.ReadBytes(3); this.NumStages = reader.ReadInt32(); this.Scale = reader.ReadSingle(); this.ScaleVar = reader.ReadSingle(); this.XScale = reader.ReadSingle(); this.XScaleVar = reader.ReadSingle(); this.YScale = reader.ReadSingle(); this.YScaleVar = reader.ReadSingle(); this.ZScale = reader.ReadSingle(); this.ZScaleVar = reader.ReadSingle(); this.CycleTime = reader.ReadSingle(); this.CycleTimeVar = reader.ReadSingle(); this.ScaleStages = new List<PrtScaleStage>(this.NumStages); }
public PrtScale(PrtBinaryReader reader) { this.LoopingCycle = reader.ReadBoolean(); reader.ReadBytes(3); this.NumStages = reader.ReadInt32(); this.Scale = reader.ReadSingle(); this.ScaleVar = reader.ReadSingle(); this.XScale = reader.ReadSingle(); this.XScaleVar = reader.ReadSingle(); this.YScale = reader.ReadSingle(); this.YScaleVar = reader.ReadSingle(); this.ZScale = reader.ReadSingle(); this.ZScaleVar = reader.ReadSingle(); this.CycleTime = reader.ReadSingle(); this.CycleTimeVar = reader.ReadSingle(); this.ScaleStages = new List <PrtScaleStage>(this.NumStages); }
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); }
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); }