mirror of
https://github.com/Nimac0/SDL_Minigame
synced 2026-01-12 09:03:42 +00:00
29 lines
584 B
C++
29 lines
584 B
C++
#include <map>
|
|
#include <string>
|
|
|
|
#include "TextureManager.h"
|
|
#include "Vector2D.h"
|
|
#include "Components.h"
|
|
#include "ECS.h"
|
|
|
|
class AssetManager {
|
|
|
|
public:
|
|
|
|
AssetManager(Manager* manager);
|
|
~AssetManager();
|
|
|
|
//game object management
|
|
void createProjectile(Vector2D pos, Vector2D velocity, bool source, int scale, int range, int speed, const char* texturePath);
|
|
|
|
//texture management
|
|
void addTexture(std::string id, const char* path);
|
|
|
|
SDL_Texture* getTexture(std::string id);
|
|
|
|
private:
|
|
|
|
Manager* man;
|
|
std::map<std::string, SDL_Texture*> textures;
|
|
};
|