forked from jaildesigner-jailgames/jaildoctors_dilemma
43 lines
668 B
C++
43 lines
668 B
C++
#pragma once
|
|
#include "ifdefs.h"
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#ifndef ASSET_H
|
|
#define ASSET_H
|
|
|
|
enum assetType {bitmap, music, sound, data, font, lang};
|
|
|
|
#define ASSET_TYPE_BITMAP 0
|
|
#define ASSET_TYPE_MUSIC 1
|
|
#define ASSET_TYPE_SOUND 2
|
|
#define ASSET_TYPE_DATA 3
|
|
#define ASSET_TYPE_FONT 4
|
|
#define ASSET_TYPE_LANG 5
|
|
|
|
// Clase Asset
|
|
class Asset
|
|
{
|
|
private:
|
|
// Estructura para definir un item
|
|
struct item_t
|
|
{
|
|
std::string file;
|
|
enum assetType type;
|
|
};
|
|
|
|
std::vector<item_t> mFileList;
|
|
|
|
public:
|
|
// Constructor
|
|
Asset(std::string path);
|
|
|
|
// Destructor
|
|
~Asset();
|
|
|
|
// Añade un elemento a la lista
|
|
void add(std::string file, enum assetType type);
|
|
};
|
|
|
|
#endif
|