rename EntityId to BuildingId
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
#include <QWidget>
|
||||
|
||||
#include "Building.h"
|
||||
#include "EntityId.h"
|
||||
#include "BuildingId.h"
|
||||
#include "GameConfig.h"
|
||||
#include "RecipesConfig.h"
|
||||
#include "ShipLayout.h"
|
||||
@@ -31,10 +31,10 @@ public:
|
||||
QWidget* parent = nullptr);
|
||||
|
||||
signals:
|
||||
void layoutDialogRequested(EntityId shipyardId);
|
||||
void layoutDialogRequested(BuildingId shipyardId);
|
||||
|
||||
public slots:
|
||||
void onSelectionChanged(const std::vector<EntityId>& ids);
|
||||
void onSelectionChanged(const std::vector<BuildingId>& ids);
|
||||
void onStateUpdated(Tick tick, int blocks, double speed);
|
||||
|
||||
private slots:
|
||||
@@ -46,8 +46,8 @@ private:
|
||||
void rebuild();
|
||||
void clearContent();
|
||||
void buildEmpty();
|
||||
void buildSingle(EntityId id);
|
||||
void buildMulti(const std::vector<EntityId>& ids);
|
||||
void buildSingle(BuildingId id);
|
||||
void buildMulti(const std::vector<BuildingId>& ids);
|
||||
void refreshBuffers(const Building* b);
|
||||
void buildSplitterFilters(QPoint splitterTile);
|
||||
const RecipeDef* findRecipe(const Building* b) const;
|
||||
@@ -56,7 +56,7 @@ private:
|
||||
|
||||
Simulation* m_sim;
|
||||
const GameConfig* m_config;
|
||||
std::vector<EntityId> m_selection;
|
||||
std::vector<BuildingId> m_selectedBuildingIds;
|
||||
|
||||
QVBoxLayout* m_layout;
|
||||
QLabel* m_titleLabel;
|
||||
@@ -71,7 +71,7 @@ private:
|
||||
ShipLayoutPreview* m_layoutPreview;
|
||||
QPushButton* m_configureLayoutBtn;
|
||||
|
||||
EntityId m_singleId;
|
||||
BuildingId m_singleBuildingId;
|
||||
QPoint m_splitterTile;
|
||||
std::string m_currentRecipeId;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user