anotherplan/memlist.h

32 lines
593 B
C
Raw Normal View History

2020-08-22 03:53:35 +00:00
#ifndef MEMLIST_H
#define MEMLIST_H
typedef enum AssetState_t {
ASSET_NOT_NEEDED = 0,
ASSET_LOADED = 1,
2020-08-24 02:07:12 +00:00
ASSET_NEEDED = 2,
2020-08-22 03:53:35 +00:00
ASSET_END = 255,
} AssetState;
typedef enum AssetType_t {
ASSET_SOUND = 0,
ASSET_MUSIC = 1,
ASSET_FRAME = 2,
ASSET_PALETTE = 3,
ASSET_BYTECODE = 4,
ASSET_VIDEO = 5,
} AssetType;
typedef struct Asset_t {
AssetState state;
AssetType type;
uchar * data;
uchar rank;
uchar bank;
uvlong bankoffset;
ushort packedlength;
ushort length;
} Asset;
void loadmemlist(char *filename);
#endif /* MEMLIST_H */