// SIResFile.h: interface for the SIResFile class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_SIRESFILE_H__E917F954_760A_11D4_BCC1_444553540000__INCLUDED_)
#define AFX_SIRESFILE_H__E917F954_760A_11D4_BCC1_444553540000__INCLUDED_

#include "buffer.h"

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

typedef struct SIRES_ITEM{
	int type;
	int id;
	int offset;
	char name[30];
}SIRES_ITEM;


class SIResFile  
{
public:
	bool parseItem(int id);
	char resName[30];
	void unload();
	int idBase;
	int numItems;
	SIRES_ITEM *items;
	bool load(char *name);
	Buffer resBuffer;
	SIResFile();
	virtual ~SIResFile();

};

#endif // !defined(AFX_SIRESFILE_H__E917F954_760A_11D4_BCC1_444553540000__INCLUDED_)
