⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 loadhandler.h

📁 VIGASOCO (VIdeo GAmes SOurce COde) Windows port (v0.01)
💻 H
字号:
// LoadHandler.h
//
//	Abstract class that defines the interface of a handler to load files
//
//	A loader handler is used like this:
//		* preProcess is called before any file has been loaded in order to do
//		any specific pre processing.
//		* load is called once for each file. The handler has to update the internal
//		game data entity memory copying the file data.
//		* postProcess is called after all files have been loaded in order to do
//		any specific post processing.
//
/////////////////////////////////////////////////////////////////////////////

#ifndef _LOAD_HANDLER_H_
#define _LOAD_HANDLER_H_

#include "Types.h"

class GameDataEntity;		// defined in GameDataEntity.h

class LoadHandler
{
// fields
protected:
	GameDataEntity *_gameData;

// methods
public:
	LoadHandler(GameDataEntity *gameData){ _gameData = gameData; } 
	virtual ~LoadHandler(){}

	virtual void loadData(int i, UINT8 *data) = 0;
	virtual void preProcess() = 0;
	virtual void postProcess() = 0;
};

#endif	// _LOAD_HANDLER_H_

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -