public void Load(string fileName) { var resource = new ResourceFile_GTA5_pc <ParticleEffectsList>(); resource.Load(fileName); particles = resource.ResourceData; }
public void Load(Stream stream) { var resource = new ResourceFile_GTA5_pc <ParticleEffectsList>(); resource.Load(stream); if (resource.Version != 68) { throw new Exception("version error"); } particles = resource.ResourceData; }
public static string GetXml(YptFile ypt, string outputFolder = "") { StringBuilder sb = new StringBuilder(); sb.AppendLine(XmlHeader); if (ypt?.PtfxList != null) { ParticleEffectsList.WriteXmlNode(ypt.PtfxList, sb, 0, outputFolder); } return(sb.ToString()); }
public static YptFile GetYpt(XmlDocument doc, string inputFolder = "") { YptFile r = new YptFile(); var ddsfolder = inputFolder; var node = doc.DocumentElement; if (node != null) { r.PtfxList = ParticleEffectsList.ReadXmlNode(node, ddsfolder); } r.Name = Path.GetFileName(inputFolder); return(r); }
public ParticlesWrapper_GTA5_pc(ParticleEffectsList particles) { this.particles = particles; }