This repository has been archived on 2022-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
space-war/include/game/global.hpp

24 lines
577 B
C++

#pragma once
#include "tinyengine/tinyengine.hpp"
#include "game/quick_list.hpp"
#include "game/init_info.hpp"
extern Context ECSContext;
extern SystemManager SystemMgr;
extern Unique<TileSheet> GameTileSheet;
extern std::unordered_map<std::string, Unique<Sound>> Sounds;
extern QuickList<Entity*> Bullets;
extern QuickList<Entity*> Entities;
extern Entity* PlayerSpaceship;
extern std::array<QuickList<Entity*>, 4> Groups;
extern GameInitInfo InitInfo;
void LoadResources();
Point MapGlobal2PlayerCoord(const Point& pos);
Point MapPlayerCoord2Global(const Point& pos);