Collisions editing progress

This commit is contained in:
dexy
2020-01-03 22:50:23 +11:00
Unverified
parent d85f5eddb2
commit 0d066679cb
25 changed files with 5792 additions and 834 deletions
@@ -46,6 +46,8 @@ namespace CodeWalker.GameFiles
private Stream systemStream;
private Stream graphicsStream;
public RpfResourceFileEntry FileEntry { get; set; }
// this is a dictionary that contains all the resource blocks
// which were read from this resource reader
private Dictionary<long, List<IResourceBlock>> blockPool;
@@ -84,6 +86,7 @@ namespace CodeWalker.GameFiles
public ResourceDataReader(RpfResourceFileEntry resentry, byte[] data, Endianess endianess = Endianess.LittleEndian)
: base((Stream)null, endianess)
{
FileEntry = resentry;
var systemSize = resentry.SystemSize;
var graphicsSize = resentry.GraphicsSize;