refactor: format project
This commit is contained in:
@@ -12,13 +12,13 @@ class GuiManager {
|
||||
private:
|
||||
std::vector<std::shared_ptr<GuiWidget>> m_Widgets;
|
||||
public:
|
||||
void renderWidgets(){
|
||||
for(auto widget : m_Widgets){
|
||||
void renderWidgets() {
|
||||
for (auto widget : m_Widgets) {
|
||||
widget->render();
|
||||
}
|
||||
}
|
||||
|
||||
void addWidgets(const std::shared_ptr<GuiWidget>& widget){
|
||||
void addWidgets(const std::shared_ptr<GuiWidget>& widget) {
|
||||
m_Widgets.push_back(std::move(widget));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace td {
|
||||
namespace game {
|
||||
|
||||
class Mob;
|
||||
|
||||
|
||||
} // namespace game
|
||||
|
||||
namespace gui {
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
namespace td {
|
||||
namespace gui {
|
||||
|
||||
class SummonMenu : public GuiWidget{
|
||||
class SummonMenu : public GuiWidget {
|
||||
private:
|
||||
bool m_MenuOpened;
|
||||
int m_ImageWidth = 100;
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <memory>
|
||||
|
||||
struct SDL_Window;
|
||||
typedef void *SDL_GLContext;
|
||||
typedef void* SDL_GLContext;
|
||||
|
||||
namespace td {
|
||||
|
||||
@@ -26,7 +26,7 @@ class MainMenu;
|
||||
class GameMenu;
|
||||
class FrameMenu;
|
||||
class UpdateMenu;
|
||||
|
||||
|
||||
} // namespace gui
|
||||
|
||||
namespace render {
|
||||
|
||||
Reference in New Issue
Block a user