From 15ad654b2db372d1f5d9fba3ffcbec223265be9c Mon Sep 17 00:00:00 2001 From: Hyper <34012267+hyperbx@users.noreply.github.com> Date: Mon, 12 Aug 2024 02:43:45 +0100 Subject: [PATCH] ParticleGenerationSystem: rename lists we really need to change this name lol --- .../Formats/Particle/ParticleGenerationSystem.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Marathon/Formats/Particle/ParticleGenerationSystem.cs b/Marathon/Formats/Particle/ParticleGenerationSystem.cs index accb373b..1ae33238 100644 --- a/Marathon/Formats/Particle/ParticleGenerationSystem.cs +++ b/Marathon/Formats/Particle/ParticleGenerationSystem.cs @@ -41,9 +41,9 @@ public ParticleGenerationSystem(string file, bool serialise = false) public class FormatData { - public List Effects { get; set; } = []; + public List EffectBanks { get; set; } = []; - public List Textures { get; set; } = []; + public List TextureBanks { get; set; } = []; public List Materials { get; set; } = []; } @@ -67,11 +67,11 @@ public override void Load(Stream stream) reader.JumpTo(particleEffectBankOffset, true); for (int i = 0; i < particleEffectBankCount; i++) - Data.Effects.Add(reader.ReadNullPaddedString(0x20)); + Data.EffectBanks.Add(reader.ReadNullPaddedString(0x20)); reader.JumpTo(particleTextureBankOffset, true); for (int i = 0; i < particleTextureBankCount; i++) - Data.Textures.Add(reader.ReadNullPaddedString(0x20)); + Data.TextureBanks.Add(reader.ReadNullPaddedString(0x20)); reader.JumpTo(materialOffset, true); for (int i = 0; i < materialCount; i++) @@ -94,8 +94,8 @@ public override void Save(Stream stream) writer.WriteSignature(Signature); writer.WriteNulls(0x04); - writer.Write(Data.Effects.Count); - writer.Write(Data.Textures.Count); + writer.Write(Data.EffectBanks.Count); + writer.Write(Data.TextureBanks.Count); writer.Write(Data.Materials.Count); writer.Write(ParticleMaterial.Size); writer.AddOffset("particleEffectBankOffset"); @@ -104,12 +104,12 @@ public override void Save(Stream stream) writer.FillOffset("particleEffectBankOffset", true); - foreach (string effect in Data.Effects) + foreach (string effect in Data.EffectBanks) writer.WriteNullPaddedString(effect, 0x20); writer.FillOffset("particleTextureBankOffset", true); - foreach (string texture in Data.Textures) + foreach (string texture in Data.TextureBanks) writer.WriteNullPaddedString(texture, 0x20); writer.FillOffset("materialOffset", true);