2022-02-07 21:38:35 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "tinyengine/tinyengine.hpp"
|
|
|
|
#include "game/quick_list.hpp"
|
2022-02-15 22:50:31 +08:00
|
|
|
#include "game/init_info.hpp"
|
2022-02-07 21:38:35 +08:00
|
|
|
|
|
|
|
extern Context ECSContext;
|
|
|
|
extern SystemManager SystemMgr;
|
2022-02-08 21:02:52 +08:00
|
|
|
extern Unique<TileSheet> GameTileSheet;
|
2022-02-07 21:38:35 +08:00
|
|
|
extern std::unordered_map<std::string, Unique<Sound>> Sounds;
|
|
|
|
|
|
|
|
extern QuickList<Entity*> Bullets;
|
2022-02-08 21:02:52 +08:00
|
|
|
extern QuickList<Entity*> Entities;
|
2022-02-07 21:38:35 +08:00
|
|
|
|
2022-02-09 16:44:09 +08:00
|
|
|
extern Entity* PlayerSpaceship;
|
|
|
|
|
2022-02-15 22:50:31 +08:00
|
|
|
extern std::array<QuickList<Entity*>, 4> Groups;
|
|
|
|
|
|
|
|
extern GameInitInfo InitInfo;
|
|
|
|
|
2022-02-07 21:38:35 +08:00
|
|
|
void LoadResources();
|
2022-02-09 16:44:09 +08:00
|
|
|
Point MapGlobal2PlayerCoord(const Point& pos);
|
2022-02-09 22:33:06 +08:00
|
|
|
Point MapPlayerCoord2Global(const Point& pos);
|