27 lines
495 B
C++
27 lines
495 B
C++
#pragma once
|
|
#include "images.h"
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace enemies
|
|
{
|
|
struct animation_t
|
|
{
|
|
std::string name {""};
|
|
float speed {0.0f};
|
|
uint8_t loop {0};
|
|
std::vector<uint8_t> frames;
|
|
};
|
|
|
|
struct enemy_t
|
|
{
|
|
draw::surface *tileSetFile {nullptr};
|
|
uint8_t frame_width {0};
|
|
uint8_t frame_height {0};
|
|
std::vector<animation_t> animations;
|
|
};
|
|
|
|
void load();
|
|
enemy_t &get(std::string name);
|
|
}
|