Add NE resource table skeleton to builder

This commit is contained in:
Matt Nadareski
2022-11-06 23:49:46 -08:00
parent 4b274a454b
commit b906f3c654

View File

@@ -153,6 +153,20 @@ namespace BurnOutSharp.Builder
return segmentTable;
}
/// <summary>
/// Parse a byte array into a resource table
/// </summary>
/// <param name="data">Byte array to parse</param>
/// <param name="offset">Offset into the byte array</param>
/// <param name="count">Number of resource table entries to read</param>
/// <returns>Filled resource table on success, null on error</returns>
private static ResourceTable ParseResourceTable(byte[] data, int offset, int count)
{
// TODO: Use marshalling here instead of building
// TODO: Write NE resource table parsing
return null;
}
#endregion
#region Stream Data
@@ -300,6 +314,19 @@ namespace BurnOutSharp.Builder
return segmentTable;
}
/// <summary>
/// Parse a Stream into a resource table
/// </summary>
/// <param name="data">Stream to parse</param>
/// <param name="count">Number of resource table entries to read</param>
/// <returns>Filled resource table on success, null on error</returns>
private static ResourceTable ParseResourceTable(Stream data, int count)
{
// TODO: Use marshalling here instead of building
// TODO: Write NE resource table parsing
return null;
}
#endregion
}
}