ZoneCodeGenerator: Change block Statement to get the number of fastfileblock from the enum entry instead of manually specifying it

This commit is contained in:
Jan
2019-10-30 15:01:45 +01:00
parent 7ab7447827
commit 799d3cbce7
5 changed files with 36 additions and 32 deletions

View File

@ -6,19 +6,6 @@ namespace T6
{
#include "T6_Assets.h"
enum XFileBlock
{
XFILE_BLOCK_TEMP,
XFILE_BLOCK_RUNTIME_VIRTUAL,
XFILE_BLOCK_RUNTIME_PHYSICAL,
XFILE_BLOCK_DELAY_VIRTUAL,
XFILE_BLOCK_DELAY_PHYSICAL,
XFILE_BLOCK_VIRTUAL,
XFILE_BLOCK_PHYSICAL,
XFILE_BLOCK_STREAMER_RESERVE,
MAX_XFILE_COUNT,
};
struct ScriptStringList
{
int count;

View File

@ -285,6 +285,19 @@ enum XAssetType
ASSET_TYPE_FULL_COUNT = 0x40,
};
enum XFileBlock
{
XFILE_BLOCK_TEMP,
XFILE_BLOCK_RUNTIME_VIRTUAL,
XFILE_BLOCK_RUNTIME_PHYSICAL,
XFILE_BLOCK_DELAY_VIRTUAL,
XFILE_BLOCK_DELAY_PHYSICAL,
XFILE_BLOCK_VIRTUAL,
XFILE_BLOCK_PHYSICAL,
XFILE_BLOCK_STREAMER_RESERVE,
MAX_XFILE_COUNT,
};
union XAssetHeader
{
//XModelPieces *xmodelPieces; // Not an asset