61 lines
1.6 KiB
C++
61 lines
1.6 KiB
C++
// WARNING: This file is auto generated by the build/prepareAssets.py script.
|
|
#ifndef STORAGE_RESOURCES_G_H_
|
|
#define STORAGE_RESOURCES_G_H_
|
|
|
|
#include <resources/ResourceInfo.h>
|
|
|
|
namespace farmlands {
|
|
namespace resources {
|
|
|
|
/**
|
|
* This namespace contains all the resource IDs, used by the resource manager.
|
|
* The IDs are generated at build time by the 'prepareAssets.py' script.
|
|
*/
|
|
namespace R {
|
|
enum Sprites
|
|
{
|
|
Player = 0,
|
|
};
|
|
enum Fonts
|
|
{
|
|
DejaVuSans = 1,
|
|
};
|
|
enum Tilesets
|
|
{
|
|
PlayerTiles = 2,
|
|
Ground = 3,
|
|
};
|
|
enum Ui
|
|
{
|
|
Cursor = 4,
|
|
};
|
|
enum Levels
|
|
{
|
|
Farm_Background = 5,
|
|
Farm = 6,
|
|
};
|
|
}
|
|
|
|
const int RInfo_Sprites_Begin = 0;
|
|
const int RInfo_Fonts_Begin = 1;
|
|
const int RInfo_Tilesets_Begin = 2;
|
|
const int RInfo_Ui_Begin = 4;
|
|
const int RInfo_Levels_Begin = 5;
|
|
|
|
/**
|
|
* This array contains the names of all the files, and the corresponding file type.
|
|
*/
|
|
const ResourceInfo RInfo[] = {
|
|
{ "sprites/player.sprite", ResourceType::Sprite },
|
|
{ "fonts/DejaVuSans.ttf", ResourceType::Font },
|
|
{ "tilesets/PlayerTiles.png", ResourceType::Texture },
|
|
{ "tilesets/Ground.png", ResourceType::Texture },
|
|
{ "ui/cursor.png", ResourceType::Texture },
|
|
{ "levels/Farm_Background.csv", ResourceType::LevelLayer },
|
|
{ "levels/Farm.level", ResourceType::Level },
|
|
};
|
|
|
|
}
|
|
}
|
|
#endif /* STORAGE_RESOURCES_G_H_ */
|