Started object construction and parsing
Simplified some structures Missing : Entity construction
This commit is contained in:
parent
67435debe6
commit
46d26b6e61
10 changed files with 146 additions and 5 deletions
|
@ -6,15 +6,18 @@
|
|||
#define SRC_LEVEL_H
|
||||
|
||||
#include <SFML/Graphics.hpp>
|
||||
#include <pugixml.hpp>
|
||||
#include <vector>
|
||||
#include <cstring>
|
||||
|
||||
#include "Utils.h"
|
||||
#include "Entity.h"
|
||||
#include "Game.h"
|
||||
|
||||
using TextureStore = std::vector<std::unique_ptr<sf::Texture>>;
|
||||
|
||||
class Level {
|
||||
public:
|
||||
Level(const TextureStore& textureStore);
|
||||
Level(const pugi::xml_document& xmlDoc, const TextureStore& textureStore);
|
||||
|
||||
void render(sf::RenderWindow& renderWindow) const;
|
||||
void runStep() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue