Particles resource packing improvement

This commit is contained in:
dexy 2020-03-20 11:07:55 +11:00
parent cdbe4f59b9
commit 21645a3297

View File

@ -3130,6 +3130,7 @@ namespace CodeWalker.GameFiles
blk.Name = item.Name; blk.Name = item.Name;
blist.Add(blk); blist.Add(blk);
} }
blist.Sort((a, b) => a.Name.Hash.CompareTo(b.Name.Hash));
Unknown_28h.data_items = blist.ToArray(); Unknown_28h.data_items = blist.ToArray();
} }
} }
@ -3250,13 +3251,6 @@ namespace CodeWalker.GameFiles
writer.Write(this.ItemPointer); writer.Write(this.ItemPointer);
} }
public override IResourceBlock[] GetReferences()
{
var list = new List<IResourceBlock>();
if (Item != null) list.Add(Item);
return list.ToArray();
}
public override string ToString() public override string ToString()
{ {
return Name.ToString(); return Name.ToString();